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

Unified Diff: content/public/browser/render_widget_host.h

Issue 23416003: Add content::RenderWidgetHost::MouseEventCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased changes Created 7 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_widget_host.h
diff --git a/content/public/browser/render_widget_host.h b/content/public/browser/render_widget_host.h
index ae513b644a0bbb296134cbf64f2e969c19d1da80..a70026663f86b542391e03f125ac9fe18de5b023 100644
--- a/content/public/browser/render_widget_host.h
+++ b/content/public/browser/render_widget_host.h
@@ -28,6 +28,7 @@ class Rect;
}
namespace WebKit {
+class WebMouseEvent;
struct WebScreenInfo;
}
@@ -296,6 +297,11 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Sender {
virtual void RemoveKeyPressEventCallback(
const KeyPressEventCallback& callback) = 0;
+ // Add/remove a callback that can handle all kinds of mouse events.
+ typedef base::Callback<bool(const WebKit::WebMouseEvent&)> MouseEventCallback;
+ virtual void AddMouseEventCallback(const MouseEventCallback& callback) = 0;
+ virtual void RemoveMouseEventCallback(const MouseEventCallback& callback) = 0;
+
// Get the screen info corresponding to this render widget.
virtual void GetWebScreenInfo(WebKit::WebScreenInfo* result) = 0;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698