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

Unified Diff: ui/views/controls/button/custom_button.cc

Issue 10534092: Add touch gestures to views menu controls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ReleaseCapture if capture was started. Created 8 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
« no previous file with comments | « no previous file | ui/views/controls/button/menu_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/custom_button.cc
diff --git a/ui/views/controls/button/custom_button.cc b/ui/views/controls/button/custom_button.cc
index 897c772ff0b97e50e2ca4115ae8b636809b50a24..104a8230c8ff24977b19b43478cedede21e1d871 100644
--- a/ui/views/controls/button/custom_button.cc
+++ b/ui/views/controls/button/custom_button.cc
@@ -195,7 +195,7 @@ bool CustomButton::OnKeyReleased(const KeyEvent& event) {
ui::GestureStatus CustomButton::OnGestureEvent(const GestureEvent& event) {
if (state_ == BS_DISABLED)
- return ui::GESTURE_STATUS_UNKNOWN;
+ return Button::OnGestureEvent(event);
if (event.type() == ui::ET_GESTURE_TAP) {
// Set the button state to hot and start the animation fully faded in. The
« no previous file with comments | « no previous file | ui/views/controls/button/menu_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698