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

Unified Diff: base/win/metro.h

Issue 10560015: Implement base::win::IsMetroProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename InMetroMode to IsMetroProcess. Cache and DCHECK in GetMetroModule. Created 8 years, 6 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 | « no previous file | base/win/metro.cc » ('j') | base/win/metro.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/metro.h
diff --git a/base/win/metro.h b/base/win/metro.h
index be13a30849970fdfcf41bd396a86b066baec19bc..e25c6f43ad0945488bc687e05ecca9a906053ae8 100644
--- a/base/win/metro.h
+++ b/base/win/metro.h
@@ -51,6 +51,10 @@ BASE_EXPORT extern const char kActivateApplication[];
// indicates that the metro dll was not loaded in the process.
BASE_EXPORT HMODULE GetMetroModule();
+// Returns true if this process is running as an immersive program
+// in Windows Metro mode.
+BASE_EXPORT bool IsMetroProcess();
+
// Allocates and returns the destination string via the LocalAlloc API after
// copying the src to it.
BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src);
« no previous file with comments | « no previous file | base/win/metro.cc » ('j') | base/win/metro.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698