summaryrefslogtreecommitdiff
path: root/chromium/ui/base/ime/input_method_initializer.h
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-08-15 21:46:11 +0200
committerZeno Albisser <zeno.albisser@digia.com>2013-08-15 21:46:11 +0200
commit679147eead574d186ebf3069647b4c23e8ccace6 (patch)
treefc247a0ac8ff119f7c8550879ebb6d3dd8d1ff69 /chromium/ui/base/ime/input_method_initializer.h
downloadqtwebengine-chromium-679147eead574d186ebf3069647b4c23e8ccace6.tar.gz
Initial import.
Diffstat (limited to 'chromium/ui/base/ime/input_method_initializer.h')
-rw-r--r--chromium/ui/base/ime/input_method_initializer.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/chromium/ui/base/ime/input_method_initializer.h b/chromium/ui/base/ime/input_method_initializer.h
new file mode 100644
index 00000000000..fbdf6733574
--- /dev/null
+++ b/chromium/ui/base/ime/input_method_initializer.h
@@ -0,0 +1,31 @@
+// Copyright 2013 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 UI_BASE_IME_INPUT_METHOD_INITIALIZER_H_
+#define UI_BASE_IME_INPUT_METHOD_INITIALIZER_H_
+
+#include "base/basictypes.h"
+#include "ui/base/ui_export.h"
+
+namespace ui {
+
+// Initializes thread-local resources for input method. This function should be
+// called in the UI thread before input method is used.
+UI_EXPORT void InitializeInputMethod();
+
+// Shutdown thread-local resources for input method. This function should be
+// called in the UI thread after input method is used.
+UI_EXPORT void ShutdownInputMethod();
+
+// Initializes thread-local resources for input method. This function is
+// intended to be called from Setup function of unit tests.
+UI_EXPORT void InitializeInputMethodForTesting();
+
+// Initializes thread-local resources for input method. This function is
+// intended to be called from TearDown function of unit tests.
+UI_EXPORT void ShutdownInputMethodForTesting();
+
+} // namespace ui
+
+#endif // UI_BASE_IME_INPUT_METHOD_INITIALIZER_H_