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

Unified Diff: content/renderer/render_widget.h

Issue 10826189: Allow disabling input throttle through RendererPreference (for Browser Plugin guests) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated according to darin@'s comments Created 8 years, 4 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 4a705db393c135f50930291efc19e0d06a9a4046..79a689cc6554540ddc23a8bdec97c3ad304544c2 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -185,6 +185,7 @@ class CONTENT_EXPORT RenderWidget
RenderWidget(WebKit::WebPopupType popup_type,
const WebKit::WebScreenInfo& screen_info,
bool swapped_out);
+
virtual ~RenderWidget();
// Initializes this view with the given opener. CompleteInit must be called
@@ -327,6 +328,10 @@ class CONTENT_EXPORT RenderWidget
void set_next_paint_is_restore_ack();
void set_next_paint_is_repaint_ack();
+ void set_throttle_input_events(bool throttle_input_events) {
+ throttle_input_events_ = throttle_input_events;
+ }
+
// Checks if the text input state and compose inline mode have been changed.
// If they are changed, the new value will be sent to the browser process.
void UpdateTextInputState();
@@ -570,6 +575,9 @@ class CONTENT_EXPORT RenderWidget
// |screen_info_| on some platforms, and defaults to 1 on other platforms.
float device_scale_factor_;
+ // Specifies whether input event throttling is enabled for this widget.
+ bool throttle_input_events_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidget);
};
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698