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

Unified Diff: chrome/browser/renderer_host/render_widget_host.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
Index: chrome/browser/renderer_host/render_widget_host.h
diff --git a/chrome/browser/renderer_host/render_widget_host.h b/chrome/browser/renderer_host/render_widget_host.h
index c55149880829d5d0ec57e0c97a31206e09c331c4..eaea0565f9e39112471c4b02d1fbe2569596a960 100644
--- a/chrome/browser/renderer_host/render_widget_host.h
+++ b/chrome/browser/renderer_host/render_widget_host.h
@@ -338,10 +338,14 @@ class RenderWidgetHost : public IPC::Channel::Listener {
// This is used for various IPC messages, including plugins.
gfx::NativeViewId GetNativeViewId();
- // Called when we an InputEvent was not processed by the renderer. This is
+ // Called when an InputEvent was not processed by the renderer. This is
// overridden by RenderView to send upwards to its delegate.
virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {}
+ // Called when an InputEvent was not processed by the renderer. This is
+ // overridden by RenderView to send upwards to its delegate.
+ virtual void UnhandledMouseButtonEvent(const WebKit::WebMouseEvent* event) {}
+
// Notification that the user has made some kind of input that could
// perform an action. The render view host overrides this to forward the
// information to its delegate (see corresponding function in
@@ -492,6 +496,14 @@ class RenderWidgetHost : public IPC::Channel::Listener {
// back to whatever unhandled handler instead of the returned version.
KeyQueue key_queue_;
+ // Queue of mouse button events that we need to track.
+ typedef std::queue<WebKit::WebMouseEvent*> MouseButtonQueue;
+
+ // A queue of keyboard events. We can't trust data from the renderer so we
+ // stuff key events into a queue and pop them out on ACK, feeding our copy
+ // back to whatever unhandled handler instead of the returned version.
+ MouseButtonQueue mouse_button_queue_;
+
// Set when we update the text direction of the selected input element.
bool text_direction_updated_;
WebTextDirection text_direction_;
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_delegate.h ('k') | chrome/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698