OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_COCOA_STATUS_ICONS_STATUS_ICON_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_STATUS_ICONS_STATUS_ICON_MAC_H_ |
6 #define CHROME_BROWSER_UI_COCOA_STATUS_ICONS_STATUS_ICON_MAC_H_ | 6 #define CHROME_BROWSER_UI_COCOA_STATUS_ICONS_STATUS_ICON_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
12 #include "base/mac/scoped_nsobject.h" | 12 #include "base/mac/scoped_nsobject.h" |
| 13 #include "base/macros.h" |
13 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
14 #include "chrome/browser/status_icons/desktop_notification_balloon.h" | 15 #include "chrome/browser/status_icons/desktop_notification_balloon.h" |
15 #include "chrome/browser/status_icons/status_icon.h" | 16 #include "chrome/browser/status_icons/status_icon.h" |
16 | 17 |
17 @class MenuController; | 18 @class MenuController; |
18 @class NSStatusItem; | 19 @class NSStatusItem; |
19 @class StatusItemController; | 20 @class StatusItemController; |
20 | 21 |
21 class StatusIconMac : public StatusIcon { | 22 class StatusIconMac : public StatusIcon { |
22 public: | 23 public: |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 base::scoped_nsobject<NSString> toolTip_; | 57 base::scoped_nsobject<NSString> toolTip_; |
57 | 58 |
58 // Status menu shown when right-clicking the system icon, if it has been | 59 // Status menu shown when right-clicking the system icon, if it has been |
59 // created by |UpdatePlatformContextMenu|. | 60 // created by |UpdatePlatformContextMenu|. |
60 base::scoped_nsobject<MenuController> menu_; | 61 base::scoped_nsobject<MenuController> menu_; |
61 | 62 |
62 DISALLOW_COPY_AND_ASSIGN(StatusIconMac); | 63 DISALLOW_COPY_AND_ASSIGN(StatusIconMac); |
63 }; | 64 }; |
64 | 65 |
65 #endif // CHROME_BROWSER_UI_COCOA_STATUS_ICONS_STATUS_ICON_MAC_H_ | 66 #endif // CHROME_BROWSER_UI_COCOA_STATUS_ICONS_STATUS_ICON_MAC_H_ |
OLD | NEW |