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

Unified Diff: components/html_viewer/touch_handler.cc

Issue 1463823003: Return a enumeration of the state of handling of InputEvents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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: components/html_viewer/touch_handler.cc
diff --git a/components/html_viewer/touch_handler.cc b/components/html_viewer/touch_handler.cc
index e99cec83f97aa4b9b7e22f50ba3eccd0ea06b140..88a0d5df58bc6a939cf710305e144fff9a2e6c86 100644
--- a/components/html_viewer/touch_handler.cc
+++ b/components/html_viewer/touch_handler.cc
@@ -184,7 +184,8 @@ void TouchHandler::SendMotionEventToGestureProvider() {
blink::WebTouchEvent web_event = ui::CreateWebTouchEventFromMotionEvent(
*current_motion_event_, result.did_generate_scroll);
gesture_provider_.OnTouchEventAck(web_event.uniqueTouchEventId,
- web_widget_->handleInputEvent(web_event));
+ web_widget_->handleInputEvent(web_event) !=
+ blink::WebInputEventResult::NotHandled);
}
void TouchHandler::PostProcessMotionEvent(const mus::mojom::Event& event) {
« no previous file with comments | « no previous file | components/plugins/renderer/webview_plugin.h » ('j') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698