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

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

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_handler_manager.cc ('k') | content/renderer/gpu/input_handler_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/input_handler_proxy.h
diff --git a/content/renderer/gpu/input_handler_proxy.h b/content/renderer/gpu/input_handler_proxy.h
index b6c6efd7b4b05bc146cb0fd620a5c94f144373fa..5917731ffef5a77f916a788fe9beb90e822fc0c8 100644
--- a/content/renderer/gpu/input_handler_proxy.h
+++ b/content/renderer/gpu/input_handler_proxy.h
@@ -10,6 +10,7 @@
#include "base/memory/scoped_ptr.h"
#include "cc/input/input_handler.h"
#include "content/common/content_export.h"
+#include "content/port/common/input_event_ack_state.h"
#include "third_party/WebKit/public/platform/WebGestureCurve.h"
#include "third_party/WebKit/public/platform/WebGestureCurveTarget.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebActiveWheelFlingParameters.h"
@@ -31,7 +32,13 @@ class CONTENT_EXPORT InputHandlerProxy
virtual ~InputHandlerProxy();
void SetClient(InputHandlerProxyClient* client);
- void HandleInputEvent(const WebKit::WebInputEvent& event);
+
+ enum EventDisposition {
+ DID_HANDLE,
+ DID_NOT_HANDLE,
+ DROP_EVENT
+ };
+ EventDisposition HandleInputEvent(const WebKit::WebInputEvent& event);
// cc::InputHandlerClient implementation.
virtual void WillShutdown() OVERRIDE;
@@ -49,11 +56,6 @@ class CONTENT_EXPORT InputHandlerProxy
}
private:
- enum EventDisposition {
- DidHandle,
- DidNotHandle,
- DropEvent
- };
// This function processes the input event and determines the disposition, but
// does not make any calls out to the InputHandlerProxyClient. Some input
// types defer to helpers.
« no previous file with comments | « content/renderer/gpu/input_handler_manager.cc ('k') | content/renderer/gpu/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698