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

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

Issue 15927023: Explicit interface for synchronous InputHandlerProxy input handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: content/renderer/gpu/input_handler_proxy.cc
diff --git a/content/renderer/gpu/input_handler_proxy.cc b/content/renderer/gpu/input_handler_proxy.cc
index 24c541c92fe1ba546125ecd4d74217fc4b59a6ff..0b1ec5893497f491571a554de026a94afeecc013 100644
--- a/content/renderer/gpu/input_handler_proxy.cc
+++ b/content/renderer/gpu/input_handler_proxy.cc
@@ -46,28 +46,19 @@ void InputHandlerProxy::SetClient(InputHandlerProxyClient* client) {
client_ = client;
}
-void InputHandlerProxy::HandleInputEvent(const WebInputEvent& event) {
+InputHandlerProxy::EventDisposition InputHandlerProxy::HandleInputEvent(
+ const WebInputEvent& event) {
DCHECK(client_);
DCHECK(input_handler_);
InputHandlerProxy::EventDisposition disposition =
HandleInputEventInternal(event);
- switch (disposition) {
- case DidHandle:
- client_->DidHandleInputEvent();
- break;
- case DidNotHandle:
- client_->DidNotHandleInputEvent(true /* send_to_widget */);
- break;
- case DropEvent:
- client_->DidNotHandleInputEvent(false /* send_to_widget */);
- break;
- }
if (event.modifiers & WebInputEvent::IsLastInputEventForCurrentVSync) {
input_handler_->DidReceiveLastInputEventForBeginFrame(
base::TimeTicks::FromInternalValue(event.timeStampSeconds *
base::Time::kMicrosecondsPerSecond));
}
+ return disposition;
}
InputHandlerProxy::EventDisposition

Powered by Google App Engine
This is Rietveld 408576698