| 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 in presentation mode, but |
| 569 // should also be called when not in presentation mode; see the comments for | 569 // should also be called when not in presentation 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 performed, | 571 // owner are ignored. If |animate:| is YES, then an animation may be |
| 572 // possibly after a small delay if |delay:| is YES. If |animate:| is NO, | 572 // performed. In the case of multiple calls, later calls have precedence with |
| 573 // |delay:| will be ignored. In the case of multiple calls, later calls have | 573 // the rule that |animate:NO| has precedence over |animate:YES|. |
| 574 // precedence with the rule that |animate:NO| has precedence over |animate:YES|, | |
| 575 // and |delay:NO| has precedence over |delay:YES|. | |
| 576 - (BOOL)isBarVisibilityLockedForOwner:(id)owner; | 574 - (BOOL)isBarVisibilityLockedForOwner:(id)owner; |
| 577 - (void)lockBarVisibilityForOwner:(id)owner | 575 - (void)lockBarVisibilityForOwner:(id)owner withAnimation:(BOOL)animate; |
| 578 withAnimation:(BOOL)animate | 576 - (void)releaseBarVisibilityForOwner:(id)owner withAnimation:(BOOL)animate; |
| 579 delay:(BOOL)delay; | |
| 580 - (void)releaseBarVisibilityForOwner:(id)owner | |
| 581 withAnimation:(BOOL)animate | |
| 582 delay:(BOOL)delay; | |
| 583 | 577 |
| 584 // Returns YES if any of the views in the floating bar currently has focus. | 578 // Returns YES if any of the views in the floating bar currently has focus. |
| 585 - (BOOL)floatingBarHasFocus; | 579 - (BOOL)floatingBarHasFocus; |
| 586 | 580 |
| 587 // Accessor for the controller managing fullscreen ExclusiveAccessContext. | 581 // Accessor for the controller managing fullscreen ExclusiveAccessContext. |
| 588 - (ExclusiveAccessController*)exclusiveAccessController; | 582 - (ExclusiveAccessController*)exclusiveAccessController; |
| 589 | 583 |
| 590 @end // @interface BrowserWindowController(Fullscreen) | 584 @end // @interface BrowserWindowController(Fullscreen) |
| 591 | 585 |
| 592 | 586 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 // Returns the fullscreen toolbar controller. | 630 // Returns the fullscreen toolbar controller. |
| 637 - (FullscreenToolbarController*)fullscreenToolbarController; | 631 - (FullscreenToolbarController*)fullscreenToolbarController; |
| 638 | 632 |
| 639 // Sets the fullscreen toolbar controller. | 633 // Sets the fullscreen toolbar controller. |
| 640 - (void)setFullscreenToolbarController:(FullscreenToolbarController*)controller; | 634 - (void)setFullscreenToolbarController:(FullscreenToolbarController*)controller; |
| 641 | 635 |
| 642 @end // @interface BrowserWindowController (TestingAPI) | 636 @end // @interface BrowserWindowController (TestingAPI) |
| 643 | 637 |
| 644 | 638 |
| 645 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 639 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |