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

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

Issue 159838: Right clicking the back and forward buttons is buggy. A single right click op... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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 | « views/controls/button/button_dropdown.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 22914)
+++ views/controls/button/custom_button.h (working copy)
@@ -76,6 +76,11 @@
// Overridden from AnimationDelegate:
virtual void AnimationProgressed(const Animation* animation);
+ // Returns true if the button should become pressed when the user
+ // holds the mouse down over the button. For this implementation,
+ // we simply return IsTriggerableEvent(e).
+ virtual bool ShouldEnterPushedState(const MouseEvent& e);
+
// The button state (defined in implementation)
ButtonState state_;
« no previous file with comments | « views/controls/button/button_dropdown.cc ('k') | views/controls/button/custom_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698