michael@0: /* -*- Mode: c++; tab-width: 2; indent-tabs-mode: nil; -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsStandaloneNativeMenu_h_ michael@0: #define nsStandaloneNativeMenu_h_ michael@0: michael@0: #include "nsMenuGroupOwnerX.h" michael@0: #include "nsMenuX.h" michael@0: #include "nsIStandaloneNativeMenu.h" michael@0: michael@0: class nsStandaloneNativeMenu : public nsMenuGroupOwnerX, public nsIStandaloneNativeMenu michael@0: { michael@0: public: michael@0: nsStandaloneNativeMenu(); michael@0: virtual ~nsStandaloneNativeMenu(); michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSISTANDALONENATIVEMENU michael@0: michael@0: // nsMenuObjectX michael@0: nsMenuObjectTypeX MenuObjectType() { return eStandaloneNativeMenuObjectType; } michael@0: void * NativeData() { return mMenu != nullptr ? mMenu->NativeData() : nullptr; } michael@0: michael@0: nsMenuX * GetMenuXObject() { return mMenu; } michael@0: michael@0: protected: michael@0: nsMenuX * mMenu; michael@0: }; michael@0: michael@0: #endif