Chromium Code Reviews| 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 3ef17e7ac718de655d96a226cb265fd8feed1dc1..0326bb0a574e35d6b2bf14ea7c02dcf62c1aa2cc 100644 |
| --- a/content/common/input/web_input_event_traits.cc |
| +++ b/content/common/input/web_input_event_traits.cc |
| @@ -339,4 +339,16 @@ bool WebInputEventTraits::IgnoresAckDisposition( |
| return false; |
| } |
| +bool WebInputEventTraits::IsNewTouchSequence(const WebTouchEvent& event) { |
| + if (event.type != WebInputEvent::TouchStart) |
| + return false; |
| + if (!event.touchesLength) |
|
Rick Byers
2014/02/18 22:01:15
This case should never happen, right? Maybe DHCEC
tdresser
2014/02/20 18:37:56
Done.
|
| + return false; |
| + for (size_t i = 0; i < event.touchesLength; i++) { |
| + if (event.touches[i].state != blink::WebTouchPoint::StatePressed) |
| + return false; |
| + } |
| + return true; |
| +} |
| + |
| } // namespace content |