OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_OBSERVER_H_ | |
6 #define CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_OBSERVER_H_ | |
7 #pragma once | |
8 | |
9 class StatusIconObserver { | |
10 public: | |
11 // Called when the user clicks on the system tray icon. Clicks that result | |
12 // in the context menu being displayed will not be passed to this observer | |
13 // (i.e. if there's a context menu set on this status icon, and the user | |
14 // right clicks on the icon to display the context menu, OnClicked will not | |
Andrew T Wilson (Slow)
2012/05/22 00:53:56
nit: OnClicked->OnStatusIconClicked()
tfarina
2012/05/23 14:58:08
Done.
| |
15 // be called). | |
16 // Note: Chrome OS displays the context menu on left button clicks. | |
17 // This will only be fired for this platform if no context menu is present. | |
18 virtual void OnStatusIconClicked() = 0; | |
19 | |
20 protected: | |
21 virtual ~StatusIconObserver() {} | |
22 }; | |
23 | |
24 #endif // CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_OBSERVER_H_ | |
OLD | NEW |