| Index: content/common/input/event_with_latency_info.h
|
| diff --git a/content/common/input/event_with_latency_info.h b/content/common/input/event_with_latency_info.h
|
| index cdfdb6ea1995309b9ee4140d9621a3772853712f..b9ee6a48bc43d72e32e7ba5323fd65e06a98cede 100644
|
| --- a/content/common/input/event_with_latency_info.h
|
| +++ b/content/common/input/event_with_latency_info.h
|
| @@ -8,6 +8,7 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/logging.h"
|
| #include "content/common/content_export.h"
|
| +#include "content/common/input/scoped_web_input_event.h"
|
| #include "third_party/WebKit/public/web/WebInputEvent.h"
|
| #include "ui/events/latency_info.h"
|
|
|
| @@ -34,6 +35,27 @@ void CONTENT_EXPORT Coalesce(const blink::WebGestureEvent& event_to_coalesce,
|
|
|
| } // namespace internal
|
|
|
| +class ScopedWebInputEventWithLatencyInfo {
|
| + public:
|
| + ScopedWebInputEventWithLatencyInfo(const blink::WebInputEvent&,
|
| + const ui::LatencyInfo&);
|
| +
|
| + ~ScopedWebInputEventWithLatencyInfo();
|
| +
|
| + bool CanCoalesceWith(const ScopedWebInputEventWithLatencyInfo& other) const
|
| + WARN_UNUSED_RESULT;
|
| +
|
| + const blink::WebInputEvent& event() const;
|
| + blink::WebInputEvent& event();
|
| + const ui::LatencyInfo latencyInfo() const { return latency_; }
|
| +
|
| + void CoalesceWith(const ScopedWebInputEventWithLatencyInfo& other);
|
| +
|
| + private:
|
| + ScopedWebInputEvent event_;
|
| + mutable ui::LatencyInfo latency_;
|
| +};
|
| +
|
| template <typename T>
|
| class EventWithLatencyInfo {
|
| public:
|
|
|