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

Side by Side Diff: chrome/browser/status_icons/status_icon_observer.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: Moar fixes. 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_STATUS_ICONS_STATUS_ICON_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_OBSERVER_H_
6 #define CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_OBSERVER_H_ 6 #define CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_OBSERVER_H_
7 7
8 class StatusIconObserver { 8 class StatusIconObserver {
9 public: 9 public:
10 // Called when the user clicks on the system tray icon. Clicks that result 10 // Called when the user clicks on the system tray icon. Clicks that result
11 // in the context menu being displayed will not be passed to this observer 11 // in the context menu being displayed will not be passed to this observer
12 // (i.e. if there's a context menu set on this status icon, and the user 12 // (i.e. if there's a context menu set on this status icon, and the user
13 // right clicks on the icon to display the context menu, OnStatusIconClicked() 13 // right clicks on the icon to display the context menu, OnStatusIconClicked()
14 // will not be called). 14 // will not be called).
15 // Note: Chrome OS displays the context menu on left button clicks. 15 // Note: Chrome OS displays the context menu on left button clicks.
16 // This will only be fired for this platform if no context menu is present. 16 // This will only be fired for this platform if no context menu is present.
17 virtual void OnStatusIconClicked() = 0; 17 virtual void OnStatusIconClicked() = 0;
18 18
19 // Called when the user clicks on a balloon generated for a system tray icon.
Dmitry Titov 2013/06/21 20:53:40 surround by #if (OS_WIN)?
dewittj 2013/06/21 21:56:51 Done.
20 // TODO(dewittj): Implement on platforms other than Windows. Currently this
21 // event will never fire on non-Windows platforms.
22 virtual void OnBalloonClicked() {}
23
19 protected: 24 protected:
20 virtual ~StatusIconObserver() {} 25 virtual ~StatusIconObserver() {}
21 }; 26 };
22 27
23 #endif // CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_OBSERVER_H_ 28 #endif // CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698