Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 _ | |
| OLD | NEW |