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

Unified Diff: chrome/browser/ui/cocoa/fullscreen/fullscreen_toolbar_mouse_tracker.h

Issue 2355413007: [Mac] Refactor the Fullscreen Toolbar (Closed)
Patch Set: Nits and grits 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/fullscreen/fullscreen_toolbar_mouse_tracker.h
diff --git a/chrome/browser/ui/cocoa/fullscreen/fullscreen_toolbar_mouse_tracker.h b/chrome/browser/ui/cocoa/fullscreen/fullscreen_toolbar_mouse_tracker.h
new file mode 100644
index 0000000000000000000000000000000000000000..ca79f54d23fc59f78fdea08b2e0d63c4f0eff8f9
--- /dev/null
+++ b/chrome/browser/ui/cocoa/fullscreen/fullscreen_toolbar_mouse_tracker.h
@@ -0,0 +1,37 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_FULLSCREEN_FULLSCREEN_TOOLBAR_MOUSE_TRACKER_H_
+#define CHROME_BROWSER_UI_COCOA_FULLSCREEN_FULLSCREEN_TOOLBAR_MOUSE_TRACKER_H_
+
+#import <Cocoa/Cocoa.h>
+
+@class BrowserWindowController;
+@class CrTrackingArea;
+class FullscreenToolbarAnimationManager;
+class FullscreenToolbarLayoutManager;
+
+@interface FullscreenToolbarMouseTracker : NSObject
+
+// Designated initializer.
+- (id)initWithFullscreenToolbarLayoutManager:
+ (FullscreenToolbarLayoutManager*)owner
+ toolbarAnimationManager:
+ (FullscreenToolbarAnimationManager*)animationManager;
+
+// Updates the tracking area's frame to the given toolbar frame.
+- (void)updateToolbarFrame:(NSRect)frame;
+
+// Updates the tracking area. Remove it if the toolbar isn't fully shown.
+- (void)updateTrackingArea;
+
+// Removes the tracking area.
+- (void)removeTrackingArea;
+
+// Returns YES if the mouse is inside the tracking area.
+- (BOOL)mouseInsideTrackingArea;
+
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_FULLSCREEN_TOOLBAR_MOUSE_TRACKER_H_

Powered by Google App Engine
This is Rietveld 408576698