Chromium Code Reviews| Index: chrome/browser/ui/views/frame/browser_view.cc |
| diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc |
| index d18ac4ad94c2dab9f3dbb8f404ee17a555842994..a45d6a976474b64fbf440b40fbb3f24102648cbc 100644 |
| --- a/chrome/browser/ui/views/frame/browser_view.cc |
| +++ b/chrome/browser/ui/views/frame/browser_view.cc |
| @@ -966,6 +966,11 @@ void BrowserView::SetWindowSwitcherButton(views::Button* button) { |
| window_switcher_button_ = button; |
| } |
| +void BrowserView::FullscreenStateChanged() { |
| + CHECK(!IsFullscreen()); |
| + ProcessFullscreen(false, FOR_DESKTOP, GURL(), FEB_TYPE_NONE); |
| +} |
| + |
| void BrowserView::ToolbarSizeChanged(bool is_animating) { |
| // The call to InfoBarContainer::SetMaxTopArrowHeight() below can result in |
| // reentrancy; |call_state| tracks whether we're reentrant. We can't just |
| @@ -1864,34 +1869,6 @@ void BrowserView::OnOmniboxPopupShownOrHidden() { |
| } |
| /////////////////////////////////////////////////////////////////////////////// |
| -// BrowserView, ImmersiveModeController::Delegate overrides: |
| - |
| -FullscreenController* BrowserView::GetFullscreenController() { |
| - // Cannot be injected into ImmersiveModeController because it is constructed |
| - // after BrowserView. |
| - return browser()->fullscreen_controller(); |
| -} |
| - |
| -void BrowserView::FullscreenStateChanged() { |
| - if (IsFullscreen()) { |
| - ProcessFullscreen(true, FOR_DESKTOP, GURL(), |
| - FEB_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION); |
| - } else { |
| - ProcessFullscreen(false, FOR_DESKTOP, GURL(), FEB_TYPE_NONE); |
| - } |
| -} |
| - |
| -void BrowserView::SetImmersiveStyle(bool immersive) { |
| - // Only the tab strip changes its painting style for immersive fullscreen. |
| - if (tabstrip_) |
| - tabstrip_->SetImmersiveStyle(immersive); |
| -} |
| - |
| -WebContents* BrowserView::GetWebContents() { |
| - return GetActiveWebContents(); |
| -} |
| - |
| -/////////////////////////////////////////////////////////////////////////////// |
| // BrowserView, InfoBarContainer::Delegate overrides: |
| SkColor BrowserView::GetInfoBarSeparatorColor() const { |
| @@ -2009,7 +1986,7 @@ void BrowserView::InitViews() { |
| if (window_switcher_button_) |
| AddChildView(window_switcher_button_); |
| - immersive_mode_controller_->Init(this, GetWidget(), top_container_); |
| + immersive_mode_controller_->Init(this); |
|
James Cook
2013/10/28 18:32:51
Do you need the whole BrowserView, or can you just
|
| BrowserViewLayout* browser_view_layout = new BrowserViewLayout; |
| browser_view_layout->Init(new BrowserViewLayoutDelegateImpl(this), |