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

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

Issue 2549863002: [Mac] Fixed permission bubble position in fullscreen (Closed)
Patch Set: Created 4 years 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 5 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <numeric> 8 #include <numeric>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1960 matching lines...) Expand 10 before | Expand all | Expand 10 after
1971 - (BOOL)supportsWindowFeature:(int)feature { 1971 - (BOOL)supportsWindowFeature:(int)feature {
1972 return browser_->SupportsWindowFeature( 1972 return browser_->SupportsWindowFeature(
1973 static_cast<Browser::WindowFeature>(feature)); 1973 static_cast<Browser::WindowFeature>(feature));
1974 } 1974 }
1975 1975
1976 - (BOOL)hasTitleBar { 1976 - (BOOL)hasTitleBar {
1977 return [self supportsWindowFeature:Browser::FEATURE_TITLEBAR]; 1977 return [self supportsWindowFeature:Browser::FEATURE_TITLEBAR];
1978 } 1978 }
1979 1979
1980 - (BOOL)hasToolbar { 1980 - (BOOL)hasToolbar {
1981 return [self supportsWindowFeature:Browser::FEATURE_TOOLBAR]; 1981 FullscreenToolbarLayout layout =
1982 [[self fullscreenToolbarController] computeLayout];
1983 return layout.toolbarStyle != FullscreenToolbarStyle::TOOLBAR_NONE &&
1984 [self supportsWindowFeature:Browser::FEATURE_TOOLBAR];
1982 } 1985 }
1983 1986
1984 - (BOOL)hasLocationBar { 1987 - (BOOL)hasLocationBar {
1985 return [self supportsWindowFeature:Browser::FEATURE_LOCATIONBAR]; 1988 return [self supportsWindowFeature:Browser::FEATURE_LOCATIONBAR];
1986 } 1989 }
1987 1990
1988 - (BOOL)supportsBookmarkBar { 1991 - (BOOL)supportsBookmarkBar {
1989 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR]; 1992 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR];
1990 } 1993 }
1991 1994
1992 - (BOOL)isTabbedWindow { 1995 - (BOOL)isTabbedWindow {
1993 return browser_->is_type_tabbed(); 1996 return browser_->is_type_tabbed();
1994 } 1997 }
1995 1998
1996 - (NSRect)savedRegularWindowFrame { 1999 - (NSRect)savedRegularWindowFrame {
1997 return savedRegularWindowFrame_; 2000 return savedRegularWindowFrame_;
1998 } 2001 }
1999 2002
2000 - (BOOL)isFullscreenTransitionInProgress { 2003 - (BOOL)isFullscreenTransitionInProgress {
2001 return enteringAppKitFullscreen_ || exitingAppKitFullscreen_; 2004 return enteringAppKitFullscreen_ || exitingAppKitFullscreen_;
2002 } 2005 }
2003 2006
2004 @end // @implementation BrowserWindowController(WindowType) 2007 @end // @implementation BrowserWindowController(WindowType)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698