Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Side by Side Diff: chrome/browser/ui/views/status_icons/status_icon_win.h

Issue 17286015: Adds a first-run balloon to the Windows notification center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dimich comments. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698