| 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.
|
|
|