Index: content/browser/renderer_host/render_widget_host_impl.h |
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h |
index d5d9d5ad6549bd96d8e2973328122448d1850c87..c2dbb8d6e0956c87a378954acb86ad82a93bb5e0 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -506,6 +506,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, |
bool renderer_initialized() const { return renderer_initialized_; } |
+ void set_scale_input_to_viewport(bool scale_input_to_viewport) { |
+ scale_input_to_viewport_ = scale_input_to_viewport; |
+ } |
+ |
protected: |
// Retrieves an id the renderer can use to refer to its view. |
// This is used for various IPC messages, including plugins. |
@@ -812,6 +816,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, |
// causing HasFocus to return false when is_focused_ is true. |
bool is_focused_; |
+ // When true, the host will scale the input to viewport. |
+ // TODO(oshima): Remove this once crbug.com/563730 is addressed. |
+ bool scale_input_to_viewport_; |
+ |
// This value indicates how long to wait before we consider a renderer hung. |
base::TimeDelta hung_renderer_delay_; |