Chromium Code Reviews| 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..f56c4776233a2736e5208113da3147a56725c5fa 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,11 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
| // as opposed to visa versa. |
| void SetShouldAutoResize(bool enable); |
| + // Fills in the |resize_params| struct for when creating a new RenderView. |
| + // Calling this method will have side-effects as it will assume the |
| + // information has been sent to the renderer. |
| + void GetNewViewResizeParams(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_; } |
| @@ -581,6 +587,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
| // NotifyRendererResponsive. |
| void RendererIsResponsive(); |
| + // Fills in the |resize_params| struct. |
| + void GetResizeParams(ViewMsg_Resize_Params* resize_params); |
| + |
| // IPC message handlers |
| void OnRenderViewReady(); |
| void OnRenderProcessGone(int status, int error_code); |
| @@ -698,9 +707,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,17 +724,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_; |
| + // Resize information that was previously sent to the renderer. |
| + scoped_ptr<ViewMsg_Resize_Params> old_resize_params_; |
|
piman
2014/10/29 18:42:57
This is a nice simplification.
mkosiba (inactive)
2014/10/31 14:35:06
Thanks!
|
| // 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 |