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

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

Issue 2265213002: Fix device scale factor for interstitials. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. 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
« no previous file with comments | « content/browser/frame_host/interstitial_page_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/interstitial_page_impl.cc
diff --git a/content/browser/frame_host/interstitial_page_impl.cc b/content/browser/frame_host/interstitial_page_impl.cc
index be086821af5c7ae3667842b51eac40f17276adcb..e31822929bd2e815d65622089bee88bd72f266b5 100644
--- a/content/browser/frame_host/interstitial_page_impl.cc
+++ b/content/browser/frame_host/interstitial_page_impl.cc
@@ -943,4 +943,24 @@ TextInputManager* InterstitialPageImpl::GetTextInputManager() {
->GetTextInputManager();
}
+void InterstitialPageImpl::GetScreenInfo(blink::WebScreenInfo* screen_info) {
+ WebContentsImpl* web_contents_impl =
+ static_cast<WebContentsImpl*>(web_contents_);
+ if (!web_contents_impl) {
+ WebContentsView::GetDefaultScreenInfo(screen_info);
+ return;
+ }
+
+ web_contents_impl->GetView()->GetScreenInfo(screen_info);
+}
+
+void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) {
+ WebContentsImpl* web_contents_impl =
+ static_cast<WebContentsImpl*>(web_contents_);
+ if (!web_contents_impl)
+ return;
+
+ web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor);
+}
+
} // namespace content
« no previous file with comments | « content/browser/frame_host/interstitial_page_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698