Add support for synchronously resizing a render view for layout tests.
BUG=111316
[email protected]
TEST=fast/dom/Window/window-resize-contents.html and fast/autoresize/turn-off-autoresize.html passes
Review URL: https://chromiumcodereview.appspot.com/12449003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186308 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 9813cfb..c9cf7087 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -181,6 +181,15 @@
require_user_gesture_for_focus_ = require_gesture;
}
+ // True if RenderWidgets should report the newly requested size back to
+ // WebKit without waiting for the browser to acknowledge the size.
+ bool short_circuit_size_updates() const {
+ return short_circuit_size_updates_;
+ }
+ void set_short_circuit_size_updates(bool short_circuit) {
+ short_circuit_size_updates_ = short_circuit;
+ }
+
IPC::ForwardingMessageFilter* compositor_output_surface_filter() const {
return compositor_output_surface_filter_.get();
}
@@ -381,7 +390,9 @@
bool suspend_webkit_shared_timer_;
bool notify_webkit_of_modal_loop_;
+ // The following flags are used to control layout test specific behavior.
bool require_user_gesture_for_focus_;
+ bool short_circuit_size_updates_;
// Timer that periodically calls IdleHandler.
base::RepeatingTimer<RenderThreadImpl> idle_timer_;