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

Unified Diff: chrome/browser/status_icons/status_icon_observer.h

Issue 10408039: status_icons: Factor out status icon observer into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/status_icons/status_icon.cc ('k') | chrome/browser/status_icons/status_icon_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/status_icons/status_icon_observer.h
diff --git a/chrome/browser/status_icons/status_icon_observer.h b/chrome/browser/status_icons/status_icon_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..e16a2f75262616defb7754ff28c0f3de25995f64
--- /dev/null
+++ b/chrome/browser/status_icons/status_icon_observer.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_OBSERVER_H_
+#define CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_OBSERVER_H_
+#pragma once
+
+class StatusIconObserver {
+ public:
+ // Called when the user clicks on the system tray icon. Clicks that result
+ // in the context menu being displayed will not be passed to this observer
+ // (i.e. if there's a context menu set on this status icon, and the user
+ // 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.
+ // be called).
+ // Note: Chrome OS displays the context menu on left button clicks.
+ // This will only be fired for this platform if no context menu is present.
+ virtual void OnStatusIconClicked() = 0;
+
+ protected:
+ virtual ~StatusIconObserver() {}
+};
+
+#endif // CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_OBSERVER_H_
« no previous file with comments | « chrome/browser/status_icons/status_icon.cc ('k') | chrome/browser/status_icons/status_icon_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698