Chromium Code Reviews| 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..34f03468a25003185c1315db16c25af5d780e389 |
| --- /dev/null |
| +++ b/ui/base/win/metro.cc |
| @@ -0,0 +1,19 @@ |
| +// 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 <windows.h> |
| + |
| +namespace ui { |
| + |
|
cpu_(ooo_6.6-7.5)
2012/04/19 19:52:14
that is the deprecated way :)
Use http://src.chro
|
| +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 |