| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_BASE_IME_INPUT_METHOD_FACTORY_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_FACTORY_H_ |
| 6 #define UI_BASE_IME_INPUT_METHOD_FACTORY_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_FACTORY_H_ |
| 7 | 7 |
| 8 #include "ui/base/ui_export.h" | 8 #include "ui/base/ui_export.h" |
| 9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 | 10 |
| 11 namespace ui { | 11 namespace ui { |
| 12 | 12 |
| 13 class InputMethod; | 13 class InputMethod; |
| 14 | 14 |
| 15 namespace internal { | 15 namespace internal { |
| 16 class InputMethodDelegate; | 16 class InputMethodDelegate; |
| 17 } // namespace internal | 17 } // namespace internal |
| 18 | 18 |
| 19 // Creates and returns an input method implementation for the platform. Caller | 19 // Creates and returns an input method implementation for the platform. Caller |
| 20 // must delete the object. The object does not own |delegate|. | 20 // must delete the object. The object does not own |delegate|. |
| 21 UI_EXPORT InputMethod* CreateInputMethod( | 21 UI_EXPORT InputMethod* CreateInputMethod( |
| 22 internal::InputMethodDelegate* delegate, | 22 internal::InputMethodDelegate* delegate, |
| 23 gfx::AcceleratedWidget widget); | 23 gfx::AcceleratedWidget widget); |
| 24 | 24 |
| 25 // With calling this function, CreateInputMethod will return MockInputMethod. | 25 // With calling this function, CreateInputMethod will return MockInputMethod. |
| 26 UI_EXPORT void SetUpInputMethodFacotryForTesting(); | 26 UI_EXPORT void SetUpInputMethodFactoryForTesting(); |
| 27 | 27 |
| 28 } // namespace ui; | 28 } // namespace ui; |
| 29 | 29 |
| 30 #endif // UI_BASE_IME_INPUT_METHOD_FACTORY_H_ | 30 #endif // UI_BASE_IME_INPUT_METHOD_FACTORY_H_ |
| OLD | NEW |