Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / widget / cocoa / nsSystemStatusBarCocoa.h
blob2af13e28059b6b8f970971da40f541139a5a7f0b
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 {
14 class NativeMenuMac;
16 @class NSStatusItem;
18 class nsSystemStatusBarCocoa : public nsISystemStatusBar {
19 public:
20 nsSystemStatusBarCocoa() {}
22 NS_DECL_ISUPPORTS
23 NS_DECL_NSISYSTEMSTATUSBAR
25 protected:
26 virtual ~nsSystemStatusBarCocoa() {}
28 struct StatusItem {
29 explicit StatusItem(mozilla::widget::NativeMenuMac* aMenu);
30 ~StatusItem();
32 private:
33 RefPtr<mozilla::widget::NativeMenuMac> mMenu;
34 NSStatusItem* mStatusItem;
37 nsClassHashtable<nsISupportsHashKey, StatusItem> mItems;
40 #endif // nsSystemStatusBarCocoa_h_