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

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

Issue 714003002: Allow changing top controls height (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some more fixes Created 6 years, 1 month 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 344032a75a8f43b2137907f525dbea883cdd3a7c..a69b242a4156346a998c0f6d652d9eaf5016e34e 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -577,8 +577,9 @@ void RenderWidgetHostImpl::GetResizeParams(
if (view_) {
resize_params->new_size = view_->GetRequestedRendererSize();
resize_params->physical_backing_size = view_->GetPhysicalBackingSize();
- resize_params->top_controls_layout_height =
- view_->GetTopControlsLayoutHeight();
+ resize_params->top_controls_height = view_->GetTopControlsHeight();
+ resize_params->top_controls_shrink_blink_size =
+ view_->GetTopControlsShrinkBlinkSize();
resize_params->visible_viewport_size = view_->GetVisibleViewportSize();
resize_params->is_fullscreen = IsFullscreen();
}
@@ -617,8 +618,10 @@ void RenderWidgetHostImpl::WasResized() {
old_resize_params_->physical_backing_size !=
params->physical_backing_size ||
old_resize_params_->is_fullscreen != params->is_fullscreen ||
- old_resize_params_->top_controls_layout_height !=
- params->top_controls_layout_height ||
+ old_resize_params_->top_controls_height !=
+ params->top_controls_height ||
+ old_resize_params_->top_controls_shrink_blink_size !=
+ params->top_controls_shrink_blink_size ||
old_resize_params_->visible_viewport_size !=
params->visible_viewport_size;
}

Powered by Google App Engine
This is Rietveld 408576698