| 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 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
_ |
| OLD | NEW |