Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: chrome/browser/ui/cocoa/fullscreen/fullscreen_toolbar_visibility_lock_controller.h

Issue 2459653005: [Mac] Refactor the Fullscreen Toolbar Visibility Locks (Closed)
Patch Set: nits and grits Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698