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

Unified Diff: base/win/metro.cc

Issue 10855072: Add IsTsfAwareRequired method (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add comments Created 8 years, 4 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 | « base/win/metro.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/metro.cc
diff --git a/base/win/metro.cc b/base/win/metro.cc
index a8436cbf6ceabab4d93d95992ce3efa07144d4b5..598217eb5e840c6d1bfe02c20d8f6e6375e460dd 100644
--- a/base/win/metro.cc
+++ b/base/win/metro.cc
@@ -73,6 +73,12 @@ bool IsMetroProcess() {
return state == kImmersiveTrue;
}
+bool IsTsfAwareRequired() {
+ // Although this function is equal to IsMetroProcess at this moment,
+ // Chrome for Win7 and Vista may support TSF in the future.
+ return IsMetroProcess();
+}
+
wchar_t* LocalAllocAndCopyString(const string16& src) {
size_t dest_size = (src.length() + 1) * sizeof(wchar_t);
wchar_t* dest = reinterpret_cast<wchar_t*>(LocalAlloc(LPTR, dest_size));
« no previous file with comments | « base/win/metro.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698