| 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_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
| 7 | 7 |
| 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 9 #import "chrome/browser/ui/cocoa/browser_window_layout.h" | 9 #import "chrome/browser/ui/cocoa/browser_window_layout.h" |
| 10 #import "chrome/browser/ui/cocoa/presentation_mode_controller.h" | 10 #import "chrome/browser/ui/cocoa/presentation_mode_controller.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // for the window to be on a secondary screen. When AppKit Fullscreen is | 160 // for the window to be on a secondary screen. When AppKit Fullscreen is |
| 161 // invoked on the window, its final frame is 22pt too short. These methods | 161 // invoked on the window, its final frame is 22pt too short. These methods |
| 162 // detect when the relevant conditions have been met so that a hack can be | 162 // detect when the relevant conditions have been met so that a hack can be |
| 163 // applied to fix the size of the window. | 163 // applied to fix the size of the window. |
| 164 // http://crbug.com/396980 | 164 // http://crbug.com/396980 |
| 165 + (BOOL)systemSettingsRequireMavericksAppKitFullscreenHack; | 165 + (BOOL)systemSettingsRequireMavericksAppKitFullscreenHack; |
| 166 - (BOOL)shouldUseMavericksAppKitFullscreenHack; | 166 - (BOOL)shouldUseMavericksAppKitFullscreenHack; |
| 167 | 167 |
| 168 // Whether the instance should use a custom transition when animating into and | 168 // Whether the instance should use a custom transition when animating into and |
| 169 // out of AppKit Fullscreen. | 169 // out of AppKit Fullscreen. |
| 170 - (BOOL)shouldUseCustomAppKitFullscreenTransition; | 170 - (BOOL)shouldUseCustomAppKitFullscreenTransition:(BOOL)enterFullScreen; |
| 171 | 171 |
| 172 - (content::WebContents*)webContents; | 172 - (content::WebContents*)webContents; |
| 173 - (PermissionBubbleManager*)permissionBubbleManager; | 173 - (PermissionBubbleManager*)permissionBubbleManager; |
| 174 | 174 |
| 175 #if defined(MAC_OS_X_VERSION_10_7) && \ | 175 #if defined(MAC_OS_X_VERSION_10_7) && \ |
| 176 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7 | 176 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7 |
| 177 // Redeclare some methods from NSWindowDelegate to suppress | 177 // Redeclare some methods from NSWindowDelegate to suppress |
| 178 // -Wpartial-availability warnings. | 178 // -Wpartial-availability warnings. |
| 179 - (void)windowDidEnterFullScreen:(NSNotification*)notification; | 179 - (void)windowDidEnterFullScreen:(NSNotification*)notification; |
| 180 - (void)windowDidExitFullScreen:(NSNotification*)notification; | 180 - (void)windowDidExitFullScreen:(NSNotification*)notification; |
| 181 - (void)windowWillExitFullScreen:(NSNotification*)notification; | 181 - (void)windowWillExitFullScreen:(NSNotification*)notification; |
| 182 #endif | 182 #endif |
| 183 | 183 |
| 184 @end // @interface BrowserWindowController(Private) | 184 @end // @interface BrowserWindowController(Private) |
| 185 | 185 |
| 186 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 186 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
| OLD | NEW |