| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #import "chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h" | 5 #import "chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h" |
| 6 | 6 |
| 7 #include "chrome/browser/download/download_shelf.h" | 7 #include "chrome/browser/download/download_shelf.h" |
| 8 #include "chrome/browser/ui/browser_window.h" | 8 #include "chrome/browser/ui/browser_window.h" |
| 9 #include "chrome/browser/ui/cocoa/accelerators_cocoa.h" | 9 #include "chrome/browser/ui/cocoa/accelerators_cocoa.h" |
| 10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 bool ExclusiveAccessController::IsFullscreen() const { | 88 bool ExclusiveAccessController::IsFullscreen() const { |
| 89 return [controller_ isInAnyFullscreenMode]; | 89 return [controller_ isInAnyFullscreenMode]; |
| 90 } | 90 } |
| 91 | 91 |
| 92 void ExclusiveAccessController::UpdateUIForTabFullscreen( | 92 void ExclusiveAccessController::UpdateUIForTabFullscreen( |
| 93 TabFullscreenState state) { | 93 TabFullscreenState state) { |
| 94 [controller_ updateUIForTabFullscreen:state]; | 94 [controller_ updateUIForTabFullscreen:state]; |
| 95 } | 95 } |
| 96 | 96 |
| 97 void ExclusiveAccessController::UpdateFullscreenToolbar() { | 97 void ExclusiveAccessController::UpdateFullscreenToolbar() { |
| 98 [[controller_ fullscreenToolbarController] updateToolbarStyle]; | 98 [[controller_ fullscreenToolbarController] |
| 99 updateToolbarStyleExitingTabFullscreen:NO]; |
| 99 } | 100 } |
| 100 | 101 |
| 101 // See the Fullscreen terminology section and the (Fullscreen) interface | 102 // See the Fullscreen terminology section and the (Fullscreen) interface |
| 102 // category in browser_window_controller.h for a detailed explanation of the | 103 // category in browser_window_controller.h for a detailed explanation of the |
| 103 // logic in this method. | 104 // logic in this method. |
| 104 void ExclusiveAccessController::EnterFullscreen( | 105 void ExclusiveAccessController::EnterFullscreen( |
| 105 const GURL& url, | 106 const GURL& url, |
| 106 ExclusiveAccessBubbleType bubble_type) { | 107 ExclusiveAccessBubbleType bubble_type) { |
| 107 url_ = url; | 108 url_ = url; |
| 108 bubble_type_ = bubble_type; | 109 bubble_type_ = bubble_type; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 } | 189 } |
| 189 | 190 |
| 190 gfx::Rect ExclusiveAccessController::GetTopContainerBoundsInScreen() { | 191 gfx::Rect ExclusiveAccessController::GetTopContainerBoundsInScreen() { |
| 191 NOTREACHED(); // Only used for ImmersiveMode. | 192 NOTREACHED(); // Only used for ImmersiveMode. |
| 192 return gfx::Rect(); | 193 return gfx::Rect(); |
| 193 } | 194 } |
| 194 | 195 |
| 195 BrowserWindow* ExclusiveAccessController::GetBrowserWindow() const { | 196 BrowserWindow* ExclusiveAccessController::GetBrowserWindow() const { |
| 196 return [controller_ browserWindow]; | 197 return [controller_ browserWindow]; |
| 197 } | 198 } |
| OLD | NEW |