| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 - (void)cancelAnimationAndTimers; | 138 - (void)cancelAnimationAndTimers; |
| 139 | 139 |
| 140 // In any fullscreen mode, the y offset to use for the content at the top of | 140 // In any fullscreen mode, the y offset to use for the content at the top of |
| 141 // the screen (tab strip, omnibox, bookmark bar, etc). | 141 // the screen (tab strip, omnibox, bookmark bar, etc). |
| 142 // Ranges from 0 to -22. | 142 // Ranges from 0 to -22. |
| 143 - (CGFloat)menubarOffset; | 143 - (CGFloat)menubarOffset; |
| 144 | 144 |
| 145 // Returns true if the window is the main window. | 145 // Returns true if the window is the main window. |
| 146 - (BOOL)isMainWindow; | 146 - (BOOL)isMainWindow; |
| 147 | 147 |
| 148 // Returns true if the browser is in the process of entering/exiting |
| 149 // fullscreen. |
| 150 - (BOOL)isFullscreenTransitionInProgress; |
| 151 |
| 148 @end | 152 @end |
| 149 | 153 |
| 150 // Private methods exposed for testing. | 154 // Private methods exposed for testing. |
| 151 @interface PresentationModeController (ExposedForTesting) | 155 @interface PresentationModeController (ExposedForTesting) |
| 152 // Adjusts the AppKit Fullscreen options of the application. | 156 // Adjusts the AppKit Fullscreen options of the application. |
| 153 - (void)setSystemFullscreenModeTo:(base::mac::FullScreenMode)mode; | 157 - (void)setSystemFullscreenModeTo:(base::mac::FullScreenMode)mode; |
| 154 | 158 |
| 155 // Callback for menu bar animations. | 159 // Callback for menu bar animations. |
| 156 - (void)setMenuBarRevealProgress:(CGFloat)progress; | 160 - (void)setMenuBarRevealProgress:(CGFloat)progress; |
| 157 | 161 |
| 158 // Updates the local state that reflects the fraction of the toolbar area that | 162 // Updates the local state that reflects the fraction of the toolbar area that |
| 159 // is showing. This function has the side effect of changing the AppKit | 163 // is showing. This function has the side effect of changing the AppKit |
| 160 // Fullscreen option for whether the menu bar is shown. | 164 // Fullscreen option for whether the menu bar is shown. |
| 161 - (void)changeToolbarFraction:(CGFloat)fraction; | 165 - (void)changeToolbarFraction:(CGFloat)fraction; |
| 162 @end | 166 @end |
| 163 | 167 |
| 164 // Notification posted when we're about to enter or leave fullscreen. | 168 // Notification posted when we're about to enter or leave fullscreen. |
| 165 extern NSString* const kWillEnterFullscreenNotification; | 169 extern NSString* const kWillEnterFullscreenNotification; |
| 166 extern NSString* const kWillLeaveFullscreenNotification; | 170 extern NSString* const kWillLeaveFullscreenNotification; |
| 167 | 171 |
| 168 #endif // CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_ | 172 #endif // CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_ |
| OLD | NEW |