| OLD | NEW |
| 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 Loading... |
| 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 |
| 59 // BrowserView implementation. | 67 // BrowserView implementation. |
| 60 virtual void Init() OVERRIDE; | 68 virtual void Init() OVERRIDE; |
| 61 virtual void Show() OVERRIDE; | 69 virtual void Show() OVERRIDE; |
| 62 virtual void ShowInactive() OVERRIDE; | 70 virtual void ShowInactive() OVERRIDE; |
| 63 virtual void FocusChromeOSStatus() OVERRIDE; | 71 virtual void FocusChromeOSStatus() OVERRIDE; |
| 64 virtual views::LayoutManager* CreateLayoutManager() const OVERRIDE; | 72 virtual views::LayoutManager* CreateLayoutManager() const OVERRIDE; |
| 65 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; | 73 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; |
| 66 virtual bool GetSavedWindowPlacement( | 74 virtual bool GetSavedWindowPlacement( |
| 67 gfx::Rect* bounds, | 75 gfx::Rect* bounds, |
| 68 ui::WindowShowState* show_state) const OVERRIDE; | 76 ui::WindowShowState* show_state) const OVERRIDE; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 // Should the layout mode button be shown? We only show it if there are | 162 // Should the layout mode button be shown? We only show it if there are |
| 155 // multiple browsers open. | 163 // multiple browsers open. |
| 156 bool should_show_layout_mode_button_; | 164 bool should_show_layout_mode_button_; |
| 157 | 165 |
| 158 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 166 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 159 }; | 167 }; |
| 160 | 168 |
| 161 } // namespace chromeos | 169 } // namespace chromeos |
| 162 | 170 |
| 163 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ | 171 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |