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

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: rebasing to test with the bots. 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
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..558a64e41eb5deda58d0b7ab2d08040bb5a03d6a 100644
--- a/chrome/browser/chromeos/frame/browser_view.h
+++ b/chrome/browser/chromeos/frame/browser_view.h
@@ -46,6 +46,16 @@ 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);
+
+ static BrowserView* GetBrowserViewForBrowser(Browser* browser);
+
// BrowserView implementation.
virtual void Init() OVERRIDE;
virtual void Show() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698