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

Unified Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 2317563004: Change blink::WebScreenInfo to content::ScreenInfo (Closed)
Patch Set: Fix Windows compile Created 4 years, 3 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/frame_host/render_widget_host_view_child_frame.cc
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc
index ed316e45611a80bd7fdb1c84c13a64e86d009e9d..49f4525f93c665bb696962c24ed6c85a6cba9443 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc
@@ -218,10 +218,10 @@ void RenderWidgetHostViewChildFrame::SetBackgroundColor(SkColor color) {
gfx::Size RenderWidgetHostViewChildFrame::GetPhysicalBackingSize() const {
gfx::Size size;
if (frame_connector_) {
- blink::WebScreenInfo screen_info;
- host_->GetWebScreenInfo(&screen_info);
+ content::ScreenInfo screen_info;
+ host_->GetScreenInfo(&screen_info);
size = gfx::ScaleToCeiledSize(frame_connector_->ChildFrameRect().size(),
- screen_info.deviceScaleFactor);
+ screen_info.device_scale_factor);
}
return size;
}

Powered by Google App Engine
This is Rietveld 408576698