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

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

Issue 2557533003: [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 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1970 - (BOOL)supportsWindowFeature:(int)feature { 1970 - (BOOL)supportsWindowFeature:(int)feature {
1971 return browser_->SupportsWindowFeature( 1971 return browser_->SupportsWindowFeature(
1972 static_cast<Browser::WindowFeature>(feature)); 1972 static_cast<Browser::WindowFeature>(feature));
1973 } 1973 }
1974 1974
1975 - (BOOL)hasTitleBar { 1975 - (BOOL)hasTitleBar {
1976 return [self supportsWindowFeature:Browser::FEATURE_TITLEBAR]; 1976 return [self supportsWindowFeature:Browser::FEATURE_TITLEBAR];
1977 } 1977 }
1978 1978
1979 - (BOOL)hasToolbar { 1979 - (BOOL)hasToolbar {
1980 return [self supportsWindowFeature:Browser::FEATURE_TOOLBAR]; 1980 FullscreenToolbarLayout layout =
1981 [[self fullscreenToolbarController] computeLayout];
1982 return layout.toolbarStyle != FullscreenToolbarStyle::TOOLBAR_NONE &&
1983 [self supportsWindowFeature:Browser::FEATURE_TOOLBAR];
1981 } 1984 }
1982 1985
1983 - (BOOL)hasLocationBar { 1986 - (BOOL)hasLocationBar {
1984 return [self supportsWindowFeature:Browser::FEATURE_LOCATIONBAR]; 1987 return [self supportsWindowFeature:Browser::FEATURE_LOCATIONBAR];
1985 } 1988 }
1986 1989
1987 - (BOOL)supportsBookmarkBar { 1990 - (BOOL)supportsBookmarkBar {
1988 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR]; 1991 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR];
1989 } 1992 }
1990 1993
1991 - (BOOL)isTabbedWindow { 1994 - (BOOL)isTabbedWindow {
1992 return browser_->is_type_tabbed(); 1995 return browser_->is_type_tabbed();
1993 } 1996 }
1994 1997
1995 - (NSRect)savedRegularWindowFrame { 1998 - (NSRect)savedRegularWindowFrame {
1996 return savedRegularWindowFrame_; 1999 return savedRegularWindowFrame_;
1997 } 2000 }
1998 2001
1999 - (BOOL)isFullscreenTransitionInProgress { 2002 - (BOOL)isFullscreenTransitionInProgress {
2000 return enteringAppKitFullscreen_ || exitingAppKitFullscreen_; 2003 return enteringAppKitFullscreen_ || exitingAppKitFullscreen_;
2001 } 2004 }
2002 2005
2003 @end // @implementation BrowserWindowController(WindowType) 2006 @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