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

Side by Side Diff: content/browser/frame_host/interstitial_page_impl.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/frame_host/interstitial_page_impl.h" 5 #include "content/browser/frame_host/interstitial_page_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 936
937 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { 937 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() {
938 interstitial_->OnNavigatingAwayOrTabClosing(); 938 interstitial_->OnNavigatingAwayOrTabClosing();
939 } 939 }
940 940
941 TextInputManager* InterstitialPageImpl::GetTextInputManager() { 941 TextInputManager* InterstitialPageImpl::GetTextInputManager() {
942 return !web_contents_ ? nullptr : static_cast<WebContentsImpl*>(web_contents_) 942 return !web_contents_ ? nullptr : static_cast<WebContentsImpl*>(web_contents_)
943 ->GetTextInputManager(); 943 ->GetTextInputManager();
944 } 944 }
945 945
946 void InterstitialPageImpl::GetScreenInfo(blink::WebScreenInfo* screen_info) { 946 void InterstitialPageImpl::GetScreenInfo(ScreenInfo* screen_info) {
947 WebContentsImpl* web_contents_impl = 947 WebContentsImpl* web_contents_impl =
948 static_cast<WebContentsImpl*>(web_contents_); 948 static_cast<WebContentsImpl*>(web_contents_);
949 if (!web_contents_impl) { 949 if (!web_contents_impl) {
950 WebContentsView::GetDefaultScreenInfo(screen_info); 950 WebContentsView::GetDefaultScreenInfo(screen_info);
951 return; 951 return;
952 } 952 }
953 953
954 web_contents_impl->GetView()->GetScreenInfo(screen_info); 954 web_contents_impl->GetView()->GetScreenInfo(screen_info);
955 } 955 }
956 956
957 void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) { 957 void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) {
958 WebContentsImpl* web_contents_impl = 958 WebContentsImpl* web_contents_impl =
959 static_cast<WebContentsImpl*>(web_contents_); 959 static_cast<WebContentsImpl*>(web_contents_);
960 if (!web_contents_impl) 960 if (!web_contents_impl)
961 return; 961 return;
962 962
963 web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor); 963 web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor);
964 } 964 }
965 965
966 } // namespace content 966 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698