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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_controller_private.h

Issue 2339663002: [Mac] Fullscreen Toolbar Bar Visibility Edge Cases (Closed)
Patch Set: Created 4 years, 3 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
7 7
8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
9 #import "chrome/browser/ui/cocoa/browser_window_layout.h" 9 #import "chrome/browser/ui/cocoa/browser_window_layout.h"
10 #import "chrome/browser/ui/cocoa/fullscreen_toolbar_controller.h" 10 #import "chrome/browser/ui/cocoa/fullscreen_toolbar_controller.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // The min Y of the bubble point in the coordinate space of the toolbar. 106 // The min Y of the bubble point in the coordinate space of the toolbar.
107 - (NSInteger)pageInfoBubblePointY; 107 - (NSInteger)pageInfoBubblePointY;
108 108
109 // Configures the fullscreenToolbarController_ right after it is constructed. 109 // Configures the fullscreenToolbarController_ right after it is constructed.
110 - (void)configureFullscreenToolbarController; 110 - (void)configureFullscreenToolbarController;
111 111
112 // Allows the omnibox to slide. Also prepares UI for several fullscreen modes. 112 // Allows the omnibox to slide. Also prepares UI for several fullscreen modes.
113 // This method gets called when entering AppKit fullscren, or when entering 113 // This method gets called when entering AppKit fullscren, or when entering
114 // Immersive fullscreen. Expects fullscreenStyle_ to be set. 114 // Immersive fullscreen. Expects fullscreenStyle_ to be set.
115 - (void)adjustUIForSlidingFullscreenStyle:(fullscreen_mac::SlidingStyle)style; 115 - (void)adjustUIForSlidingFullscreenStyle:(FullscreenSlidingStyle)style;
116 116
117 // This method gets called when exiting AppKit fullscreen, or when exiting 117 // This method gets called when exiting AppKit fullscreen, or when exiting
118 // Immersive fullscreen. It performs some common UI changes, and stops the 118 // Immersive fullscreen. It performs some common UI changes, and stops the
119 // omnibox from sliding. 119 // omnibox from sliding.
120 - (void)adjustUIForExitingFullscreenAndStopOmniboxSliding; 120 - (void)adjustUIForExitingFullscreenAndStopOmniboxSliding;
121 121
122 // Exposed for testing. 122 // Exposed for testing.
123 // Creates a FullscreenToolbarController with the given style. 123 // Creates a FullscreenToolbarController with the given style.
124 - (FullscreenToolbarController*)newFullscreenToolbarControllerWithStyle: 124 - (FullscreenToolbarController*)newFullscreenToolbarControllerWithStyle:
125 (fullscreen_mac::SlidingStyle)style; 125 (FullscreenSlidingStyle)style;
126 126
127 // Toggles the AppKit Fullscreen API. By default, doing so enters Canonical 127 // Toggles the AppKit Fullscreen API. By default, doing so enters Canonical
128 // Fullscreen. 128 // Fullscreen.
129 - (void)enterAppKitFullscreen; 129 - (void)enterAppKitFullscreen;
130 - (void)exitAppKitFullscreen; 130 - (void)exitAppKitFullscreen;
131 131
132 // Returns where the fullscreen button should be positioned in the window. 132 // Returns where the fullscreen button should be positioned in the window.
133 // Returns NSZeroRect if there is no fullscreen button (if currently in 133 // Returns NSZeroRect if there is no fullscreen button (if currently in
134 // fullscreen, or if running 10.6 or 10.10+). 134 // fullscreen, or if running 10.6 or 10.10+).
135 - (NSRect)fullscreenButtonFrame; 135 - (NSRect)fullscreenButtonFrame;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // Determines the appropriate sliding fullscreen style and adjusts the UI to 186 // Determines the appropriate sliding fullscreen style and adjusts the UI to
187 // it when we are entering fullscreen. 187 // it when we are entering fullscreen.
188 - (void)adjustUIForEnteringFullscreen; 188 - (void)adjustUIForEnteringFullscreen;
189 189
190 // Returns YES if the fullscreen is for tab content or an extension. 190 // Returns YES if the fullscreen is for tab content or an extension.
191 - (BOOL)isFullscreenForTabContentOrExtension; 191 - (BOOL)isFullscreenForTabContentOrExtension;
192 192
193 @end // @interface BrowserWindowController(Private) 193 @end // @interface BrowserWindowController(Private)
194 194
195 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 195 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698