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

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

Issue 2446313005: [Mac] Refactor the fullscreen toolbar mouse tracker (Closed)
Patch Set: Fix for erikchen 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_MOUSE_TRACKER_H_
6 #define CHROME_BROWSER_UI_COCOA_FULLSCREEN_FULLSCREEN_TOOLBAR_MOUSE_TRACKER_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 @class BrowserWindowController;
Robert Sesek 2016/10/27 16:22:06 Can remove this and the next line since they're no
spqchan 2016/10/27 17:12:23 Done.
11 @class CrTrackingArea;
12 class FullscreenToolbarAnimationController;
13 @class FullscreenToolbarController;
14
15 // Class that tracks mouse interactions with the fullscreen toolbar.
16 @interface FullscreenToolbarMouseTracker : NSObject
17
18 // Designated initializer.
19 - (instancetype)
20 initWithFullscreenToolbarController:(FullscreenToolbarController*)owner
21 animationController:
22 (FullscreenToolbarAnimationController*)animationController;
23
24 // Updates the tracking area's frame to the given toolbar frame.
25 - (void)updateToolbarFrame:(NSRect)frame;
26
27 // Updates the tracking area. Remove it if the toolbar isn't fully shown.
28 - (void)updateTrackingArea;
29
30 // Removes the tracking area.
31 - (void)removeTrackingArea;
32
33 // Returns YES if the mouse is inside the tracking area.
34 - (BOOL)mouseInsideTrackingArea;
35
36 @end
37
38 #endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_FULLSCREEN_TOOLBAR_MOUSE_TRACKER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698