| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 - (void)ensureOverlayHiddenWithAnimation:(BOOL)animate delay:(BOOL)delay; | 135 - (void)ensureOverlayHiddenWithAnimation:(BOOL)animate delay:(BOOL)delay; |
| 136 | 136 |
| 137 // Cancels any running animation and timers. | 137 // Cancels any running animation and timers. |
| 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 on the active space. | 145 // Returns true if the window is the main window. |
| 146 - (BOOL)isOnActiveSpace; | 146 - (BOOL)isMainWindow; |
| 147 | 147 |
| 148 @end | 148 @end |
| 149 | 149 |
| 150 // Private methods exposed for testing. | 150 // Private methods exposed for testing. |
| 151 @interface PresentationModeController (ExposedForTesting) | 151 @interface PresentationModeController (ExposedForTesting) |
| 152 // Adjusts the AppKit Fullscreen options of the application. | 152 // Adjusts the AppKit Fullscreen options of the application. |
| 153 - (void)setSystemFullscreenModeTo:(base::mac::FullScreenMode)mode; | 153 - (void)setSystemFullscreenModeTo:(base::mac::FullScreenMode)mode; |
| 154 | 154 |
| 155 // Callback for menu bar animations. | 155 // Callback for menu bar animations. |
| 156 - (void)setMenuBarRevealProgress:(CGFloat)progress; | 156 - (void)setMenuBarRevealProgress:(CGFloat)progress; |
| 157 | 157 |
| 158 // Updates the local state that reflects the fraction of the toolbar area that | 158 // 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 | 159 // is showing. This function has the side effect of changing the AppKit |
| 160 // Fullscreen option for whether the menu bar is shown. | 160 // Fullscreen option for whether the menu bar is shown. |
| 161 - (void)changeToolbarFraction:(CGFloat)fraction; | 161 - (void)changeToolbarFraction:(CGFloat)fraction; |
| 162 @end | 162 @end |
| 163 | 163 |
| 164 // Notification posted when we're about to enter or leave fullscreen. | 164 // Notification posted when we're about to enter or leave fullscreen. |
| 165 extern NSString* const kWillEnterFullscreenNotification; | 165 extern NSString* const kWillEnterFullscreenNotification; |
| 166 extern NSString* const kWillLeaveFullscreenNotification; | 166 extern NSString* const kWillLeaveFullscreenNotification; |
| 167 | 167 |
| 168 #endif // CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_ | 168 #endif // CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_ |
| OLD | NEW |