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

Unified Diff: chrome/browser/chromeos/frame/browser_view.h

Issue 8476003: Implement the status tray/icon API for ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing gyp problems in the bots that led to reverting. Created 9 years, 1 month 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 | « no previous file | chrome/browser/chromeos/frame/browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/frame/browser_view.h
diff --git a/chrome/browser/chromeos/frame/browser_view.h b/chrome/browser/chromeos/frame/browser_view.h
index 035468adc64aee57e346adb662874c1022e5d983..5feedba274804bfa40aa81f2b59293816246c5be 100644
--- a/chrome/browser/chromeos/frame/browser_view.h
+++ b/chrome/browser/chromeos/frame/browser_view.h
@@ -46,6 +46,19 @@ class BrowserView : public ::BrowserView,
explicit BrowserView(Browser* browser);
virtual ~BrowserView();
+ // Adds a new tray icon/button to the Chrome OS Tray.
+ // Takes ownership of the button object.
+ void AddTrayButton(StatusAreaButton* button, bool bordered);
+
+ // Remove an existing tray button from the Chrome OS Tray.
+ // Pointer will become invalid after this call.
+ void RemoveTrayButton(StatusAreaButton* button);
+
+ // Check if a button is currently contained in the view.
+ bool ContainsButton(StatusAreaButton* button);
+
+ static BrowserView* GetBrowserViewForBrowser(Browser* browser);
+
// BrowserView implementation.
virtual void Init() OVERRIDE;
virtual void Show() OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/chromeos/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698