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

Unified 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: fix build 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/win/metro.h ('k') | ui/ui.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/metro.cc
diff --git a/ui/base/win/metro.cc b/ui/base/win/metro.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1426278656e38c7cdeab14ae33f90ccbf2317b0e
--- /dev/null
+++ b/ui/base/win/metro.cc
@@ -0,0 +1,20 @@
+// Copyright (c) 2012 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 "ui/base/win/metro.h"
+
+#include <string>
+#include <windows.h>
+
+namespace ui {
+
+bool IsInMetroMode() {
+ const char* kMetroModeEnvVar = "CHROME_METRO_DLL";
+ char buffer[2];
+ if (!::GetEnvironmentVariableA(kMetroModeEnvVar, buffer, arraysize(buffer)))
+ return false;
+ return buffer == std::string("1");
+}
+
+} // namespace ui
« no previous file with comments | « ui/base/win/metro.h ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698