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

Side by Side 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: review fixes and some gyp fixing. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CHROMEOS_FRAME_BROWSER_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class BrowserView : public ::BrowserView, 49 class BrowserView : public ::BrowserView,
50 public views::ContextMenuController, 50 public views::ContextMenuController,
51 public views::MenuListener, 51 public views::MenuListener,
52 public BrowserList::Observer, 52 public BrowserList::Observer,
53 public StatusAreaButton::Delegate, 53 public StatusAreaButton::Delegate,
54 public MessageLoopForUI::Observer { 54 public MessageLoopForUI::Observer {
55 public: 55 public:
56 explicit BrowserView(Browser* browser); 56 explicit BrowserView(Browser* browser);
57 virtual ~BrowserView(); 57 virtual ~BrowserView();
58 58
59 // Adds a new tray icon/button to the Chrome OS Tray.
60 // Takes ownership of the button object.
61 void AddTrayButton(StatusAreaButton* button, bool bordered);
62
63 // Remove an existing tray button from the Chrome OS Tray.
64 // Pointer will become invalid after this call.
65 void RemoveTrayButton(StatusAreaButton* button);
66
67 static BrowserView* GetBrowserViewForBrowser(Browser* browser);
68
59 // BrowserView implementation. 69 // BrowserView implementation.
60 virtual void Init() OVERRIDE; 70 virtual void Init() OVERRIDE;
61 virtual void Show() OVERRIDE; 71 virtual void Show() OVERRIDE;
62 virtual void ShowInactive() OVERRIDE; 72 virtual void ShowInactive() OVERRIDE;
63 virtual void FocusChromeOSStatus() OVERRIDE; 73 virtual void FocusChromeOSStatus() OVERRIDE;
64 virtual views::LayoutManager* CreateLayoutManager() const OVERRIDE; 74 virtual views::LayoutManager* CreateLayoutManager() const OVERRIDE;
65 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; 75 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE;
66 virtual bool GetSavedWindowPlacement( 76 virtual bool GetSavedWindowPlacement(
67 gfx::Rect* bounds, 77 gfx::Rect* bounds,
68 ui::WindowShowState* show_state) const OVERRIDE; 78 ui::WindowShowState* show_state) const OVERRIDE;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Should the layout mode button be shown? We only show it if there are 164 // Should the layout mode button be shown? We only show it if there are
155 // multiple browsers open. 165 // multiple browsers open.
156 bool should_show_layout_mode_button_; 166 bool should_show_layout_mode_button_;
157 167
158 DISALLOW_COPY_AND_ASSIGN(BrowserView); 168 DISALLOW_COPY_AND_ASSIGN(BrowserView);
159 }; 169 };
160 170
161 } // namespace chromeos 171 } // namespace chromeos
162 172
163 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ 173 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/frame/browser_view.cc » ('j') | chrome/browser/chromeos/frame/browser_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698