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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 2928643003: Propagate auto-resize viewport values to OOPIF processes (Closed)
Patch Set: Created 3 years, 6 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/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index e71d078ca6b91171c2f33b5ad4d1008640cdb61a..3b589327633783567dc7972421fabc7545e49d34 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -668,6 +668,8 @@ class CONTENT_EXPORT WebContentsImpl
bool width_changed) override;
void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host,
const gfx::Size& new_size) override;
+ gfx::Size GetAutoResizeSize() override;
+ void ResetAutoResizeSize() override;
void ScreenInfoChanged() override;
void UpdateDeviceScaleFactor(double device_scale_factor) override;
void GetScreenInfo(ScreenInfo* screen_info) override;
@@ -1446,6 +1448,10 @@ class CONTENT_EXPORT WebContentsImpl
// this overrides |preferred_size_|.
gfx::Size preferred_size_for_capture_;
+ // Size set by a top-level frame with auto-resize enabled. This is needed by
+ // out-of-process iframes for their visible viewport size.
+ gfx::Size auto_resize_size_;
+
#if defined(OS_ANDROID)
// Date time chooser opened by this tab.
// Only used in Android since all other platforms use a multi field UI.
« no previous file with comments | « content/browser/renderer_host/render_widget_host_delegate.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698