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

Unified Diff: chrome/browser/ui/cocoa/hover_button.h

Issue 7331042: fix for 27454 - Fade out close button state on mouse exit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix up rsesek nits Created 9 years, 5 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
« no previous file with comments | « chrome/browser/ui/cocoa/animation_utils.h ('k') | chrome/browser/ui/cocoa/hover_button.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/hover_button.h
diff --git a/chrome/browser/ui/cocoa/hover_button.h b/chrome/browser/ui/cocoa/hover_button.h
index 022c12073bd98a69c1917a5d2e1e923877302f69..e2f8f999f266928aced07d1478759afa9b000350 100644
--- a/chrome/browser/ui/cocoa/hover_button.h
+++ b/chrome/browser/ui/cocoa/hover_button.h
@@ -5,6 +5,8 @@
#import <Cocoa/Cocoa.h>
#include "base/memory/scoped_nsobject.h"
+#include "chrome/browser/ui/cocoa/tracking_area.h"
+
// A button that changes when you hover over it and click it.
@interface HoverButton : NSButton {
@@ -21,10 +23,12 @@
@private
// Tracking area for button mouseover states.
- scoped_nsobject<NSTrackingArea> trackingArea_;
+ ScopedCrTrackingArea trackingArea_;
}
-// Enables or disables the |NSTrackingRect|s for the button.
+@property(nonatomic) HoverState hoverState;
+
+// Enables or disables the tracking for the button.
- (void)setTrackingEnabled:(BOOL)enabled;
// Checks to see whether the mouse is in the button's bounds and update
« no previous file with comments | « chrome/browser/ui/cocoa/animation_utils.h ('k') | chrome/browser/ui/cocoa/hover_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698