diff options
Diffstat (limited to 'chrome/browser/renderer_host/render_widget_host.h')
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host.h b/chrome/browser/renderer_host/render_widget_host.h index 31a467a..647c893 100644 --- a/chrome/browser/renderer_host/render_widget_host.h +++ b/chrome/browser/renderer_host/render_widget_host.h @@ -5,12 +5,14 @@ #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ +#include <queue> #include <vector> #include "base/gfx/size.h" #include "base/timer.h" #include "chrome/common/ipc_channel.h" #include "testing/gtest/include/gtest/gtest_prod.h" +#include "webkit/glue/webinputevent.h" namespace gfx { class Rect; @@ -221,7 +223,7 @@ class RenderWidgetHost : public IPC::Channel::Listener { // Called when we an InputEvent was not processed by the renderer. This is // overridden by RenderView to send upwards to its delegate. - virtual void UnhandledInputEvent(const WebInputEvent& event) {} + virtual void UnhandledKeyboardEvent(const WebKeyboardEvent& event) {} // Notification that the user pressed the enter key or the spacebar. The // render view host overrides this to forward the information to its delegate @@ -350,6 +352,11 @@ class RenderWidgetHost : public IPC::Channel::Listener { // operation to finish. base::TimeTicks repaint_start_time_; + // 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. + std::queue<WebKeyboardEvent> key_queue_; + DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); }; |