/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
class nsMenuItemX; class nsChangeObserver; class nsIWidget; class nsIContent;
@class MOZMenuItemRepresentedObject;
// Fixed command IDs that work even without a JS listener, for our fallback menu // bar. Dynamic command IDs start counting from eCommand_ID_Last. enum {
eCommand_ID_About = 1,
eCommand_ID_Prefs = 2,
eCommand_ID_Quit = 3,
eCommand_ID_HideApp = 4,
eCommand_ID_HideOthers = 5,
eCommand_ID_ShowAll = 6,
eCommand_ID_Update = 7,
eCommand_ID_TouchBar = 8,
eCommand_ID_Account = 9,
eCommand_ID_Last = 10
};
// The menu group owner observes DOM mutations, notifies registered // nsChangeObservers, and manages command registration. There is one owner per // menubar, and one per standalone native menu. class nsMenuGroupOwnerX : public nsMultiMutationObserver, public nsIObserver { public: // Both parameters can be null.
nsMenuGroupOwnerX(mozilla::dom::Element* aElement,
nsMenuBarX* aMenuBarIfMenuBar);
// The representedObject that's used for all menu items under this menu group // owner.
MOZMenuItemRepresentedObject* GetRepresentedObject() { return mRepresentedObject;
}
// If this is the group owner for a menubar, return the menubar, otherwise // nullptr.
nsMenuBarX* GetMenuBar() { return mMenuBar.get(); }
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 ist noch experimentell.