summaryrefslogtreecommitdiffstats
path: root/content/port
diff options
context:
space:
mode:
authorkouhei@chromium.org <kouhei@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-12 01:08:17 +0000
committerkouhei@chromium.org <kouhei@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-12 01:08:17 +0000
commit37a8c7115ccc04291be1283b0266fd0ec63ad0f0 (patch)
tree42b44c4f47d6dee70ae663a164a080d6f4eaf015 /content/port
parent82747807bdba2c2a7f7c7097a8ef2a225491a20b (diff)
downloadchromium_src-37a8c7115ccc04291be1283b0266fd0ec63ad0f0.zip
chromium_src-37a8c7115ccc04291be1283b0266fd0ec63ad0f0.tar.gz
chromium_src-37a8c7115ccc04291be1283b0266fd0ec63ad0f0.tar.bz2
SyntheticGestureTarget implementation for injecting synthetic input events.
This will be used from SyntheticGesture implementations such as SyntheticSmoothScrollGesture(New) to inject input events in a Android/aura specific way. The patch also includes fallback implementation in SyntheticGetsureTargetBase which passes the input events to RWH. BUG=297960 BUG=306459 Review URL: https://codereview.chromium.org/26664002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234354 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/port')
-rw-r--r--content/port/browser/render_widget_host_view_port.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/port/browser/render_widget_host_view_port.h b/content/port/browser/render_widget_host_view_port.h
index 13f3766..bd13f73 100644
--- a/content/port/browser/render_widget_host_view_port.h
+++ b/content/port/browser/render_widget_host_view_port.h
@@ -6,6 +6,7 @@
#define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
#include "base/callback.h"
+#include "base/memory/scoped_ptr.h"
#include "base/process/kill.h"
#include "base/strings/string16.h"
#include "cc/output/compositor_frame.h"
@@ -42,6 +43,7 @@ namespace content {
class BackingStore;
class RenderWidgetHostViewFrameSubscriber;
class SyntheticGesture;
+class SyntheticGestureTarget;
struct WebPluginGeometry;
struct NativeWebKeyboardEvent;
@@ -300,6 +302,10 @@ class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView,
// Called by the host when the input flush has completed.
virtual void OnDidFlushInput() = 0;
+ // Create a platform specific SyntheticGestureTarget implementation that will
+ // be used to inject synthetic input events.
+ virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() = 0;
+
virtual void GestureEventAck(int gesture_event_type,
InputEventAckState ack_result) = 0;