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

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

Issue 2430863002: [Mac] Refactor the fullscreen menubar (Closed)
Patch Set: fix for mark Created 4 years, 2 months 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_MENUBAR_TRACKER_H_
6 #define CHROME_BROWSER_UI_COCOA_FULLSCREEN_FULLSCREEN_MENUBAR_TRACKER_H_
7
8 #include <Carbon/Carbon.h>
Robert Sesek 2016/10/19 18:49:21 Carbon unused in the header. Move into the impl.
spqchan 2016/10/19 19:28:42 Done.
9 #import <Cocoa/Cocoa.h>
10
11 @class BrowserWindowController;
12 @class FullscreenToolbarController;
13
14 // State of the menubar in the window's screen.
15 enum class FullscreenMenubarState {
16 SHOWN, // Menubar is fully shown.
17 HIDDEN, // Menubar is fully hidden.
18 SHOWING, // Menubar is animating in.
19 HIDING, // Menubar is animating out.
20 };
21
22 @interface FullscreenMenubarTracker : NSObject
23
24 // The state of the menubar.
25 @property(nonatomic, readonly) FullscreenMenubarState state;
26
27 // The fraction of the menubar shown on the screen.
28 @property(nonatomic, readonly) CGFloat menubarFraction;
29
30 // Designated initializer.
31 - (id)initWithFullscreenToolbarController:(FullscreenToolbarController*)owner;
Robert Sesek 2016/10/19 18:49:21 instancetype in new code
spqchan 2016/10/19 19:28:42 Done.
32
33 // Called by MenuBarRevealHandler to update the menubar progress. The progress
34 // is only updated if the window is in fullscreen and the mouse is in the
35 // same screen.
36 - (void)setMenubarProgress:(CGFloat)progress;
37
38 @end
39
40 #endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_FULLSCREEN_MENUBAR_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698