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

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

Issue 1411833006: Refactoring to make adding ink drop animations easier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Attempt to refactor ink drop animations Created 5 years, 1 month 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/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 7bab3b69e4a007ea44ba4d15264ad40d641df674..e117ca25d48c10f91ab7cc37344ed5cb1f07c0e4 100644
--- a/ui/views/controls/button/custom_button.cc
+++ b/ui/views/controls/button/custom_button.cc
@@ -243,8 +243,7 @@ void CustomButton::OnGestureEvent(ui::GestureEvent* event) {
event->type() == ui::ET_GESTURE_END) {
SetState(STATE_NORMAL);
}
- if (!event->handled())
- Button::OnGestureEvent(event);
+ Button::OnGestureEvent(event);
}
bool CustomButton::AcceleratorPressed(const ui::Accelerator& accelerator) {

Powered by Google App Engine
This is Rietveld 408576698