| Index: content/browser/renderer_host/render_widget_host_view_android.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
|
| index 2478b5b889943498e68df3a58005894d568323a4..8d8c58d92dc0431b41b7dd9015501d857c6d7d7b 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_android.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_view_android.cc
|
| @@ -669,12 +669,21 @@ gfx::Size RenderWidgetHostViewAndroid::GetPhysicalBackingSize() const {
|
| return content_view_core_->GetPhysicalBackingSize();
|
| }
|
|
|
| -float RenderWidgetHostViewAndroid::GetTopControlsLayoutHeight() const {
|
| +bool RenderWidgetHostViewAndroid::DoTopControlsShrinkBlinkSize() const {
|
| + if (!content_view_core_)
|
| + return false;
|
| +
|
| + // Whether or not Blink's viewport size should be shrunk by the height of the
|
| + // URL-bar.
|
| + return content_view_core_->DoTopControlsShrinkBlinkSize();
|
| +}
|
| +
|
| +float RenderWidgetHostViewAndroid::GetTopControlsHeight() const {
|
| if (!content_view_core_)
|
| return 0.f;
|
|
|
| - // The amount that the viewport size given to Blink is shrunk by the URL-bar.
|
| - return content_view_core_->GetTopControlsLayoutHeightDip();
|
| + // The height of the top controls.
|
| + return content_view_core_->GetTopControlsHeightDip();
|
| }
|
|
|
| void RenderWidgetHostViewAndroid::UpdateCursor(const WebCursor& cursor) {
|
|
|