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

Unified Diff: third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp

Issue 2844823002: Support Coalesced Touch in ppapi (Closed)
Patch Set: Support Coalesced Touch in ppapi Created 3 years, 8 months 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: third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
index dadd454a33048ac234b9b86e0087c94b60fb76b8..94331986c5821fb060d1c092cc9813d991f375c6 100644
--- a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
@@ -47,6 +47,7 @@
#include "platform/testing/UnitTestHelpers.h"
#include "public/platform/Platform.h"
#include "public/platform/WebClipboard.h"
+#include "public/platform/WebCoalescedInputEvent.h"
#include "public/platform/WebCompositorSupport.h"
#include "public/platform/WebLayer.h"
#include "public/platform/WebMouseWheelEvent.h"
@@ -458,8 +459,10 @@ class EventTestPlugin : public FakeWebPlugin {
: FakeWebPlugin(frame, params),
last_event_type_(WebInputEvent::kUndefined) {}
- WebInputEventResult HandleInputEvent(const WebInputEvent& event,
- WebCursorInfo&) override {
+ WebInputEventResult HandleInputEvent(
+ const WebCoalescedInputEvent& coalesced_event,
+ WebCursorInfo&) override {
+ const WebInputEvent& event = coalesced_event.Event();
last_event_type_ = event.GetType();
if (WebInputEvent::IsMouseEventType(event.GetType()) ||
event.GetType() == WebInputEvent::kMouseWheel) {

Powered by Google App Engine
This is Rietveld 408576698