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

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: nonatomic, assign Created 7 years, 6 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: ui/base/cocoa/hover_button.h
diff --git a/ui/base/cocoa/hover_button.h b/ui/base/cocoa/hover_button.h
index e665d3a6a7a1fd3e3d8c7e98f3b533738d2473ad..cadbf7ddb6fb38940622ed6f273b80ccb0c6d75d 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, assign) BOOL isMouseInside;
+@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

Powered by Google App Engine
This is Rietveld 408576698