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

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

Issue 545643002: mac: Add basic layout unit test for fullscreen transition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from rsesek. Created 6 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_PRESENTATION_MODE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_
7 7
8 #include <Carbon/Carbon.h> 8 #include <Carbon/Carbon.h>
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // Cancels any running animation and timers. 136 // Cancels any running animation and timers.
137 - (void)cancelAnimationAndTimers; 137 - (void)cancelAnimationAndTimers;
138 138
139 // In any fullscreen mode, the y offset to use for the content at the top of 139 // In any fullscreen mode, the y offset to use for the content at the top of
140 // the screen (tab strip, omnibox, bookmark bar, etc). 140 // the screen (tab strip, omnibox, bookmark bar, etc).
141 // Ranges from 0 to -22. 141 // Ranges from 0 to -22.
142 - (CGFloat)menubarOffset; 142 - (CGFloat)menubarOffset;
143 143
144 @end 144 @end
145 145
146 // Private methods exposed for testing.
147 @interface PresentationModeController (ExposedForTesting)
148 // Adjusts the AppKit Fullscreen options of the application.
149 - (void)setSystemFullscreenModeTo:(base::mac::FullScreenMode)mode;
150
151 // Callback for menu bar animations.
152 - (void)setMenuBarRevealProgress:(CGFloat)progress;
153
154 // Updates the local state that reflects the fraction of the toolbar area that
155 // is showing. This function has the side effect of changing the AppKit
156 // Fullscreen option for whether the menu bar is shown.
157 - (void)changeToolbarFraction:(CGFloat)fraction;
158 @end
159
146 // Notification posted when we're about to enter or leave fullscreen. 160 // Notification posted when we're about to enter or leave fullscreen.
147 extern NSString* const kWillEnterFullscreenNotification; 161 extern NSString* const kWillEnterFullscreenNotification;
148 extern NSString* const kWillLeaveFullscreenNotification; 162 extern NSString* const kWillLeaveFullscreenNotification;
149 163
150 #endif // CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_ 164 #endif // CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_private.mm ('k') | chrome/browser/ui/cocoa/presentation_mode_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698