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

Unified Diff: content/renderer/pepper/pepper_webplugin_impl.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: content/renderer/pepper/pepper_webplugin_impl.cc
diff --git a/content/renderer/pepper/pepper_webplugin_impl.cc b/content/renderer/pepper/pepper_webplugin_impl.cc
index 54d2247c67df657fc37275e1a86e910e62f07de8..800c3667b45b76f16b4a0c2dd957c0fd2c09d355 100644
--- a/content/renderer/pepper/pepper_webplugin_impl.cc
+++ b/content/renderer/pepper/pepper_webplugin_impl.cc
@@ -21,6 +21,7 @@
#include "content/renderer/render_frame_impl.h"
#include "ppapi/shared_impl/ppapi_globals.h"
#include "ppapi/shared_impl/var_tracker.h"
+#include "third_party/WebKit/public/platform/CoalescedWebInputEvent.h"
#include "third_party/WebKit/public/platform/WebPoint.h"
#include "third_party/WebKit/public/platform/WebRect.h"
#include "third_party/WebKit/public/platform/WebSize.h"
@@ -206,11 +207,11 @@ void PepperWebPluginImpl::updateFocus(bool focused,
void PepperWebPluginImpl::updateVisibility(bool visible) {}
blink::WebInputEventResult PepperWebPluginImpl::handleInputEvent(
- const blink::WebInputEvent& event,
+ const blink::CoalescedWebInputEvent& coalescedEvent,
blink::WebCursorInfo& cursor_info) {
if (instance_->FlashIsFullscreenOrPending())
return blink::WebInputEventResult::NotHandled;
- return instance_->HandleInputEvent(event, &cursor_info)
+ return instance_->HandleInputEvent(coalescedEvent.event(), &cursor_info)
? blink::WebInputEventResult::HandledApplication
: blink::WebInputEventResult::NotHandled;
}

Powered by Google App Engine
This is Rietveld 408576698