commit | b6ffa91f47562de22099fe9db143b46a10cdb76d | [log] [tgz] |
---|---|---|
author | Sinan Sahin <[email protected]> | Wed Oct 23 21:04:46 2019 |
committer | Commit Bot <[email protected]> | Wed Oct 23 21:04:46 2019 |
tree | 26c7f3cd73bf8057360696abcecfbe73f9ab30b8 | |
parent | e7cdce8a3cd43b3c4135356e452f0ad0c3d59f31 [diff] [blame] |
[Offline indicator v2] Separate top and bottom controls ratios This CL adds the plumbing to have separate top and bottom shown ratios. Having separate ratios is required for the upcoming CLs as we ultimately want to be able to animate the top and the bottom controls independently. Bug: 989148 Change-Id: I874cf7f6fa0380cb9a1497d3804969b82bd419c3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827951 Commit-Queue: Sinan Sahin <[email protected]> Reviewed-by: Philip Rogers <[email protected]> Reviewed-by: David Bokan <[email protected]> Reviewed-by: Avi Drissman <[email protected]> Reviewed-by: Will Harris <[email protected]> Reviewed-by: Khushal <[email protected]> Reviewed-by: Matthew Jones <[email protected]> Cr-Commit-Position: refs/heads/master@{#708781}
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc index 7d74c4e5..b6c2edd 100644 --- a/content/renderer/render_widget.cc +++ b/content/renderer/render_widget.cc
@@ -3683,8 +3683,9 @@ return layer_tree_host_->GetId(); } -void RenderWidget::SetBrowserControlsShownRatio(float ratio) { - layer_tree_host_->SetBrowserControlsShownRatio(ratio); +void RenderWidget::SetBrowserControlsShownRatio(float top_ratio, + float bottom_ratio) { + layer_tree_host_->SetBrowserControlsShownRatio(top_ratio, bottom_ratio); } void RenderWidget::SetBrowserControlsHeight(float top_height,