| 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 80f05962c149e65066cb7118baa85b1d92260568..2ec29f38450fe1e8f9822c55db59bff3d46485b0 100644
|
| --- a/content/browser/renderer_host/render_widget_host_impl.h
|
| +++ b/content/browser/renderer_host/render_widget_host_impl.h
|
| @@ -278,6 +278,13 @@ class CONTENT_EXPORT RenderWidgetHostImpl
|
| // Enables/disables touch emulation using mouse event. See TouchEmulator.
|
| void SetTouchEventEmulationEnabled(bool enabled, bool allow_pinch);
|
|
|
| + typedef base::Callback<void(const blink::WebMouseEvent& mouse_event)>
|
| + InterceptingMouseCallback;
|
| +
|
| + // Installs intercepting mouse callback that gets and consumes all
|
| + // mouse events.
|
| + void SetInterceptingMouseCallback(const InterceptingMouseCallback& callback);
|
| +
|
| // TouchEmulatorClient implementation.
|
| virtual void ForwardGestureEvent(
|
| const blink::WebGestureEvent& gesture_event) OVERRIDE;
|
| @@ -830,6 +837,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl
|
|
|
| scoped_ptr<TouchEmulator> touch_emulator_;
|
|
|
| + InterceptingMouseCallback intercepting_mouse_callback_;
|
| +
|
| // Receives and handles all input events.
|
| scoped_ptr<InputRouter> input_router_;
|
|
|
|
|