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

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

Issue 2122023002: Cross-process frames should be notified of device scale factor changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version of patch without second test. Created 4 years, 4 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_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 f29806a0d39156454381aaea89f7707545793c88..0b7cd9c6c433d249c9e1e880961f4f1af3498fce 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -1458,11 +1458,6 @@ bool RenderWidgetHostViewAndroid::HasAcceleratedSurface(
return false;
}
-void RenderWidgetHostViewAndroid::GetScreenInfo(blink::WebScreenInfo* result) {
- // ScreenInfo isn't tied to the widget on Android. Always return the default.
- RenderWidgetHostViewBase::GetDefaultScreenInfo(result);
-}
-
// TODO(jrg): Find out the implications and answer correctly here,
// as we are returning the WebView and not root window bounds.
gfx::Rect RenderWidgetHostViewAndroid::GetBoundsInRootWindow() {
@@ -1958,24 +1953,6 @@ void RenderWidgetHostViewAndroid::OnStylusSelectTap(base::TimeTicks time,
SendGestureEvent(long_press);
}
-// static
-void RenderWidgetHostViewBase::GetDefaultScreenInfo(
- blink::WebScreenInfo* results) {
- 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();
- results->deviceScaleFactor = display.device_scale_factor();
- results->orientationAngle = display.RotationAsDegree();
- results->orientationType =
- RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
- gfx::DeviceDisplayInfo info;
- results->depth = display.color_depth();
- results->depthPerComponent = display.depth_per_component();
- results->isMonochrome = (results->depthPerComponent == 0);
-}
-
void RenderWidgetHostViewAndroid::ComputeEventLatencyOSTouchHistograms(
const ui::MotionEvent& event) {
base::TimeTicks event_time = event.GetEventTime();

Powered by Google App Engine
This is Rietveld 408576698