| 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" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 - (void)adjustToolbarAndBookmarkBarForCompression:(CGFloat)compression; | 66 - (void)adjustToolbarAndBookmarkBarForCompression:(CGFloat)compression; |
| 67 | 67 |
| 68 // Moves views between windows in preparation for fullscreen mode when not using | 68 // Moves views between windows in preparation for fullscreen mode when not using |
| 69 // Cocoa's System Fullscreen API. (System Fullscreen reuses the original window | 69 // Cocoa's System Fullscreen API. (System Fullscreen reuses the original window |
| 70 // for fullscreen mode, so there is no need to move views around.) This method | 70 // for fullscreen mode, so there is no need to move views around.) This method |
| 71 // does not position views; callers must also call |-layoutSubviews:|. | 71 // does not position views; callers must also call |-layoutSubviews:|. |
| 72 - (void)moveViewsForImmersiveFullscreen:(BOOL)fullscreen | 72 - (void)moveViewsForImmersiveFullscreen:(BOOL)fullscreen |
| 73 regularWindow:(NSWindow*)regularWindow | 73 regularWindow:(NSWindow*)regularWindow |
| 74 fullscreenWindow:(NSWindow*)fullscreenWindow; | 74 fullscreenWindow:(NSWindow*)fullscreenWindow; |
| 75 | 75 |
| 76 // Called when a permission bubble closes, and informs the fullscreen toolbar | |
| 77 // controller that the dropdown can be hidden. (The dropdown should never be | |
| 78 // hidden while a permissions bubble is visible.) | |
| 79 - (void)permissionBubbleWindowWillClose:(NSNotification*)notification; | |
| 80 | |
| 81 // Updates the anchor position of the permission bubble. | 76 // Updates the anchor position of the permission bubble. |
| 82 - (void)updatePermissionBubbleAnchor; | 77 - (void)updatePermissionBubbleAnchor; |
| 83 | 78 |
| 84 // Enter or exit fullscreen without using Cocoa's System Fullscreen API. These | 79 // Enter or exit fullscreen without using Cocoa's System Fullscreen API. These |
| 85 // methods are internal implementations of |-setFullscreen:|. | 80 // methods are internal implementations of |-setFullscreen:|. |
| 86 - (void)enterImmersiveFullscreen; | 81 - (void)enterImmersiveFullscreen; |
| 87 - (void)exitImmersiveFullscreen; | 82 - (void)exitImmersiveFullscreen; |
| 88 | 83 |
| 89 // Register or deregister for content view resize notifications. These | 84 // Register or deregister for content view resize notifications. These |
| 90 // notifications are used while transitioning into fullscreen mode using Cocoa's | 85 // notifications are used while transitioning into fullscreen mode using Cocoa's |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // Determines the appropriate sliding fullscreen style and adjusts the UI to | 186 // Determines the appropriate sliding fullscreen style and adjusts the UI to |
| 192 // it when we are entering fullscreen. | 187 // it when we are entering fullscreen. |
| 193 - (void)adjustUIForEnteringFullscreen; | 188 - (void)adjustUIForEnteringFullscreen; |
| 194 | 189 |
| 195 // Returns YES if the fullscreen is for tab content or an extension. | 190 // Returns YES if the fullscreen is for tab content or an extension. |
| 196 - (BOOL)isFullscreenForTabContentOrExtension; | 191 - (BOOL)isFullscreenForTabContentOrExtension; |
| 197 | 192 |
| 198 @end // @interface BrowserWindowController(Private) | 193 @end // @interface BrowserWindowController(Private) |
| 199 | 194 |
| 200 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 195 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
| OLD | NEW |