| // Copyright 2013 The Flutter Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef PLATFORM_COMMON_PLATFORM_PROVIDED_MENU_H_ |
| #define PLATFORM_COMMON_PLATFORM_PROVIDED_MENU_H_ |
| |
| namespace flutter { |
| |
| // Enumerates the provided menus that a platform may support. |
| // Must be kept in sync with the framework enum in widgets/menu.dart. |
| enum class PlatformProvidedMenu { |
| // orderFrontStandardAboutPanel macOS provided menu |
| kAbout, |
| |
| // terminate macOS provided menu |
| kQuit, |
| |
| // Services macOS provided submenu. |
| kServicesSubmenu, |
| |
| // hide macOS provided menu |
| kHide, |
| |
| // hideOtherApplications macOS provided menu |
| kHideOtherApplications, |
| |
| // unhideAllApplications macOS provided menu |
| kShowAllApplications, |
| |
| // startSpeaking macOS provided menu |
| kStartSpeaking, |
| |
| // stopSpeaking macOS provided menu |
| kStopSpeaking, |
| |
| // toggleFullScreen macOS provided menu |
| kToggleFullScreen, |
| |
| // performMiniaturize macOS provided menu |
| kMinimizeWindow, |
| |
| // performZoom macOS provided menu |
| kZoomWindow, |
| |
| // arrangeInFront macOS provided menu |
| kArrangeWindowsInFront, |
| }; |
| |
| } // namespace flutter |
| |
| #endif // PLATFORM_COMMON_PLATFORM_provided_MENU_H_ |