| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_FULLSCREEN_FULLSCREEN_TOOLBAR_VISIBLITY_LOCK_CON
TROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_FULLSCREEN_FULLSCREEN_TOOLBAR_VISIBLITY_LOCK_CON
TROLLER_H_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 class FullscreenToolbarAnimationController; |
| 11 @class FullscreenToolbarController; |
| 12 |
| 13 // Various UI elements/events may want to ensure that the toolbar is visible in |
| 14 // fullscreen mode. Whenever an object requires toolbar visibility, it locks |
| 15 // it. When it no longer requires it, it releases it. This class manages the |
| 16 // toolbar visibility locks. |
| 17 @interface FullscreenToolbarVisibilityLockController : NSObject |
| 18 |
| 19 // The designated initializer. |
| 20 - (instancetype) |
| 21 initWithFullscreenToolbarController:(FullscreenToolbarController*)controller |
| 22 animationController: |
| 23 (FullscreenToolbarAnimationController*)animationController; |
| 24 |
| 25 // Returns true if the toolbar visibility is locked. |
| 26 - (BOOL)isToolbarVisibilityLocked; |
| 27 |
| 28 // Returns true if the toolbar visibility is locked by |owner|. |
| 29 - (BOOL)isToolbarVisibilityLockedForOwner:(id)owner; |
| 30 |
| 31 // Methods for locking and releasing the toolbar visibility. If |animate| is |
| 32 // true, the toolbar will animate in/out. |
| 33 - (void)lockToolbarVisibilityForOwner:(id)owner withAnimation:(BOOL)animate; |
| 34 - (void)releaseToolbarVisibilityForOwner:(id)owner withAnimation:(BOOL)animate; |
| 35 |
| 36 @end |
| 37 |
| 38 #endif |
| OLD | NEW |