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 41df865165ec7b2313b939a62ae5f774dd3edc8f..17fad7f434c92baa3029d041376e5f16b76fe8be 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -46,6 +46,7 @@ struct ViewHostMsg_BeginSmoothScroll_Params; |
struct ViewHostMsg_SelectionBounds_Params; |
struct ViewHostMsg_TextInputState_Params; |
struct ViewHostMsg_UpdateRect_Params; |
+struct ViewMsg_Resize_Params; |
namespace base { |
class TimeTicks; |
@@ -541,6 +542,13 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
// as opposed to visa versa. |
void SetShouldAutoResize(bool enable); |
+ // Fills in the |resize_params| struct. |
+ void GetResizeParams(ViewMsg_Resize_Params* resize_params); |
+ |
+ // Sets the |resize_params| that were sent to the renderer bundled with the |
+ // request to create a new RenderWidget. |
+ void SetInitialRenderSizeParams(const ViewMsg_Resize_Params& resize_params); |
+ |
// Expose increment/decrement of the in-flight event count, so |
// RenderViewHostImpl can account for in-flight beforeunload/unload events. |
int increment_in_flight_event_count() { return ++in_flight_event_count_; } |
@@ -698,9 +706,6 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
// most recent call to process_->WidgetRestored() / WidgetHidden(). |
bool is_hidden_; |
- // Indicates whether a page is fullscreen or not. |
- bool is_fullscreen_; |
- |
// Set if we are waiting for a repaint ack for the view. |
bool repaint_ack_pending_; |
@@ -718,24 +723,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
// The current size of the RenderWidget. |
gfx::Size current_size_; |
- // The size of the view's backing surface in non-DPI-adjusted pixels. |
- gfx::Size physical_backing_size_; |
- |
- // The amount that the viewport size given to Blink was shrunk by the URL-bar |
- // (always 0 on platforms where URL-bar hiding isn't supported). |
- float top_controls_layout_height_; |
- |
- // The size of the visible viewport, which may be smaller than the view if the |
- // view is partially occluded (e.g. by a virtual keyboard). The size is in |
- // DPI-adjusted pixels. |
- gfx::Size visible_viewport_size_; |
- |
- // The size we last sent as requested size to the renderer. |current_size_| |
- // is only updated once the resize message has been ack'd. This on the other |
- // hand is updated when the resize message is sent. This is very similar to |
- // |resize_ack_pending_|, but the latter is not set if the new size has width |
- // or height zero, which is why we need this too. |
- gfx::Size last_requested_size_; |
+ // Resize information that was previously sent to the renderer. |
+ scoped_ptr<ViewMsg_Resize_Params> old_resize_params_; |
// The next auto resize to send. |
gfx::Size new_auto_size_; |