| Index: content/browser/renderer_host/render_widget_host.h
|
| diff --git a/content/browser/renderer_host/render_widget_host.h b/content/browser/renderer_host/render_widget_host.h
|
| index 59f8eaf516c878b8755e8d03854acd4391c1c1f9..e222260b00665017982ef6d791d55762ffbe1d7d 100644
|
| --- a/content/browser/renderer_host/render_widget_host.h
|
| +++ b/content/browser/renderer_host/render_widget_host.h
|
| @@ -399,6 +399,8 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener,
|
|
|
| const gfx::Point& last_scroll_offset() const { return last_scroll_offset_; }
|
|
|
| + bool has_touch_handler() const { return has_touch_handler_; }
|
| +
|
| // Notification that the user has made some kind of input that could
|
| // perform an action. See OnUserGesture for more details.
|
| void StartUserGesture();
|
| @@ -580,6 +582,7 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener,
|
| bool processed);
|
| virtual void OnMsgFocus();
|
| virtual void OnMsgBlur();
|
| + void OnMsgDidChangeNumTouchEvents(int count);
|
|
|
| void OnMsgSetCursor(const WebCursor& cursor);
|
| void OnMsgTextInputStateChanged(ui::TextInputType type,
|
| @@ -809,6 +812,11 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener,
|
|
|
| bool pending_mouse_lock_request_;
|
|
|
| + // Keeps track of whether the webpage has any touch event handler. If it does,
|
| + // then touch events are sent to the renderer. Otherwise, the touch events are
|
| + // not sent to the renderer.
|
| + bool has_touch_handler_;
|
| +
|
| base::WeakPtrFactory<RenderWidgetHost> weak_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
|
|
|