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

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

Issue 541056: Tab-modal dialog improvements:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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
===================================================================
--- 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_;
« 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