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

Unified Diff: ui/base/cocoa/hover_button.h

Issue 16098012: [Mac] Reimplement HoverButton and HoverImageButton using NSButton.state. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/hover_close_button.mm ('k') | ui/base/cocoa/hover_button.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cocoa/hover_button.h
diff --git a/ui/base/cocoa/hover_button.h b/ui/base/cocoa/hover_button.h
index e665d3a6a7a1fd3e3d8c7e98f3b533738d2473ad..cdf67d755959d5213b611f169d29cf385753ffc0 100644
--- a/ui/base/cocoa/hover_button.h
+++ b/ui/base/cocoa/hover_button.h
@@ -23,16 +23,18 @@ UI_EXPORT
kHoverStateMouseDown = 2
};
- HoverState hoverState_;
+ // Whether the user is mousing inside the button.
+ BOOL isMouseInside_;
@private
// Tracking area for button mouseover states. Nil if not enabled.
ui::ScopedCrTrackingArea trackingArea_;
}
-@property(nonatomic) HoverState hoverState;
+@property(nonatomic) BOOL isMouseInside;
sail 2013/06/05 20:06:22 nonatomic, assign?
Robert Sesek 2013/06/05 20:23:21 Done.
+@property(nonatomic, readonly) HoverState hoverState;
-// Enables or disables the tracking for the button.
+// Enables or disables the hover 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/hover_close_button.mm ('k') | ui/base/cocoa/hover_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698