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

Unified Diff: components/plugins/renderer/webview_plugin.cc

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: 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/plugins/renderer/webview_plugin.cc
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
index af1d9199bf4b10412bdc5a4b011f463bfd0f6e60..e48ccd82c61ee3762fb455ff9470f2dcaa9c2905 100644
--- a/components/plugins/renderer/webview_plugin.cc
+++ b/components/plugins/renderer/webview_plugin.cc
@@ -189,6 +189,7 @@ void WebViewPlugin::updateFocus(bool focused, blink::WebFocusType focus_type) {
blink::WebInputEventResult WebViewPlugin::handleInputEvent(
const WebInputEvent& event,
+ const std::vector<const WebInputEvent*>& coalescedEvents,
WebCursorInfo& cursor) {
// For tap events, don't handle them. They will be converted to
// mouse events later and passed to here.
@@ -209,7 +210,8 @@ blink::WebInputEventResult WebViewPlugin::handleInputEvent(
return blink::WebInputEventResult::HandledSuppressed;
}
current_cursor_ = cursor;
- blink::WebInputEventResult handled = web_view_->handleInputEvent(event);
+ blink::WebInputEventResult handled =
+ web_view_->handleInputEvent(event, coalescedEvents);
cursor = current_cursor_;
return handled;

Powered by Google App Engine
This is Rietveld 408576698