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 15 matching lines...) Expand all Loading... |
26 public: | 26 public: |
27 // Constructor which provides this icon's unique ID and messaging window. | 27 // Constructor which provides this icon's unique ID and messaging window. |
28 StatusIconWin(UINT id, HWND window, UINT message); | 28 StatusIconWin(UINT id, HWND window, UINT message); |
29 virtual ~StatusIconWin(); | 29 virtual ~StatusIconWin(); |
30 | 30 |
31 // Handles a click event from the user - if |left_button_click| is true and | 31 // Handles a click event from the user - if |left_button_click| is true and |
32 // there is a registered observer, passes the click event to the observer, | 32 // there is a registered observer, passes the click event to the observer, |
33 // otherwise displays the context menu if there is one. | 33 // otherwise displays the context menu if there is one. |
34 void HandleClickEvent(const gfx::Point& cursor_pos, bool left_button_click); | 34 void HandleClickEvent(const gfx::Point& cursor_pos, bool left_button_click); |
35 | 35 |
| 36 // Handles a click on the balloon from the user. |
| 37 void HandleBalloonClickEvent(); |
| 38 |
36 // Re-creates the status tray icon now after the taskbar has been created. | 39 // Re-creates the status tray icon now after the taskbar has been created. |
37 void ResetIcon(); | 40 void ResetIcon(); |
38 | 41 |
39 UINT icon_id() const { return icon_id_; } | 42 UINT icon_id() const { return icon_id_; } |
40 UINT message_id() const { return message_id_; } | 43 UINT message_id() const { return message_id_; } |
41 | 44 |
42 // Overridden from StatusIcon: | 45 // Overridden from StatusIcon: |
43 virtual void SetImage(const gfx::ImageSkia& image) OVERRIDE; | 46 virtual void SetImage(const gfx::ImageSkia& image) OVERRIDE; |
44 virtual void SetPressedImage(const gfx::ImageSkia& image) OVERRIDE; | 47 virtual void SetPressedImage(const gfx::ImageSkia& image) OVERRIDE; |
45 virtual void SetToolTip(const string16& tool_tip) OVERRIDE; | 48 virtual void SetToolTip(const string16& tool_tip) OVERRIDE; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu) OVERRIDE; | 99 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu) OVERRIDE; |
97 | 100 |
98 private: | 101 private: |
99 string16 tool_tip_; | 102 string16 tool_tip_; |
100 const UINT id_; | 103 const UINT id_; |
101 | 104 |
102 DISALLOW_COPY_AND_ASSIGN(StatusIconMetro); | 105 DISALLOW_COPY_AND_ASSIGN(StatusIconMetro); |
103 }; | 106 }; |
104 | 107 |
105 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ | 108 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ |
OLD | NEW |