summaryrefslogtreecommitdiffstats
path: root/win8/viewer/metro_viewer_process_host.h
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-13 03:35:02 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-13 03:35:02 +0000
commit00d3a7620f415e424ceace688bb3371d18296835 (patch)
treea17cf1e6dc8faef24b8267c293df12effe9520b8 /win8/viewer/metro_viewer_process_host.h
parentdbd338c407ffa968e72857a5956aac8cabf0db72 (diff)
downloadchromium_src-00d3a7620f415e424ceace688bb3371d18296835.zip
chromium_src-00d3a7620f415e424ceace688bb3371d18296835.tar.gz
chromium_src-00d3a7620f415e424ceace688bb3371d18296835.tar.bz2
Send the device scale factor from Windows 8 ASH during initialization via the MetroViewerHostMsg_SetTargetSurface IPC message.
cpu, please review everything. sky, please review the ash/chrome/ui portions. I added a dependency on gfx in the metro_driver project for a subsequent change to send the correct device scale factor on Windows 8 as the metro API does not appear to work correctly causing text, etc to appear very small on high dpi monitors with scales above 125%. BUG=371219 R=cpu,sky Review URL: https://codereview.chromium.org/271543009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269993 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'win8/viewer/metro_viewer_process_host.h')
-rw-r--r--win8/viewer/metro_viewer_process_host.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/win8/viewer/metro_viewer_process_host.h b/win8/viewer/metro_viewer_process_host.h
index a7dc9d4..bb97001 100644
--- a/win8/viewer/metro_viewer_process_host.h
+++ b/win8/viewer/metro_viewer_process_host.h
@@ -64,7 +64,8 @@ class MetroViewerProcessHost : public IPC::Listener,
// Called over IPC by the viewer process to tell this host that it should be
// drawing to |target_surface|.
- virtual void OnSetTargetSurface(gfx::NativeViewId target_surface) = 0;
+ virtual void OnSetTargetSurface(gfx::NativeViewId target_surface,
+ float device_scale) = 0;
// Called over IPC by the viewer process to request that the url passed in be
// opened.