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

Unified Diff: win8/metro_driver/display_properties.cc

Issue 1815463002: Remove win8/metro_driver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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
« no previous file with comments | « win8/metro_driver/display_properties.h ('k') | win8/metro_driver/ime/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/metro_driver/display_properties.cc
diff --git a/win8/metro_driver/display_properties.cc b/win8/metro_driver/display_properties.cc
deleted file mode 100644
index e1b7ed5e7e03764dfcaa51fd19fe68f1ae6fbfdd..0000000000000000000000000000000000000000
--- a/win8/metro_driver/display_properties.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// 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.
-
-#include "stdafx.h"
-
-#include <windows.h>
-#include <wrl\implements.h>
-#include <wrl\wrappers\corewrappers.h>
-#include <windows.foundation.h>
-#include <windows.graphics.display.h>
-#include "base/win/windows_version.h"
-#include "ui/gfx/win/dpi.h"
-#include "winrt_utils.h"
-
-float GetModernUIScale() {
- if (base::win::GetVersion() >= base::win::VERSION_WIN8) {
- Microsoft::WRL::ComPtr<
- ABI::Windows::Graphics::Display::IDisplayPropertiesStatics>
- display_properties;
- if (SUCCEEDED(winrt_utils::CreateActivationFactory(
- RuntimeClass_Windows_Graphics_Display_DisplayProperties,
- display_properties.GetAddressOf()))) {
- ABI::Windows::Graphics::Display::ResolutionScale resolution_scale;
- if (SUCCEEDED(display_properties->get_ResolutionScale(&resolution_scale)))
- return static_cast<float>(resolution_scale) / 100.0f;
- }
- }
- return gfx::GetDPIScale();
-}
« no previous file with comments | « win8/metro_driver/display_properties.h ('k') | win8/metro_driver/ime/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698