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

Unified Diff: ui/base/ime/win/tsf_input_scope.h

Issue 21157006: change tsf_input_scopes::SetInputScopeForTsfUnawareWindow to SetInputScopesForTsfUnawareWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 7 years, 5 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 | ui/base/ime/win/tsf_input_scope.cc » ('j') | ui/base/ime/win/tsf_input_scope.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/win/tsf_input_scope.h
diff --git a/ui/base/ime/win/tsf_input_scope.h b/ui/base/ime/win/tsf_input_scope.h
index 0dd159e22a0a9769bf2fad666c9b5112ad348cdf..677f8eb140ff0affd08cd8a547c2ff577081361e 100644
--- a/ui/base/ime/win/tsf_input_scope.h
+++ b/ui/base/ime/win/tsf_input_scope.h
@@ -8,6 +8,7 @@
#include <Windows.h>
#include "base/basictypes.h"
+#include "ui/base/ime/text_input_mode.h"
#include "ui/base/ime/text_input_type.h"
#include "ui/base/ui_export.h"
@@ -31,6 +32,16 @@ UI_EXPORT void SetInputScopeForTsfUnawareWindow(
HWND window_handle,
TextInputType text_input_type);
+// A wrapper of the SetInputScopes API exported by msctf.dll.
+// http://msdn.microsoft.com/en-us/library/windows/desktop/
+// ms629026(v=vs.85).aspx
+// Does nothing on Windows XP in case TSF is disabled.
+// NOTE: For TSF-aware window, you should use ITfInputScope instead.
+UI_EXPORT void SetInputScopesForTsfUnawareWindow(
+ HWND window_handle,
+ TextInputType text_input_type,
+ TextInputMode text_input_mode);
+
} // namespace tsf_inputscope
} // namespace ui
« no previous file with comments | « no previous file | ui/base/ime/win/tsf_input_scope.cc » ('j') | ui/base/ime/win/tsf_input_scope.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698