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

Side by Side Diff: test/win/enable-winrt/dllmain.cc

Issue 596023003: Revert "I need this change to create Windows 8.1/Windows Phone 8.1 projects that compile modules th… (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pylib/gyp/generator/msvs.py ('k') | test/win/enable-winrt/enable-winrt.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 Google Inc. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <windows.h>
6 #include <wrl.h>
7 #include <wrl/wrappers/corewrappers.h>
8 #include <windows.graphics.display.h>
9
10 using namespace Microsoft::WRL;
11 using namespace Microsoft::WRL::Wrappers;
12 using namespace ABI::Windows::Foundation;
13 using namespace ABI::Windows::Graphics::Display;
14
15 bool TryToUseSomeWinRT() {
16 ComPtr<IDisplayPropertiesStatics> dp;
17 HStringReference s(RuntimeClass_Windows_Graphics_Display_DisplayProperties);
18 HRESULT hr = GetActivationFactory(s.Get(), dp.GetAddressOf());
19 if (SUCCEEDED(hr)) {
20 float dpi = 96.0f;
21 if (SUCCEEDED(dp->get_LogicalDpi(&dpi))) {
22 return true;
23 }
24 }
25 return false;
26 }
27
28 BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved) {
29 return TRUE;
30 }
OLDNEW
« no previous file with comments | « pylib/gyp/generator/msvs.py ('k') | test/win/enable-winrt/enable-winrt.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698