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

Unified Diff: components/test_runner/test_plugin.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/test_runner/test_plugin.cc
diff --git a/components/test_runner/test_plugin.cc b/components/test_runner/test_plugin.cc
index 76f608c96daa08340e0f724e3f554ca9e8526e30..33a489d046c029692db8be10c5710b76f37554ec 100644
--- a/components/test_runner/test_plugin.cc
+++ b/components/test_runner/test_plugin.cc
@@ -594,8 +594,9 @@ unsigned TestPlugin::LoadProgram(const std::string& vertex_source,
return program;
}
-bool TestPlugin::handleInputEvent(const blink::WebInputEvent& event,
- blink::WebCursorInfo& info) {
+blink::WebInputEventResult TestPlugin::handleInputEvent(
+ const blink::WebInputEvent& event,
+ blink::WebCursorInfo& info) {
const char* event_name = 0;
switch (event.type) {
case blink::WebInputEvent::Undefined:
@@ -720,7 +721,7 @@ bool TestPlugin::handleInputEvent(const blink::WebInputEvent& event,
"handling user gesture\n");
if (is_persistent_)
delegate_->PrintMessage(std::string("TestPlugin: isPersistent\n"));
- return false;
+ return blink::WebInputEventResult::NotHandled;
}
bool TestPlugin::handleDragStatusUpdate(

Powered by Google App Engine
This is Rietveld 408576698