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

Unified Diff: content/renderer/gpu/input_event_filter_unittest.cc

Issue 15927023: Explicit interface for synchronous InputHandlerProxy input handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Shorter names ftw Created 7 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 | « content/renderer/gpu/input_event_filter.cc ('k') | content/renderer/gpu/input_handler_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/input_event_filter_unittest.cc
diff --git a/content/renderer/gpu/input_event_filter_unittest.cc b/content/renderer/gpu/input_event_filter_unittest.cc
index 2238493e39a2145aedf4eb2ee70a304851a6848a..7fbeafe54cd80f0419721b91b268fedd02ffb053 100644
--- a/content/renderer/gpu/input_event_filter_unittest.cc
+++ b/content/renderer/gpu/input_event_filter_unittest.cc
@@ -45,15 +45,17 @@ class InputEventRecorder {
records_.clear();
}
- void HandleInputEvent(int routing_id, const WebInputEvent* event) {
+ InputEventAckState HandleInputEvent(int routing_id,
+ const WebInputEvent* event) {
DCHECK_EQ(kTestRoutingID, routing_id);
records_.push_back(Record(event));
if (handle_events_) {
- filter_->DidHandleInputEvent();
+ return INPUT_EVENT_ACK_STATE_CONSUMED;
} else {
- filter_->DidNotHandleInputEvent(send_to_widget_);
+ return send_to_widget_ ? INPUT_EVENT_ACK_STATE_NOT_CONSUMED
+ : INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS;
}
}
« no previous file with comments | « content/renderer/gpu/input_event_filter.cc ('k') | content/renderer/gpu/input_handler_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698