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

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

Issue 2106753004: Introduce bottom controls to CC and let it respond to scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change to height and ratio Created 4 years, 5 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.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 8c8bae4d2a923c28f62218a6a14ad6ca02fd40e5..d9a3b8df9ca936df4a11d7510ff39afd52a979e7 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -592,6 +592,7 @@ bool RenderWidgetHostImpl::GetResizeParams(ResizeParams* resize_params) {
resize_params->top_controls_height = view_->GetTopControlsHeight();
resize_params->top_controls_shrink_blink_size =
view_->DoTopControlsShrinkBlinkSize();
+ resize_params->bottom_controls_height = view_->GetBottomControlsHeight();
resize_params->visible_viewport_size = view_->GetVisibleViewportSize();
}
@@ -611,6 +612,8 @@ bool RenderWidgetHostImpl::GetResizeParams(ResizeParams* resize_params) {
resize_params->top_controls_height ||
old_resize_params_->top_controls_shrink_blink_size !=
resize_params->top_controls_shrink_blink_size ||
+ old_resize_params_->bottom_controls_height !=
+ resize_params->bottom_controls_height ||
old_resize_params_->visible_viewport_size !=
resize_params->visible_viewport_size;

Powered by Google App Engine
This is Rietveld 408576698