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

Unified Diff: views/controls/button/custom_button.h

Issue 3198005: Disable the stop button when the user is hovering it and the page finishes lo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/views/toolbar_view.cc ('k') | views/controls/button/custom_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/button/custom_button.h
===================================================================
--- views/controls/button/custom_button.h (revision 56775)
+++ views/controls/button/custom_button.h (working copy)
@@ -63,6 +63,11 @@
}
bool request_focus_on_press() const { return request_focus_on_press_; }
+ // Returns true if the mouse pointer is over this control. Note that this
+ // isn't the same as IsHotTracked() because the mouse may be over the control
+ // when it's disabled.
+ bool IsMouseHovered() const;
+
protected:
// Construct the Button with a Listener. See comment for Button's ctor.
explicit CustomButton(ButtonListener* listener);
« no previous file with comments | « chrome/browser/views/toolbar_view.cc ('k') | views/controls/button/custom_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698