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

Unified Diff: ash/test/test_metro_viewer_process_host.cc

Issue 271543009: Send the device scale factor from Windows 8 ASH during initialization via the MetroViewerHostMsg_Se… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed tabs Created 6 years, 7 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: ash/test/test_metro_viewer_process_host.cc
diff --git a/ash/test/test_metro_viewer_process_host.cc b/ash/test/test_metro_viewer_process_host.cc
index ddcfa1b574533db80bd0342834127f57c7faa262..5dd448cc7d700ede040b0f03c0e5bfed1c8c3f1a 100644
--- a/ash/test/test_metro_viewer_process_host.cc
+++ b/ash/test/test_metro_viewer_process_host.cc
@@ -26,10 +26,12 @@ void TestMetroViewerProcessHost::OnChannelError() {
}
void TestMetroViewerProcessHost::OnSetTargetSurface(
- gfx::NativeViewId target_surface) {
+ gfx::NativeViewId target_surface,
+ float device_scale) {
DLOG(INFO) << __FUNCTION__ << ", target_surface = " << target_surface;
HWND hwnd = reinterpret_cast<HWND>(target_surface);
- aura::RemoteWindowTreeHostWin::Instance()->SetRemoteWindowHandle(hwnd);
+ aura::RemoteWindowTreeHostWin::Instance()->
+ InitializeRemoteWindowAndScaleFactor(hwnd, device_scale);
aura::RemoteWindowTreeHostWin::Instance()->Connected(this);
}
« no previous file with comments | « ash/test/test_metro_viewer_process_host.h ('k') | chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698