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

Side by Side Diff: ui/base/win/metro.cc

Issue 10082020: Metro/HiDPI: Use metro resource pak in metro mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: a Created 8 years, 8 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. 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 "ui/base/win/metro.h"
6
7 #include <windows.h>
8
9 namespace ui {
10
cpu_(ooo_6.6-7.5) 2012/04/19 19:52:14 that is the deprecated way :) Use http://src.chro
11 bool IsInMetroMode() {
12 const char* kMetroModeEnvVar = "CHROME_METRO_DLL";
13 char buffer[2];
14 if (!::GetEnvironmentVariableA(kMetroModeEnvVar, buffer, arraysize(buffer)))
15 return false;
16 return buffer == std::string("1");
17 }
18
19 } // namespace ui
OLDNEW
« ui/base/resource/resource_bundle_win.cc ('K') | « ui/base/win/metro.h ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698