Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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_ |
| OLD | NEW |