Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(494)

Side by Side Diff: chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm

Issue 2491343003: [Mac] Fix for fullscreen toolbar layout issues (Closed)
Patch Set: Fix for avi Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698