/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
class NativeMenuSupport final {
public: // Given a top-level window widget and a menu bar DOM node, sets up native // menus. Once created, native menus are controlled via the DOM, including // destruction. staticvoid CreateNativeMenuBar(nsIWidget* aParent,
dom::Element* aMenuBarElement);
// Given a menupopup DOM node, create a NativeMenu instance that can be shown // as a native popup menu. static already_AddRefed<NativeMenu> CreateNativePopupMenu(
dom::Element* aPopup);
// Whether or not native anchored menus are enabled. staticbool ShouldUseNativeAnchoredMenus();
// Whether or not native context menus are enabled. staticbool ShouldUseNativeContextMenus();
};
} // namespace widget
} // namespace mozilla
#endif// mozilla_widget_NativeMenuSupport_h
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-08-25)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.