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

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

Issue 2467833003: [Mac] Move the fullscreen toolbar style to FullscreenToolbarController (Closed)
Patch Set: fix for rsesek 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
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // The opacity for the toolbar divider; 0 means that it shouldn't be shown. 90 // The opacity for the toolbar divider; 0 means that it shouldn't be shown.
91 - (CGFloat)toolbarDividerOpacity; 91 - (CGFloat)toolbarDividerOpacity;
92 92
93 // Update visibility of the infobar tip, depending on the state of the window. 93 // Update visibility of the infobar tip, depending on the state of the window.
94 - (void)updateInfoBarTipVisibility; 94 - (void)updateInfoBarTipVisibility;
95 95
96 // The min Y of the bubble point in the coordinate space of the toolbar. 96 // The min Y of the bubble point in the coordinate space of the toolbar.
97 - (NSInteger)pageInfoBubblePointY; 97 - (NSInteger)pageInfoBubblePointY;
98 98
99 // Allows the omnibox to slide. Also prepares UI for several fullscreen modes.
100 // This method gets called when entering AppKit fullscren, or when entering
101 // Immersive fullscreen. Expects fullscreenStyle_ to be set.
102 - (void)adjustUIForSlidingFullscreenStyle:(FullscreenSlidingStyle)style;
103
104 // This method gets called when exiting AppKit fullscreen, or when exiting
105 // Immersive fullscreen. It performs some common UI changes, and stops the
106 // omnibox from sliding.
107 - (void)adjustUIForExitingFullscreenAndStopOmniboxSliding;
108
109 // Exposed for testing.
110 // Creates a FullscreenToolbarController with the given style.
111 - (FullscreenToolbarController*)newFullscreenToolbarControllerWithStyle:
112 (FullscreenSlidingStyle)style;
113
114 // Toggles the AppKit Fullscreen API. By default, doing so enters Canonical 99 // Toggles the AppKit Fullscreen API. By default, doing so enters Canonical
115 // Fullscreen. 100 // Fullscreen.
116 - (void)enterAppKitFullscreen; 101 - (void)enterAppKitFullscreen;
117 - (void)exitAppKitFullscreen; 102 - (void)exitAppKitFullscreen;
118 103
119 // Returns where the fullscreen button should be positioned in the window. 104 // Returns where the fullscreen button should be positioned in the window.
120 // Returns NSZeroRect if there is no fullscreen button (if currently in 105 // Returns NSZeroRect if there is no fullscreen button (if currently in
121 // fullscreen, or if running 10.6 or 10.10+). 106 // fullscreen, or if running 10.6 or 10.10+).
122 - (NSRect)fullscreenButtonFrame; 107 - (NSRect)fullscreenButtonFrame;
123 108
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Modal sheets should be hidden at the beginning and then shown at the end. 152 // Modal sheets should be hidden at the beginning and then shown at the end.
168 - (void)setSheetHiddenForFullscreenTransition:(BOOL)shoudHide; 153 - (void)setSheetHiddenForFullscreenTransition:(BOOL)shoudHide;
169 154
170 // Adjusts the UI and destroys the exit bubble when we are exiting fullscreen. 155 // Adjusts the UI and destroys the exit bubble when we are exiting fullscreen.
171 - (void)adjustUIForExitingFullscreen; 156 - (void)adjustUIForExitingFullscreen;
172 157
173 // Determines the appropriate sliding fullscreen style and adjusts the UI to 158 // Determines the appropriate sliding fullscreen style and adjusts the UI to
174 // it when we are entering fullscreen. 159 // it when we are entering fullscreen.
175 - (void)adjustUIForEnteringFullscreen; 160 - (void)adjustUIForEnteringFullscreen;
176 161
177 // Returns YES if the fullscreen is for tab content or an extension.
178 - (BOOL)isFullscreenForTabContentOrExtension;
179
180 // Accessor for the controller managing the fullscreen toolbar visibility 162 // Accessor for the controller managing the fullscreen toolbar visibility
181 // locks. 163 // locks.
182 - (FullscreenToolbarVisibilityLockController*) 164 - (FullscreenToolbarVisibilityLockController*)
183 fullscreenToolbarVisibilityLockController; 165 fullscreenToolbarVisibilityLockController;
184 166
185 @end // @interface BrowserWindowController(Private) 167 @end // @interface BrowserWindowController(Private)
186 168
187 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 169 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698