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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |