OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/base/ime/input_method_factory.h" |
| 6 |
| 7 #include "ui/base/ime/input_method_delegate.h" |
| 8 |
| 9 #if defined(HAVE_IBUS) |
| 10 #include "ui/base/ime/input_method_ibus.h" |
| 11 #else |
| 12 #include "ui/base/ime/mock_input_method.h" |
| 13 #endif |
| 14 |
| 15 namespace ui { |
| 16 |
| 17 InputMethod* CreateInputMethod(internal::InputMethodDelegate* delegate) { |
| 18 #if defined(HAVE_IBUS) |
| 19 return new InputMethodIBus(delegate); |
| 20 #else |
| 21 return new MockInputMethod(delegate); |
| 22 #endif |
| 23 } |
| 24 |
| 25 } // namespace ui |
OLD | NEW |