Index: chrome/browser/renderer_host/render_widget_host.h |
=================================================================== |
--- chrome/browser/renderer_host/render_widget_host.h (revision 36364) |
+++ chrome/browser/renderer_host/render_widget_host.h (working copy) |
@@ -248,7 +248,7 @@ |
// when it has received a message. |
virtual void ForwardMouseEvent(const WebKit::WebMouseEvent& mouse_event); |
void ForwardWheelEvent(const WebKit::WebMouseWheelEvent& wheel_event); |
- void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event); |
+ virtual void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event); |
virtual void ForwardEditCommand(const std::string& name, |
const std::string& value); |
virtual void ForwardEditCommandsForNextKeyEvent( |
@@ -348,6 +348,13 @@ |
// Sets the active state (i.e., control tints). |
virtual void SetActive(bool active); |
+ void set_ignore_input_events(bool ignore_input_events) { |
+ ignore_input_events_ = ignore_input_events; |
+ } |
+ bool ignore_input_events() const { |
+ return ignore_input_events_; |
+ } |
+ |
protected: |
// Internal implementation of the public Forward*Event() methods. |
void ForwardInputEvent(const WebKit::WebInputEvent& input_event, |
@@ -551,6 +558,9 @@ |
// back to whatever unhandled handler instead of the returned version. |
KeyQueue key_queue_; |
+ // Set to true if we shouldn't send input events from the render widget. |
+ bool ignore_input_events_; |
+ |
// Set when we update the text direction of the selected input element. |
bool text_direction_updated_; |
WebKit::WebTextDirection text_direction_; |