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

Unified Diff: win8/util/win8_util.h

Issue 11411286: Decouple IsMetroProcess() calls, introducing IsSingleWindowMetroMode(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: keep base/win/metro.h in omnibox_view_win.cc for IsTSFAwareRequired() Created 8 years 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 | « printing/printing_context_win.cc ('k') | win8/util/win8_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/util/win8_util.h
diff --git a/win8/util/win8_util.h b/win8/util/win8_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..88c36f24880d5c781f2ca5fe5d95c8e380559e1e
--- /dev/null
+++ b/win8/util/win8_util.h
@@ -0,0 +1,18 @@
+// 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.
+
+#ifndef WIN8_UTIL_WIN8_UTIL_H_
+#define WIN8_UTIL_WIN8_UTIL_H_
+
+namespace win8 {
+
+// Returns true if this process is running in fullscreen Metro mode on Win8+.
+// Callers should always prefer this method to base::win::IsMetroProcess() for
+// UI properties dependent on the single window mode as this method is also
+// aware of the Ash environment in which multiple Chrome windows can live.
+bool IsSingleWindowMetroMode();
+
+} // namespace win8
+
+#endif // WIN8_UTIL_WIN8_UTIL_H_
« no previous file with comments | « printing/printing_context_win.cc ('k') | win8/util/win8_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698