From 78c352ade4b70c53475270d57c85c51d7fc08671 Mon Sep 17 00:00:00 2001 From: "girard@chromium.org" Date: Tue, 24 Dec 2013 15:09:02 +0000 Subject: Correct the operation of the --high-dpi-support=1 flag under win/ash. BUG=319941 Review URL: https://codereview.chromium.org/59213007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242430 0039d316-1c4b-4281-b951-d872f2087c98 --- win8/metro_driver/display_properties.cc | 2 +- win8/metro_driver/display_properties.h | 11 +++++++++++ win8/metro_driver/metro_driver.gyp | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 win8/metro_driver/display_properties.h (limited to 'win8') diff --git a/win8/metro_driver/display_properties.cc b/win8/metro_driver/display_properties.cc index a7cf427..f1653fd 100644 --- a/win8/metro_driver/display_properties.cc +++ b/win8/metro_driver/display_properties.cc @@ -16,7 +16,7 @@ extern "C" { - __declspec(dllexport) float GetModernUIScale() { +__declspec(dllexport) float GetModernUIScale() { base::win::ScopedCOMInitializer com_init; Microsoft::WRL::ComPtr< ABI::Windows::Graphics::Display::IDisplayPropertiesStatics> diff --git a/win8/metro_driver/display_properties.h b/win8/metro_driver/display_properties.h new file mode 100644 index 0000000..1491b3f --- /dev/null +++ b/win8/metro_driver/display_properties.h @@ -0,0 +1,11 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_UI_METRO_DRIVER_DISPLAY_PROPERTIES_H_ +#define CHROME_BROWSER_UI_METRO_DRIVER_DISPLAY_PROPERTIES_H_ + +// Determines the scale factor used in the modern/metro ui. 1.0 means unscaled. +extern "C" __declspec(dllexport) float GetModernUIScale(); + +#endif // CHROME_BROWSER_UI_METRO_DRIVER_DISPLAY_PROPERTIES_H_ diff --git a/win8/metro_driver/metro_driver.gyp b/win8/metro_driver/metro_driver.gyp index cc572d8..f0d1c76 100644 --- a/win8/metro_driver/metro_driver.gyp +++ b/win8/metro_driver/metro_driver.gyp @@ -65,6 +65,7 @@ ], 'sources': [ 'display_properties.cc', + 'display_properties.h', 'metro_driver.cc', 'metro_driver.h', 'stdafx.h', -- cgit v1.1