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

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 rsesek 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 FullscreenToolbarAnimationController;
11 @class FullscreenToolbarController;
12
13 // Class that tracks mouse interactions with the fullscreen toolbar.
14 @interface FullscreenToolbarMouseTracker : NSObject
15
16 // Designated initializer.
17 - (instancetype)
18 initWithFullscreenToolbarController:(FullscreenToolbarController*)owner
19 animationController:
20 (FullscreenToolbarAnimationController*)animationController;
21
22 // Updates the tracking area's frame to the given toolbar frame.
23 - (void)updateToolbarFrame:(NSRect)frame;
24
25 // Updates the tracking area. Remove it if the toolbar isn't fully shown.
26 - (void)updateTrackingArea;
27
28 // Removes the tracking area.
29 - (void)removeTrackingArea;
30
31 // Returns YES if the mouse is inside the tracking area.
32 - (BOOL)mouseInsideTrackingArea;
33
34 @end
35
36 #endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_FULLSCREEN_TOOLBAR_MOUSE_TRACKER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698