widget/cocoa/nsStandaloneNativeMenu.h
author tbirdbld
Wed, 22 May 2013 13:10:26 -0400
branchGECKO220b1_2013052213_RELBRANCH
changeset 137658 1d38b1a9c7a35a85bbaa19d041e18ecd8b7f6ac2
parent 106310 b5c4b792f3f2a047e3517472d72842a76afb77cd
permissions -rw-r--r--
Added THUNDERBIRD_22_0b1_RELEASE THUNDERBIRD_22_0b1_BUILD2 tag(s) for changeset cc72d1576c40. DONTBUILD CLOSED TREE a=release

/* -*- 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 nsStandaloneNativeMenu_h_
#define nsStandaloneNativeMenu_h_

#include "nsMenuGroupOwnerX.h"
#include "nsMenuX.h"
#include "nsIStandaloneNativeMenu.h"

class nsStandaloneNativeMenu : public nsMenuGroupOwnerX, public nsIStandaloneNativeMenu
{
public:
  nsStandaloneNativeMenu();
  virtual ~nsStandaloneNativeMenu();

  NS_DECL_ISUPPORTS  
  NS_DECL_NSISTANDALONENATIVEMENU

  // nsMenuObjectX
  nsMenuObjectTypeX MenuObjectType() { return eStandaloneNativeMenuObjectType; }
  void * NativeData() { return mMenu != nullptr ? mMenu->NativeData() : nullptr; }

  nsMenuX * GetMenuXObject() { return mMenu; }

protected:
  nsMenuX * mMenu;
};

#endif