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

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: fixed up mirandac's comment and cleaned up use of NSGraphicsContext 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
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..2ddbc9fd1ebf49ea671e93c122bcc2c17d9d79e8 100644
--- a/chrome/browser/ui/cocoa/hover_button.h
+++ b/chrome/browser/ui/cocoa/hover_button.h
@@ -6,6 +6,8 @@
#include "base/memory/scoped_nsobject.h"
+@class CrTrackingArea;
+
// A button that changes when you hover over it and click it.
@interface HoverButton : NSButton {
@protected
@@ -21,10 +23,12 @@
@private
// Tracking area for button mouseover states.
- scoped_nsobject<NSTrackingArea> trackingArea_;
+ scoped_nsobject<CrTrackingArea> trackingArea_;
Robert Sesek 2011/07/12 18:11:40 You may want to use ScopedCrTracingArea.
dmac 2011/07/12 19:04:42 Done.
}
-// Enables or disables the |NSTrackingRect|s for the button.
+@property (nonatomic) HoverState hoverState;
Robert Sesek 2011/07/12 18:11:40 nit: no space before (
dmac 2011/07/12 19:04:42 Done.
+
+// 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

Powered by Google App Engine
This is Rietveld 408576698