| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 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 | 77 // controller that the dropdown can be hidden. (The dropdown should never be |
| 78 // hidden while a permissions bubble is visible.) | 78 // hidden while a permissions bubble is visible.) |
| 79 - (void)permissionBubbleWindowWillClose:(NSNotification*)notification; | 79 - (void)permissionBubbleWindowWillClose:(NSNotification*)notification; |
| 80 | 80 |
| 81 // Updates the anchor position of the permission bubble. |
| 82 - (void)updatePermissionBubbleAnchor; |
| 83 |
| 81 // Enter or exit fullscreen without using Cocoa's System Fullscreen API. These | 84 // Enter or exit fullscreen without using Cocoa's System Fullscreen API. These |
| 82 // methods are internal implementations of |-setFullscreen:|. | 85 // methods are internal implementations of |-setFullscreen:|. |
| 83 - (void)enterImmersiveFullscreen; | 86 - (void)enterImmersiveFullscreen; |
| 84 - (void)exitImmersiveFullscreen; | 87 - (void)exitImmersiveFullscreen; |
| 85 | 88 |
| 86 // Register or deregister for content view resize notifications. These | 89 // Register or deregister for content view resize notifications. These |
| 87 // notifications are used while transitioning into fullscreen mode using Cocoa's | 90 // notifications are used while transitioning into fullscreen mode using Cocoa's |
| 88 // System Fullscreen API. | 91 // System Fullscreen API. |
| 89 - (void)registerForContentViewResizeNotifications; | 92 - (void)registerForContentViewResizeNotifications; |
| 90 - (void)deregisterForContentViewResizeNotifications; | 93 - (void)deregisterForContentViewResizeNotifications; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // Determines the appropriate sliding fullscreen style and adjusts the UI to | 191 // Determines the appropriate sliding fullscreen style and adjusts the UI to |
| 189 // it when we are entering fullscreen. | 192 // it when we are entering fullscreen. |
| 190 - (void)adjustUIForEnteringFullscreen; | 193 - (void)adjustUIForEnteringFullscreen; |
| 191 | 194 |
| 192 // Returns YES if the fullscreen is for tab content or an extension. | 195 // Returns YES if the fullscreen is for tab content or an extension. |
| 193 - (BOOL)isFullscreenForTabContentOrExtension; | 196 - (BOOL)isFullscreenForTabContentOrExtension; |
| 194 | 197 |
| 195 @end // @interface BrowserWindowController(Private) | 198 @end // @interface BrowserWindowController(Private) |
| 196 | 199 |
| 197 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 200 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
| OLD | NEW |