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

Unified Diff: content/shell/renderer/test_runner/event_sender.cc

Issue 301103002: Update EventSender::GestureTap to return a bool (if handled). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Return a proper result from EventSender. Created 6 years, 7 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/event_sender.cc
diff --git a/content/shell/renderer/test_runner/event_sender.cc b/content/shell/renderer/test_runner/event_sender.cc
index 9646019048df4f3169433a53ef7a50947d4af6db..63cd6fe61f254ecd57173cc12ae05ae8fb098e0c 100644
--- a/content/shell/renderer/test_runner/event_sender.cc
+++ b/content/shell/renderer/test_runner/event_sender.cc
@@ -2067,7 +2067,7 @@ void EventSender::GestureEvent(WebInputEvent::Type type,
if (force_layout_on_events_)
view_->layout();
- view_->handleInputEvent(event);
+ bool result = view_->handleInputEvent(event);
// Long press might start a drag drop session. Complete it if so.
if (type == WebInputEvent::GestureLongPress && !current_drag_data_.isNull()) {
@@ -2082,6 +2082,7 @@ void EventSender::GestureEvent(WebInputEvent::Type type,
FinishDragAndDrop(mouse_event, blink::WebDragOperationNone);
}
+ args->Return(result);
}
void EventSender::UpdateClickCountForButton(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698