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

Unified Diff: chrome/browser/renderer_host/render_view_host_delegate.h

Issue 147246: Linux: middle-click to navigate (Closed)
Patch Set: ... Created 11 years, 6 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 | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/render_widget_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_view_host_delegate.h
diff --git a/chrome/browser/renderer_host/render_view_host_delegate.h b/chrome/browser/renderer_host/render_view_host_delegate.h
index fd52627370d409c05356b2625eb5eaca35c602d7..58785afc3c0e9cc3f49fbe5646bc0fbb13ac1009 100644
--- a/chrome/browser/renderer_host/render_view_host_delegate.h
+++ b/chrome/browser/renderer_host/render_view_host_delegate.h
@@ -43,6 +43,10 @@ namespace IPC {
class Message;
}
+namespace WebKit {
+class WebMouseEvent;
+}
+
namespace webkit_glue {
class AutofillForm;
struct WebApplicationInfo;
@@ -117,10 +121,14 @@ class RenderViewHostDelegate {
// true, it means the focus was retrieved by doing a Shift-Tab.
virtual void TakeFocus(bool reverse) = 0;
- // Callback to inform the browser that the renderer did not process the
+ // Callbacks to inform the browser that the renderer did not process the
// specified events. This gives an opportunity to the browser to process the
- // event (used for keyboard shortcuts).
+ // event.
+
+ // used for keyboard shortcuts).
virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) = 0;
+ // used for middle-click to navigate
+ virtual void HandleMouseButtonEvent(const WebKit::WebMouseEvent* event) { }
// Notifications about mouse events in this view. This is useful for
// implementing global 'on hover' features external to the view.
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698