| 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 47235d4d6350248afb3b0ea2169acb86e9db9fcb..97e7a04a1e788bbb59c84c4caff43c61d48dc025 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_android.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_view_android.cc
|
| @@ -80,16 +80,16 @@
|
| #include "third_party/skia/include/core/SkCanvas.h"
|
| #include "ui/android/window_android.h"
|
| #include "ui/android/window_android_compositor.h"
|
| +#include "ui/display/display.h"
|
| +#include "ui/display/screen.h"
|
| #include "ui/events/blink/blink_event_util.h"
|
| #include "ui/events/gesture_detection/gesture_provider_config_helper.h"
|
| #include "ui/events/gesture_detection/motion_event.h"
|
| #include "ui/gfx/android/device_display_info.h"
|
| #include "ui/gfx/android/java_bitmap.h"
|
| #include "ui/gfx/android/view_configuration.h"
|
| -#include "ui/gfx/display.h"
|
| #include "ui/gfx/geometry/dip_util.h"
|
| #include "ui/gfx/geometry/size_conversions.h"
|
| -#include "ui/gfx/screen.h"
|
| #include "ui/touch_selection/touch_selection_controller.h"
|
|
|
| namespace content {
|
| @@ -421,7 +421,8 @@ void RenderWidgetHostViewAndroid::GetScaledContentBitmap(
|
| src_subrect = gfx::Rect(bounds);
|
| DCHECK_LE(src_subrect.width() + src_subrect.x(), bounds.width());
|
| DCHECK_LE(src_subrect.height() + src_subrect.y(), bounds.height());
|
| - const gfx::Display& display = gfx::Screen::GetScreen()->GetPrimaryDisplay();
|
| + const display::Display& display =
|
| + display::Screen::GetScreen()->GetPrimaryDisplay();
|
| float device_scale_factor = display.device_scale_factor();
|
| DCHECK_GT(device_scale_factor, 0);
|
| gfx::Size dst_size(
|
| @@ -881,7 +882,8 @@ void RenderWidgetHostViewAndroid::CopyFromCompositingSurface(
|
| callback.Run(SkBitmap(), READBACK_SURFACE_UNAVAILABLE);
|
| return;
|
| }
|
| - const gfx::Display& display = gfx::Screen::GetScreen()->GetPrimaryDisplay();
|
| + const display::Display& display =
|
| + display::Screen::GetScreen()->GetPrimaryDisplay();
|
| float device_scale_factor = display.device_scale_factor();
|
| gfx::Size dst_size_in_pixel =
|
| gfx::ConvertRectToPixel(device_scale_factor, gfx::Rect(dst_size)).size();
|
| @@ -2012,7 +2014,8 @@ void RenderWidgetHostViewAndroid::OnStylusSelectTap(base::TimeTicks time,
|
| // static
|
| void RenderWidgetHostViewBase::GetDefaultScreenInfo(
|
| blink::WebScreenInfo* results) {
|
| - const gfx::Display& display = gfx::Screen::GetScreen()->GetPrimaryDisplay();
|
| + const display::Display& display =
|
| + display::Screen::GetScreen()->GetPrimaryDisplay();
|
| results->rect = display.bounds();
|
| // TODO(husky): Remove any system controls from availableRect.
|
| results->availableRect = display.work_area();
|
|
|