Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
[gecko.git] / widget / cocoa / nsSystemStatusBarCocoa.h
blob2a4fca7a1cbb7398774ffcd8459c873c0b3f993f
1 /* -*- Mode: c++; tab-width: 2; indent-tabs-mode: nil; -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsSystemStatusBarCocoa_h_
7 #define nsSystemStatusBarCocoa_h_
9 #include "nsISystemStatusBar.h"
10 #include "nsClassHashtable.h"
11 #include "nsAutoPtr.h"
13 class nsStandaloneNativeMenu;
14 @class NSStatusItem;
16 class nsSystemStatusBarCocoa : public nsISystemStatusBar
18 public:
19 nsSystemStatusBarCocoa() {}
21 NS_DECL_ISUPPORTS
22 NS_DECL_NSISYSTEMSTATUSBAR
24 protected:
25 virtual ~nsSystemStatusBarCocoa() {}
27 struct StatusItem
29 explicit StatusItem(nsStandaloneNativeMenu* aMenu);
30 ~StatusItem();
32 private:
33 nsRefPtr<nsStandaloneNativeMenu> mMenu;
34 NSStatusItem* mStatusItem;
37 nsClassHashtable<nsISupportsHashKey, StatusItem> mItems;
40 #endif // nsSystemStatusBarCocoa_h_