| 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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 // finished. | 558 // finished. |
| 559 - (void)exitFullscreenAnimationFinished; | 559 - (void)exitFullscreenAnimationFinished; |
| 560 | 560 |
| 561 // Resizes the fullscreen window to fit the screen it's currently on. Called by | 561 // Resizes the fullscreen window to fit the screen it's currently on. Called by |
| 562 // the FullscreenToolbarController when there is a change in monitor placement | 562 // the FullscreenToolbarController when there is a change in monitor placement |
| 563 // or resolution. | 563 // or resolution. |
| 564 - (void)resizeFullscreenWindow; | 564 - (void)resizeFullscreenWindow; |
| 565 | 565 |
| 566 // Query/lock/release the requirement that the tab strip/toolbar/attached | 566 // Query/lock/release the requirement that the tab strip/toolbar/attached |
| 567 // bookmark bar bar cluster is visible (e.g., when one of its elements has | 567 // bookmark bar bar cluster is visible (e.g., when one of its elements has |
| 568 // focus). This is required for the floating bar in presentation mode, but | 568 // focus). This is required for the floating bar if it's hidden in fullscreen, |
| 569 // should also be called when not in presentation mode; see the comments for | 569 // but should also be called when not in fullscreen mode; see the comments for |
| 570 // |barVisibilityLocks_| for more details. Double locks/releases by the same | 570 // |barVisibilityLocks_| for more details. Double locks/releases by the same |
| 571 // owner are ignored. If |animate:| is YES, then an animation may be | 571 // owner are ignored. If |animate:| is YES, then an animation may be |
| 572 // performed. In the case of multiple calls, later calls have precedence with | 572 // performed. In the case of multiple calls, later calls have precedence with |
| 573 // the rule that |animate:NO| has precedence over |animate:YES|. | 573 // the rule that |animate:NO| has precedence over |animate:YES|. If |owner| is |
| 574 // nil in isBarVisibilityLockedForOwner, the method returns YES if there are |
| 575 // any locks. |
| 574 - (BOOL)isBarVisibilityLockedForOwner:(id)owner; | 576 - (BOOL)isBarVisibilityLockedForOwner:(id)owner; |
| 575 - (void)lockBarVisibilityForOwner:(id)owner withAnimation:(BOOL)animate; | 577 - (void)lockBarVisibilityForOwner:(id)owner withAnimation:(BOOL)animate; |
| 576 - (void)releaseBarVisibilityForOwner:(id)owner withAnimation:(BOOL)animate; | 578 - (void)releaseBarVisibilityForOwner:(id)owner withAnimation:(BOOL)animate; |
| 577 | 579 |
| 578 // Returns YES if any of the views in the floating bar currently has focus. | 580 // Returns YES if any of the views in the floating bar currently has focus. |
| 579 - (BOOL)floatingBarHasFocus; | 581 - (BOOL)floatingBarHasFocus; |
| 580 | 582 |
| 581 // Accessor for the controller managing fullscreen ExclusiveAccessContext. | 583 // Accessor for the controller managing fullscreen ExclusiveAccessContext. |
| 582 - (ExclusiveAccessController*)exclusiveAccessController; | 584 - (ExclusiveAccessController*)exclusiveAccessController; |
| 583 | 585 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 // Returns the fullscreen toolbar controller. | 632 // Returns the fullscreen toolbar controller. |
| 631 - (FullscreenToolbarController*)fullscreenToolbarController; | 633 - (FullscreenToolbarController*)fullscreenToolbarController; |
| 632 | 634 |
| 633 // Sets the fullscreen toolbar controller. | 635 // Sets the fullscreen toolbar controller. |
| 634 - (void)setFullscreenToolbarController:(FullscreenToolbarController*)controller; | 636 - (void)setFullscreenToolbarController:(FullscreenToolbarController*)controller; |
| 635 | 637 |
| 636 @end // @interface BrowserWindowController (TestingAPI) | 638 @end // @interface BrowserWindowController (TestingAPI) |
| 637 | 639 |
| 638 | 640 |
| 639 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 641 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |