Index: content/browser/renderer_host/render_widget_host_impl.h |
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h |
index 2d6a4d88d3254a9b9cf1d9eaa11a2a72f43091e2..9830f4c385230b39acf19cbfffbf54d1b4b69fce 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -30,6 +30,7 @@ |
#include "content/browser/renderer_host/input/input_router_client.h" |
#include "content/browser/renderer_host/input/render_widget_host_latency_tracker.h" |
#include "content/browser/renderer_host/input/synthetic_gesture.h" |
+#include "content/browser/renderer_host/input/synthetic_pointer_action.h" |
#include "content/browser/renderer_host/input/touch_emulator_client.h" |
#include "content/browser/renderer_host/render_widget_host_view_base.h" |
#include "content/common/input/input_event_ack_state.h" |
@@ -87,6 +88,8 @@ class WebCursor; |
struct EditCommand; |
struct ResizeParams; |
+using blink::WebTouchEvent; |
+ |
// This implements the RenderWidgetHost interface that is exposed to |
// embedders of content, and adds things only visible to content. |
class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, |
@@ -602,6 +605,11 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, |
// widgets that don't have focus to still handle key presses. |
bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event); |
+ void QueueSyntheticPointerAction( |
+ const SyntheticPointerActionParams& gesture_params); |
+ |
+ void SetSyntheticPointer(const SyntheticPointerActionParams& gesture_params); |
+ |
// InputRouterClient |
InputEventAckState FilterInputEvent( |
const blink::WebInputEvent& event, |
@@ -628,6 +636,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, |
void OnSyntheticGestureCompleted(SyntheticGesture::Result result); |
+ void OnSyntheticPointerActionCompleted(SyntheticGesture::Result result); |
tdresser
2016/04/18 15:24:39
It isn't clear to me why we need this in addition
lanwei
2016/04/19 19:05:32
Yes, but OnSyntheticGestureCompleted will send som
|
+ |
// Called when there is a new auto resize (using a post to avoid a stack |
// which may get in recursive loops). |
void DelayedAutoResized(); |
@@ -821,6 +831,12 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, |
// renderer process before clearing any previously displayed content. |
base::TimeDelta new_content_rendering_delay_; |
+ std::vector<SyntheticPointerActionParams> action_param_list_; |
+ |
+ std::unique_ptr<SyntheticPointer> synthetic_pointer_; |
+ |
+ int index_map_[blink::WebTouchEvent::touchesLengthCap]; |
+ |
base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |