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

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: 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 - (void)ensureOverlayHiddenWithAnimation:(BOOL)animate delay:(BOOL)delay; 134 - (void)ensureOverlayHiddenWithAnimation:(BOOL)animate delay:(BOOL)delay;
135 135
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 // Exposed for testing.
145 // Adjusts the fullscreen state of the application.
146 - (void)setSystemFullscreenModeTo:(base::mac::FullScreenMode)mode;
147
148 // Exposed for testing.
149 // Callback for menu bar animations.
150 - (void)setMenuBarRevealProgress:(CGFloat)progress;
Andre 2014/09/05 00:13:00 Why are these 2 exposed here, but changeToolbarFra
erikchen 2014/09/05 17:57:49 Done.
151
144 @end 152 @end
145 153
146 // Notification posted when we're about to enter or leave fullscreen. 154 // Notification posted when we're about to enter or leave fullscreen.
147 extern NSString* const kWillEnterFullscreenNotification; 155 extern NSString* const kWillEnterFullscreenNotification;
148 extern NSString* const kWillLeaveFullscreenNotification; 156 extern NSString* const kWillLeaveFullscreenNotification;
149 157
150 #endif // CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_ 158 #endif // CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698