/* -*- Mode: c++; tab-width: 2; indent-tabs-mode: nil; -*- */ /* 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/. */
#ifndef NativeMenuMac_h #define NativeMenuMac_h
#include"mozilla/widget/NativeMenu.h"
#include"nsMenuItemIconX.h" #include"nsMenuX.h"
class nsIContent; class nsMenuGroupOwnerX;
namespace mozilla {
namespace dom { class Element;
}
namespace widget {
class NativeMenuMac : public NativeMenu, public nsMenuItemIconX::Listener, public nsMenuX::Observer { public: explicit NativeMenuMac(dom::Element* aElement);
// If this menu is the menu of a system status bar item (NSStatusItem), // let the menu know about the status item so that it can propagate // any icon changes to the status item. void SetContainerStatusBarItem(NSStatusItem* aItem);
protected: virtual ~NativeMenuMac();
// Find the deepest nsMenuX which contains aElement, only descending into open // menus. // Returns nullptr if the element was not found or if the menus on the path // were not all open.
RefPtr<nsMenuX> GetOpenMenuContainingElement(dom::Element* aElement);
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.