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

Unified Diff: win8/metro_driver/display_properties.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: GetDPIscale returns the global scale factor 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: win8/metro_driver/display_properties.cc
diff --git a/win8/metro_driver/display_properties.cc b/win8/metro_driver/display_properties.cc
index f1653fdbd7b2d61f74de8f08436e0ac4fe2fb44f..7eb557f6a9164b1caf727fd470080d94490f9730 100644
--- a/win8/metro_driver/display_properties.cc
+++ b/win8/metro_driver/display_properties.cc
@@ -9,15 +9,10 @@
#include <wrl\wrappers\corewrappers.h>
#include <windows.foundation.h>
#include <windows.graphics.display.h>
-#include "base/win/scoped_com_initializer.h"
+#include "ui/gfx/win/dpi.h"
#include "winrt_utils.h"
-#pragma comment(lib, "runtimeobject.lib")
-
-extern "C" {
-
-__declspec(dllexport) float GetModernUIScale() {
- base::win::ScopedCOMInitializer com_init;
+float GetModernUIScale() {
Microsoft::WRL::ComPtr<
ABI::Windows::Graphics::Display::IDisplayPropertiesStatics>
display_properties;
@@ -30,5 +25,3 @@ __declspec(dllexport) float GetModernUIScale() {
}
return 1.0f;
}
-
-}

Powered by Google App Engine
This is Rietveld 408576698