| 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_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 // A class acting as the Objective-C controller for the Browser | 8 // A class acting as the Objective-C controller for the Browser |
| 9 // object. Handles interactions between Cocoa and the cross-platform | 9 // object. Handles interactions between Cocoa and the cross-platform |
| 10 // code. Each window has a single toolbar and, by virtue of being a | 10 // code. Each window has a single toolbar and, by virtue of being a |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 | 434 |
| 435 // Called to check if this controller's window is a tabbed window (e.g., not a | 435 // Called to check if this controller's window is a tabbed window (e.g., not a |
| 436 // pop-up window). Returns YES if it is, NO otherwise. | 436 // pop-up window). Returns YES if it is, NO otherwise. |
| 437 // Note: The |-has...| methods are usually preferred, so this method is largely | 437 // Note: The |-has...| methods are usually preferred, so this method is largely |
| 438 // deprecated. | 438 // deprecated. |
| 439 - (BOOL)isTabbedWindow; | 439 - (BOOL)isTabbedWindow; |
| 440 | 440 |
| 441 // Returns the size of the original (non-fullscreen) window. | 441 // Returns the size of the original (non-fullscreen) window. |
| 442 - (NSRect)savedRegularWindowFrame; | 442 - (NSRect)savedRegularWindowFrame; |
| 443 | 443 |
| 444 // Returns true if the browser is in the process of entering/exiting |
| 445 // fullscreen. |
| 446 - (BOOL)isFullscreenTransitionInProgress; |
| 447 |
| 444 @end // @interface BrowserWindowController(WindowType) | 448 @end // @interface BrowserWindowController(WindowType) |
| 445 | 449 |
| 446 // Fullscreen terminology: | 450 // Fullscreen terminology: |
| 447 // | 451 // |
| 448 // ---------------------------------------------------------------------------- | 452 // ---------------------------------------------------------------------------- |
| 449 // There are 2 APIs that cause the window to get resized, and possibly move | 453 // There are 2 APIs that cause the window to get resized, and possibly move |
| 450 // spaces. | 454 // spaces. |
| 451 // | 455 // |
| 452 // + AppKitFullscreen API: AppKit touts a feature known as "fullscreen". This | 456 // + AppKitFullscreen API: AppKit touts a feature known as "fullscreen". This |
| 453 // involves moving the current window to a different space, and resizing the | 457 // involves moving the current window to a different space, and resizing the |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 // Returns the active tab contents controller's |blockFullscreenResize_| flag. | 664 // Returns the active tab contents controller's |blockFullscreenResize_| flag. |
| 661 - (BOOL)isActiveTabContentsControllerResizeBlocked; | 665 - (BOOL)isActiveTabContentsControllerResizeBlocked; |
| 662 | 666 |
| 663 // Returns the presentation mode controller. | 667 // Returns the presentation mode controller. |
| 664 - (PresentationModeController*)presentationModeController; | 668 - (PresentationModeController*)presentationModeController; |
| 665 | 669 |
| 666 @end // @interface BrowserWindowController (TestingAPI) | 670 @end // @interface BrowserWindowController (TestingAPI) |
| 667 | 671 |
| 668 | 672 |
| 669 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 673 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |