Index: content/common/input/web_input_event_traits.cc |
diff --git a/content/common/input/web_input_event_traits.cc b/content/common/input/web_input_event_traits.cc |
index 5ef59b95b7ba90e287a29b56bee9d134c497e1f0..5da4d9a833e2a1ac8e9c43ea12620f74ec596cc1 100644 |
--- a/content/common/input/web_input_event_traits.cc |
+++ b/content/common/input/web_input_event_traits.cc |
@@ -285,13 +285,20 @@ void WebInputEventTraits::Coalesce(const WebInputEvent& event_to_coalesce, |
bool WebInputEventTraits::IgnoresAckDisposition( |
blink::WebInputEvent::Type type) { |
- return type == WebInputEvent::GestureTapDown || |
- type == WebInputEvent::GestureShowPress || |
- type == WebInputEvent::GestureTapCancel || |
- type == WebInputEvent::GesturePinchBegin || |
- type == WebInputEvent::GesturePinchEnd || |
- type == WebInputEvent::GestureScrollBegin || |
- type == WebInputEvent::GestureScrollEnd; |
+ switch (type) { |
+ case WebInputEvent::GestureTapDown: |
+ case WebInputEvent::GestureShowPress: |
+ case WebInputEvent::GestureTapCancel: |
+ case WebInputEvent::GesturePinchBegin: |
+ case WebInputEvent::GesturePinchEnd: |
+ case WebInputEvent::GestureScrollBegin: |
+ case WebInputEvent::GestureScrollEnd: |
+ case WebInputEvent::TouchCancel: |
+ return true; |
+ default: |
+ break; |
+ } |
+ return false; |
} |
} // namespace content |