| Index: content/port/browser/event_with_latency_info.h
|
| diff --git a/content/port/browser/event_with_latency_info.h b/content/port/browser/event_with_latency_info.h
|
| index a39ae52076d08fa6a894d84c0625a63303d6a4d0..c8d941f6df2a220eabe72cf43b880cac454daa1c 100644
|
| --- a/content/port/browser/event_with_latency_info.h
|
| +++ b/content/port/browser/event_with_latency_info.h
|
| @@ -7,6 +7,8 @@
|
|
|
| #include "ui/events/latency_info.h"
|
|
|
| +#include "content/common/input/web_input_event_traits.h"
|
| +
|
| namespace WebKit {
|
| class WebGestureEvent;
|
| class WebMouseEvent;
|
| @@ -26,6 +28,16 @@ class EventWithLatencyInfo {
|
| : event(e), latency(l) {}
|
|
|
| EventWithLatencyInfo() {}
|
| +
|
| + bool CanCoalesceWith(const EventWithLatencyInfo& other)
|
| + const WARN_UNUSED_RESULT {
|
| + return WebInputEventTraits::CanCoalesce(other.event, event);
|
| + }
|
| +
|
| + void CoalesceWith(const EventWithLatencyInfo& other) {
|
| + WebInputEventTraits::Coalesce(other.event, &event);
|
| + latency.MergeWith(other.latency);
|
| + }
|
| };
|
|
|
| typedef EventWithLatencyInfo<WebKit::WebGestureEvent>
|
|
|