| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 | 423 |
| 420 // Overridden from views::WidgetObserver: | 424 // Overridden from views::WidgetObserver: |
| 421 virtual void OnWidgetActivationChanged(views::Widget* widget, | 425 virtual void OnWidgetActivationChanged(views::Widget* widget, |
| 422 bool active) OVERRIDE; | 426 bool active) OVERRIDE; |
| 423 | 427 |
| 424 // Overridden from views::ClientView: | 428 // Overridden from views::ClientView: |
| 425 virtual bool CanClose() OVERRIDE; | 429 virtual bool CanClose() OVERRIDE; |
| 426 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 430 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
| 427 virtual gfx::Size GetMinimumSize() OVERRIDE; | 431 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 428 | 432 |
| 429 // ImmersiveModeController::Delegate overrides: | |
| 430 virtual FullscreenController* GetFullscreenController() OVERRIDE; | |
| 431 virtual void FullscreenStateChanged() OVERRIDE; | |
| 432 virtual void SetImmersiveStyle(bool immersive) OVERRIDE; | |
| 433 virtual content::WebContents* GetWebContents() OVERRIDE; | |
| 434 | |
| 435 // InfoBarContainer::Delegate overrides | 433 // InfoBarContainer::Delegate overrides |
| 436 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE; | 434 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE; |
| 437 virtual void InfoBarContainerStateChanged(bool is_animating) OVERRIDE; | 435 virtual void InfoBarContainerStateChanged(bool is_animating) OVERRIDE; |
| 438 virtual bool DrawInfoBarArrows(int* x) const OVERRIDE; | 436 virtual bool DrawInfoBarArrows(int* x) const OVERRIDE; |
| 439 | 437 |
| 440 // views::SingleSplitViewListener overrides: | 438 // views::SingleSplitViewListener overrides: |
| 441 virtual bool SplitHandleMoved(views::SingleSplitView* sender) OVERRIDE; | 439 virtual bool SplitHandleMoved(views::SingleSplitView* sender) OVERRIDE; |
| 442 | 440 |
| 443 // gfx::SysColorChangeListener overrides: | 441 // gfx::SysColorChangeListener overrides: |
| 444 virtual void OnSysColorChange() OVERRIDE; | 442 virtual void OnSysColorChange() OVERRIDE; |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 749 scoped_ptr<ScrollEndEffectController> scroll_end_effect_controller_; | 747 scoped_ptr<ScrollEndEffectController> scroll_end_effect_controller_; |
| 750 | 748 |
| 751 gfx::ScopedSysColorChangeListener color_change_listener_; | 749 gfx::ScopedSysColorChangeListener color_change_listener_; |
| 752 | 750 |
| 753 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 751 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
| 754 | 752 |
| 755 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 753 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 756 }; | 754 }; |
| 757 | 755 |
| 758 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 756 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |