OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // A ClientView subclass that provides the contents of a browser window, | 85 // A ClientView subclass that provides the contents of a browser window, |
86 // including the TabStrip, toolbars, download shelves, the content area etc. | 86 // including the TabStrip, toolbars, download shelves, the content area etc. |
87 // | 87 // |
88 class BrowserView : public BrowserWindow, | 88 class BrowserView : public BrowserWindow, |
89 public BrowserWindowTesting, | 89 public BrowserWindowTesting, |
90 public TabStripModelObserver, | 90 public TabStripModelObserver, |
91 public ui::AcceleratorProvider, | 91 public ui::AcceleratorProvider, |
92 public views::WidgetDelegate, | 92 public views::WidgetDelegate, |
93 public views::WidgetObserver, | 93 public views::WidgetObserver, |
94 public views::ClientView, | 94 public views::ClientView, |
95 public ImmersiveModeController::Delegate, | |
96 public InfoBarContainer::Delegate, | 95 public InfoBarContainer::Delegate, |
97 public views::SingleSplitViewListener, | 96 public views::SingleSplitViewListener, |
98 public gfx::SysColorChangeListener, | 97 public gfx::SysColorChangeListener, |
99 public LoadCompleteListener::Delegate, | 98 public LoadCompleteListener::Delegate, |
100 public OmniboxPopupModelObserver { | 99 public OmniboxPopupModelObserver { |
101 public: | 100 public: |
102 // The browser view's class name. | 101 // The browser view's class name. |
103 static const char kViewClassName[]; | 102 static const char kViewClassName[]; |
104 | 103 |
105 BrowserView(); | 104 BrowserView(); |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 // Restores the focused view. This is also used to set the initial focus | 244 // Restores the focused view. This is also used to set the initial focus |
246 // when a new browser window is created. | 245 // when a new browser window is created. |
247 void RestoreFocus(); | 246 void RestoreFocus(); |
248 | 247 |
249 void SetWindowSwitcherButton(views::Button* button); | 248 void SetWindowSwitcherButton(views::Button* button); |
250 | 249 |
251 views::Button* window_switcher_button() { | 250 views::Button* window_switcher_button() { |
252 return window_switcher_button_; | 251 return window_switcher_button_; |
253 } | 252 } |
254 | 253 |
| 254 // Called after the widget's fullscreen state is changed without going through |
| 255 // FullscreenController. This method does any processing which was skipped. |
| 256 // Only exiting fullscreen in this way is currently supported. |
| 257 void FullscreenStateChanged(); |
| 258 |
255 // Called from BookmarkBarView/DownloadShelfView during their show/hide | 259 // Called from BookmarkBarView/DownloadShelfView during their show/hide |
256 // animations. | 260 // animations. |
257 void ToolbarSizeChanged(bool is_animating); | 261 void ToolbarSizeChanged(bool is_animating); |
258 | 262 |
259 // Overridden from BrowserWindow: | 263 // Overridden from BrowserWindow: |
260 virtual void Show() OVERRIDE; | 264 virtual void Show() OVERRIDE; |
261 virtual void ShowInactive() OVERRIDE; | 265 virtual void ShowInactive() OVERRIDE; |
262 virtual void Hide() OVERRIDE; | 266 virtual void Hide() OVERRIDE; |
263 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 267 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
264 virtual void Close() OVERRIDE; | 268 virtual void Close() OVERRIDE; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 | 420 |
417 // Overridden from views::WidgetObserver: | 421 // Overridden from views::WidgetObserver: |
418 virtual void OnWidgetActivationChanged(views::Widget* widget, | 422 virtual void OnWidgetActivationChanged(views::Widget* widget, |
419 bool active) OVERRIDE; | 423 bool active) OVERRIDE; |
420 | 424 |
421 // Overridden from views::ClientView: | 425 // Overridden from views::ClientView: |
422 virtual bool CanClose() OVERRIDE; | 426 virtual bool CanClose() OVERRIDE; |
423 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 427 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
424 virtual gfx::Size GetMinimumSize() OVERRIDE; | 428 virtual gfx::Size GetMinimumSize() OVERRIDE; |
425 | 429 |
426 // ImmersiveModeController::Delegate overrides: | |
427 virtual FullscreenController* GetFullscreenController() OVERRIDE; | |
428 virtual void FullscreenStateChanged() OVERRIDE; | |
429 virtual void SetImmersiveStyle(bool immersive) OVERRIDE; | |
430 virtual content::WebContents* GetWebContents() OVERRIDE; | |
431 | |
432 // InfoBarContainer::Delegate overrides | 430 // InfoBarContainer::Delegate overrides |
433 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE; | 431 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE; |
434 virtual void InfoBarContainerStateChanged(bool is_animating) OVERRIDE; | 432 virtual void InfoBarContainerStateChanged(bool is_animating) OVERRIDE; |
435 virtual bool DrawInfoBarArrows(int* x) const OVERRIDE; | 433 virtual bool DrawInfoBarArrows(int* x) const OVERRIDE; |
436 | 434 |
437 // views::SingleSplitViewListener overrides: | 435 // views::SingleSplitViewListener overrides: |
438 virtual bool SplitHandleMoved(views::SingleSplitView* sender) OVERRIDE; | 436 virtual bool SplitHandleMoved(views::SingleSplitView* sender) OVERRIDE; |
439 | 437 |
440 // gfx::SysColorChangeListener overrides: | 438 // gfx::SysColorChangeListener overrides: |
441 virtual void OnSysColorChange() OVERRIDE; | 439 virtual void OnSysColorChange() OVERRIDE; |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 scoped_ptr<ScrollEndEffectController> scroll_end_effect_controller_; | 744 scoped_ptr<ScrollEndEffectController> scroll_end_effect_controller_; |
747 | 745 |
748 gfx::ScopedSysColorChangeListener color_change_listener_; | 746 gfx::ScopedSysColorChangeListener color_change_listener_; |
749 | 747 |
750 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 748 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
751 | 749 |
752 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 750 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
753 }; | 751 }; |
754 | 752 |
755 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 753 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |