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_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <shellapi.h> | 9 #include <shellapi.h> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 // Re-creates the status tray icon now after the taskbar has been created. | 41 // Re-creates the status tray icon now after the taskbar has been created. |
42 void ResetIcon(); | 42 void ResetIcon(); |
43 | 43 |
44 UINT icon_id() const { return icon_id_; } | 44 UINT icon_id() const { return icon_id_; } |
45 HWND window() const { return window_; } | 45 HWND window() const { return window_; } |
46 UINT message_id() const { return message_id_; } | 46 UINT message_id() const { return message_id_; } |
47 | 47 |
48 // Overridden from StatusIcon: | 48 // Overridden from StatusIcon: |
49 virtual void SetImage(const gfx::ImageSkia& image) OVERRIDE; | 49 virtual void SetImage(const gfx::ImageSkia& image) OVERRIDE; |
50 virtual void SetPressedImage(const gfx::ImageSkia& image) OVERRIDE; | |
51 virtual void SetToolTip(const base::string16& tool_tip) OVERRIDE; | 50 virtual void SetToolTip(const base::string16& tool_tip) OVERRIDE; |
52 virtual void DisplayBalloon(const gfx::ImageSkia& icon, | 51 virtual void DisplayBalloon(const gfx::ImageSkia& icon, |
53 const base::string16& title, | 52 const base::string16& title, |
54 const base::string16& contents) OVERRIDE; | 53 const base::string16& contents) OVERRIDE; |
55 virtual void ForceVisible() OVERRIDE; | 54 virtual void ForceVisible() OVERRIDE; |
56 | 55 |
57 protected: | 56 protected: |
58 // Overridden from StatusIcon: | 57 // Overridden from StatusIcon: |
59 virtual void UpdatePlatformContextMenu(StatusIconMenuModel* menu) OVERRIDE; | 58 virtual void UpdatePlatformContextMenu(StatusIconMenuModel* menu) OVERRIDE; |
60 | 59 |
(...skipping 21 matching lines...) Expand all Loading... |
82 // Not owned. | 81 // Not owned. |
83 ui::MenuModel* menu_model_; | 82 ui::MenuModel* menu_model_; |
84 | 83 |
85 // Context menu associated with this icon (if any). | 84 // Context menu associated with this icon (if any). |
86 scoped_ptr<views::MenuRunner> menu_runner_; | 85 scoped_ptr<views::MenuRunner> menu_runner_; |
87 | 86 |
88 DISALLOW_COPY_AND_ASSIGN(StatusIconWin); | 87 DISALLOW_COPY_AND_ASSIGN(StatusIconWin); |
89 }; | 88 }; |
90 | 89 |
91 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ | 90 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ |
OLD | NEW |