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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 9702068: Move extension pop-ups and notifications to the new auto-resize code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small update Created 8 years, 9 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: 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 53185bc87dde5f7ee47ad4e7138881ca9ee81fb3..d26a67fe3ecb4524d3009f0954fdc5b75d2a8f0e 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -533,6 +533,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// renderer.
void ProcessTouchAck(WebKit::WebInputEvent::Type type, bool processed);
+ // Called when there is a new auto resize (using a post to avoid a stack
+ // which may get in recursive loops).
+ void DelayedAutoResized();
+
// Created during construction but initialized during Init*(). Therefore, it
// is guaranteed never to be NULL, but its channel may be NULL if the
// renderer crashed, so you must always check that.
@@ -579,6 +583,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// or height zero, which is why we need this too.
gfx::Size in_flight_size_;
+ // The next auto resize to send.
+ gfx::Size new_auto_size_;
+
// True if the render widget host should track the render widget's size as
// opposed to visa versa.
bool should_auto_resize_;

Powered by Google App Engine
This is Rietveld 408576698