1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef UI_BASE_IME_INPUT_METHOD_INITIALIZER_H_ 6#define UI_BASE_IME_INPUT_METHOD_INITIALIZER_H_ 7 8#include "base/basictypes.h" 9#include "ui/base/ui_base_export.h" 10 11namespace ui { 12 13// Initializes thread-local resources for input method. This function should be 14// called in the UI thread before input method is used. 15UI_BASE_EXPORT void InitializeInputMethod(); 16 17// Shutdown thread-local resources for input method. This function should be 18// called in the UI thread after input method is used. 19UI_BASE_EXPORT void ShutdownInputMethod(); 20 21// Initializes thread-local resources for input method. This function is 22// intended to be called from Setup function of unit tests. 23UI_BASE_EXPORT void InitializeInputMethodForTesting(); 24 25// Initializes thread-local resources for input method. This function is 26// intended to be called from TearDown function of unit tests. 27UI_BASE_EXPORT void ShutdownInputMethodForTesting(); 28 29} // namespace ui 30 31#endif // UI_BASE_IME_INPUT_METHOD_INITIALIZER_H_ 32