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

Unified Diff: components/test_runner/test_plugin.cc

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Creating CoalescedWebInputEvent Created 4 years, 1 month 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: components/test_runner/test_plugin.cc
diff --git a/components/test_runner/test_plugin.cc b/components/test_runner/test_plugin.cc
index 681838447287bd8237ccdd326aa3803faf1c6308..725c03951e92d6c7e45bd53e3911eb832d42e4c9 100644
--- a/components/test_runner/test_plugin.cc
+++ b/components/test_runner/test_plugin.cc
@@ -19,6 +19,7 @@
#include "cc/resources/shared_bitmap_manager.h"
#include "components/test_runner/web_test_delegate.h"
#include "gpu/command_buffer/client/gles2_interface.h"
+#include "third_party/WebKit/public/platform/CoalescedWebInputEvent.h"
#include "third_party/WebKit/public/platform/Platform.h"
#include "third_party/WebKit/public/platform/WebCompositorSupport.h"
#include "third_party/WebKit/public/platform/WebGestureEvent.h"
@@ -536,15 +537,16 @@ GLuint TestPlugin::LoadProgram(const std::string& vertex_source,
}
blink::WebInputEventResult TestPlugin::handleInputEvent(
- const blink::WebInputEvent& event,
+ const blink::CoalescedWebInputEvent& coalescedEvent,
blink::WebCursorInfo& info) {
- const char* event_name = blink::WebInputEvent::GetName(event.type);
+ const char* event_name =
+ blink::WebInputEvent::GetName(coalescedEvent.event().type);
if (!strcmp(event_name, "") || !strcmp(event_name, "Undefined"))
event_name = "unknown";
delegate_->PrintMessage(std::string("Plugin received event: ") + event_name +
"\n");
if (print_event_details_)
- PrintEventDetails(delegate_, event);
+ PrintEventDetails(delegate_, coalescedEvent.event());
if (print_user_gesture_status_)
delegate_->PrintMessage(
std::string("* ") +

Powered by Google App Engine
This is Rietveld 408576698