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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 481483002: DevTools: backend part of the color picker (behind experiment). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
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_;

Powered by Google App Engine
This is Rietveld 408576698