| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // Overridden from StatusIcon. | 26 // Overridden from StatusIcon. |
| 27 virtual void SetImage(const SkBitmap& image) OVERRIDE; | 27 virtual void SetImage(const SkBitmap& image) OVERRIDE; |
| 28 virtual void SetPressedImage(const SkBitmap& image) OVERRIDE; | 28 virtual void SetPressedImage(const SkBitmap& image) OVERRIDE; |
| 29 virtual void SetToolTip(const string16& tool_tip) OVERRIDE; | 29 virtual void SetToolTip(const string16& tool_tip) OVERRIDE; |
| 30 virtual void DisplayBalloon(const SkBitmap& icon, | 30 virtual void DisplayBalloon(const SkBitmap& icon, |
| 31 const string16& title, | 31 const string16& title, |
| 32 const string16& contents) OVERRIDE; | 32 const string16& contents) OVERRIDE; |
| 33 | 33 |
| 34 protected: | 34 protected: |
| 35 // Overridden from StatusIcon. | 35 // Overridden from StatusIcon. |
| 36 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu); | 36 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu) OVERRIDE; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 // Getter for item_ that allows lazy initialization. | 39 // Getter for item_ that allows lazy initialization. |
| 40 NSStatusItem* item(); | 40 NSStatusItem* item(); |
| 41 scoped_nsobject<NSStatusItem> item_; | 41 scoped_nsobject<NSStatusItem> item_; |
| 42 | 42 |
| 43 scoped_nsobject<StatusItemController> controller_; | 43 scoped_nsobject<StatusItemController> controller_; |
| 44 | 44 |
| 45 // Notification balloon. | 45 // Notification balloon. |
| 46 DesktopNotificationBalloon notification_; | 46 DesktopNotificationBalloon notification_; |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(StatusIconMac); | 48 DISALLOW_COPY_AND_ASSIGN(StatusIconMac); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 #endif // CHROME_BROWSER_UI_COCOA_STATUS_ICONS_STATUS_ICON_MAC_H_ | 51 #endif // CHROME_BROWSER_UI_COCOA_STATUS_ICONS_STATUS_ICON_MAC_H_ |
| OLD | NEW |