| 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/fullscreen_toolbar_controller.h" | 10 #import "chrome/browser/ui/cocoa/fullscreen_toolbar_controller.h" |
| 11 | 11 |
| 12 @class BrowserWindowLayout; | 12 @class BrowserWindowLayout; |
| 13 class PermissionBubbleManager; | 13 class PermissionRequestManager; |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 class WebContents; | 16 class WebContents; |
| 17 } // content. | 17 } // content. |
| 18 | 18 |
| 19 // Private methods for the |BrowserWindowController|. This category should | 19 // Private methods for the |BrowserWindowController|. This category should |
| 20 // contain the private methods used by different parts of the BWC; private | 20 // contain the private methods used by different parts of the BWC; private |
| 21 // methods used only by single parts should be declared in their own file. | 21 // methods used only by single parts should be declared in their own file. |
| 22 // TODO(viettrungluu): [crbug.com/35543] work on splitting out stuff from the | 22 // TODO(viettrungluu): [crbug.com/35543] work on splitting out stuff from the |
| 23 // BWC, and figuring out which methods belong here (need to unravel | 23 // BWC, and figuring out which methods belong here (need to unravel |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 // Whether the instance should use a custom transition when animating into and | 170 // Whether the instance should use a custom transition when animating into and |
| 171 // out of AppKit Fullscreen. | 171 // out of AppKit Fullscreen. |
| 172 - (BOOL)shouldUseCustomAppKitFullscreenTransition:(BOOL)enterFullScreen; | 172 - (BOOL)shouldUseCustomAppKitFullscreenTransition:(BOOL)enterFullScreen; |
| 173 | 173 |
| 174 // Resets the variables that were set from using custom AppKit fullscreen | 174 // Resets the variables that were set from using custom AppKit fullscreen |
| 175 // animation. | 175 // animation. |
| 176 - (void)resetCustomAppKitFullscreenVariables; | 176 - (void)resetCustomAppKitFullscreenVariables; |
| 177 | 177 |
| 178 - (content::WebContents*)webContents; | 178 - (content::WebContents*)webContents; |
| 179 - (PermissionBubbleManager*)permissionBubbleManager; | 179 - (PermissionRequestManager*)permissionRequestManager; |
| 180 | 180 |
| 181 // Hides or unhides any displayed modal sheet for fullscreen transition. | 181 // Hides or unhides any displayed modal sheet for fullscreen transition. |
| 182 // Modal sheets should be hidden at the beginning and then shown at the end. | 182 // Modal sheets should be hidden at the beginning and then shown at the end. |
| 183 - (void)setSheetHiddenForFullscreenTransition:(BOOL)shoudHide; | 183 - (void)setSheetHiddenForFullscreenTransition:(BOOL)shoudHide; |
| 184 | 184 |
| 185 // Adjusts the UI and destroys the exit bubble when we are exiting fullscreen. | 185 // Adjusts the UI and destroys the exit bubble when we are exiting fullscreen. |
| 186 - (void)adjustUIForExitingFullscreen; | 186 - (void)adjustUIForExitingFullscreen; |
| 187 | 187 |
| 188 // Determines the appropriate sliding fullscreen style and adjusts the UI to | 188 // Determines the appropriate sliding fullscreen style and adjusts the UI to |
| 189 // it when we are entering fullscreen. | 189 // it when we are entering fullscreen. |
| 190 - (void)adjustUIForEnteringFullscreen; | 190 - (void)adjustUIForEnteringFullscreen; |
| 191 | 191 |
| 192 // Returns YES if the fullscreen is for tab content or an extension. | 192 // Returns YES if the fullscreen is for tab content or an extension. |
| 193 - (BOOL)isFullscreenForTabContentOrExtension; | 193 - (BOOL)isFullscreenForTabContentOrExtension; |
| 194 | 194 |
| 195 @end // @interface BrowserWindowController(Private) | 195 @end // @interface BrowserWindowController(Private) |
| 196 | 196 |
| 197 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 197 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
| OLD | NEW |