Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1242)

Unified Diff: content/common/input/event_with_latency_info.h

Issue 2576013002: Introducing WebCoalescedInputEvent and inclusion in content/common (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 750b15d23390023da338ae7ec872129a8e5b9f7e..e9b2886a285f093240f48f74986f63afd5db0cb8 100644
--- a/content/common/input/event_with_latency_info.h
+++ b/content/common/input/event_with_latency_info.h
@@ -8,32 +8,32 @@
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "content/common/content_export.h"
+#include "third_party/WebKit/public/platform/WebCoalescedInputEvent.h"
#include "third_party/WebKit/public/platform/WebGestureEvent.h"
-#include "third_party/WebKit/public/platform/WebInputEvent.h"
#include "ui/events/blink/blink_event_util.h"
-#include "ui/events/blink/scoped_web_input_event.h"
#include "ui/events/latency_info.h"
namespace content {
class ScopedWebInputEventWithLatencyInfo {
public:
- ScopedWebInputEventWithLatencyInfo(ui::ScopedWebInputEvent,
- const ui::LatencyInfo&);
+ ScopedWebInputEventWithLatencyInfo(
+ blink::WebCoalescedInputEvent::ScopedWebInputEvent,
+ const ui::LatencyInfo&);
~ScopedWebInputEventWithLatencyInfo();
bool CanCoalesceWith(const ScopedWebInputEventWithLatencyInfo& other) const
WARN_UNUSED_RESULT;
- const blink::WebInputEvent& event() const;
- blink::WebInputEvent& event();
+ const blink::WebCoalescedInputEvent& coalescedEvent() const;
+ blink::WebCoalescedInputEvent& coalescedEvent();
const ui::LatencyInfo latencyInfo() const { return latency_; }
void CoalesceWith(const ScopedWebInputEventWithLatencyInfo& other);
private:
- ui::ScopedWebInputEvent event_;
+ blink::ScopedCoalescedWebInputEvent event_;
mutable ui::LatencyInfo latency_;
};

Powered by Google App Engine
This is Rietveld 408576698