OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/input/web_input_event_traits.h" | 5 #include "content/common/input/web_input_event_traits.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 using WebKit::WebGestureEvent; | 9 using WebKit::WebGestureEvent; |
10 using WebKit::WebInputEvent; | 10 using WebKit::WebInputEvent; |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
276 event_to_coalesce, | 276 event_to_coalesce, |
277 &event); | 277 &event); |
278 } | 278 } |
279 | 279 |
280 void WebInputEventTraits::Coalesce(const WebInputEvent& event_to_coalesce, | 280 void WebInputEventTraits::Coalesce(const WebInputEvent& event_to_coalesce, |
281 WebInputEvent* event) { | 281 WebInputEvent* event) { |
282 DCHECK(event); | 282 DCHECK(event); |
283 Apply(WebInputEventCoalesce(), event->type, event_to_coalesce, event); | 283 Apply(WebInputEventCoalesce(), event->type, event_to_coalesce, event); |
284 } | 284 } |
285 | 285 |
286 bool WebInputEventTraits::IgnoresAckDisposition( | |
287 WebKit::WebInputEvent::Type type) { | |
288 return type == WebInputEvent::GestureTapDown || | |
289 type == WebInputEvent::GestureShowPress || | |
290 type == WebInputEvent::GestureTapCancel || | |
jdduke (slow)
2013/10/25 21:00:38
If adding GestureTap + GestureTapCancel are giving
tdresser
2013/11/04 15:57:30
Done.
| |
291 type == WebInputEvent::GestureTap; | |
292 } | |
293 | |
286 } // namespace content | 294 } // namespace content |
OLD | NEW |