OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_FULLSCREEN_FULLSCREEN_TOOLBAR_VISIBLITY_LOCK_CON
TROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_FULLSCREEN_FULLSCREEN_TOOLBAR_VISIBILITY_LOCK_CO
NTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_FULLSCREEN_FULLSCREEN_TOOLBAR_VISIBLITY_LOCK_CON
TROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_FULLSCREEN_FULLSCREEN_TOOLBAR_VISIBILITY_LOCK_CO
NTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 class FullscreenToolbarAnimationController; | 10 class FullscreenToolbarAnimationController; |
11 @class FullscreenToolbarController; | 11 @class FullscreenToolbarController; |
12 | 12 |
13 // Various UI elements/events may want to ensure that the toolbar is visible in | 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 | 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 | 15 // it. When it no longer requires it, it releases it. This class manages the |
16 // toolbar visibility locks. | 16 // toolbar visibility locks. |
(...skipping 11 matching lines...) Expand all Loading... |
28 // Returns true if the toolbar visibility is locked by |owner|. | 28 // Returns true if the toolbar visibility is locked by |owner|. |
29 - (BOOL)isToolbarVisibilityLockedForOwner:(id)owner; | 29 - (BOOL)isToolbarVisibilityLockedForOwner:(id)owner; |
30 | 30 |
31 // Methods for locking and releasing the toolbar visibility. If |animate| is | 31 // Methods for locking and releasing the toolbar visibility. If |animate| is |
32 // true, the toolbar will animate in/out. | 32 // true, the toolbar will animate in/out. |
33 - (void)lockToolbarVisibilityForOwner:(id)owner withAnimation:(BOOL)animate; | 33 - (void)lockToolbarVisibilityForOwner:(id)owner withAnimation:(BOOL)animate; |
34 - (void)releaseToolbarVisibilityForOwner:(id)owner withAnimation:(BOOL)animate; | 34 - (void)releaseToolbarVisibilityForOwner:(id)owner withAnimation:(BOOL)animate; |
35 | 35 |
36 @end | 36 @end |
37 | 37 |
38 #endif | 38 #endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_FULLSCREEN_TOOLBAR_VISIBILITY_LOCK
_CONTROLLER_H_ |
OLD | NEW |