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

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: Add 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/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..bab54034b9ea5d822f28dc29159af8bf021a8176 100644
--- a/content/browser/frame_host/interstitial_page_impl.cc
+++ b/content/browser/frame_host/interstitial_page_impl.cc
@@ -943,4 +943,20 @@ TextInputManager* InterstitialPageImpl::GetTextInputManager() {
->GetTextInputManager();
}
+void InterstitialPageImpl::GetScreenInfo(blink::WebScreenInfo* screen_info) {
+ WebContentsImpl* web_contents_impl =
+ static_cast<WebContentsImpl*>(web_contents_);
+ DCHECK(web_contents_impl);
+
+ web_contents_impl->GetView()->GetScreenInfo(screen_info);
+}
+
+void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) {
+ WebContentsImpl* web_contents_impl =
+ static_cast<WebContentsImpl*>(web_contents_);
+ DCHECK(web_contents_impl);
+
+ web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698