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
;
16 class nsSystemStatusBarCocoa
: public nsISystemStatusBar
19 nsSystemStatusBarCocoa() {}
22 NS_DECL_NSISYSTEMSTATUSBAR
25 virtual ~nsSystemStatusBarCocoa() {}
29 explicit StatusItem(nsStandaloneNativeMenu
* aMenu
);
33 nsRefPtr
<nsStandaloneNativeMenu
> mMenu
;
34 NSStatusItem
* mStatusItem
;
37 nsClassHashtable
<nsISupportsHashKey
, StatusItem
> mItems
;
40 #endif // nsSystemStatusBarCocoa_h_