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 "mozilla/RefPtr.h"
10 #include "nsISystemStatusBar.h"
11 #include "nsClassHashtable.h"
13 namespace mozilla::widget
{
18 class nsSystemStatusBarCocoa
: public nsISystemStatusBar
{
20 nsSystemStatusBarCocoa() {}
23 NS_DECL_NSISYSTEMSTATUSBAR
26 virtual ~nsSystemStatusBarCocoa() {}
29 explicit StatusItem(mozilla::widget::NativeMenuMac
* aMenu
);
33 RefPtr
<mozilla::widget::NativeMenuMac
> mMenu
;
34 NSStatusItem
* mStatusItem
;
37 nsClassHashtable
<nsISupportsHashKey
, StatusItem
> mItems
;
40 #endif // nsSystemStatusBarCocoa_h_