OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "ui/base/ime/input_method_factory.h" | 5 #include "ui/base/ime/input_method_factory.h" |
6 | 6 |
7 #include "ui/base/ime/input_method_delegate.h" | 7 #include "ui/base/ime/input_method_delegate.h" |
8 #include "ui/base/ime/mock_input_method.h" | 8 #include "ui/base/ime/mock_input_method.h" |
9 | 9 |
10 #if defined(OS_CHROMEOS) && defined(USE_X11) | 10 #if defined(OS_CHROMEOS) && defined(USE_X11) |
(...skipping 16 matching lines...) Expand all Loading... |
27 return new MockInputMethod(delegate); | 27 return new MockInputMethod(delegate); |
28 #if defined(OS_CHROMEOS) && defined(USE_X11) | 28 #if defined(OS_CHROMEOS) && defined(USE_X11) |
29 return new InputMethodIBus(delegate); | 29 return new InputMethodIBus(delegate); |
30 #elif defined(OS_WIN) | 30 #elif defined(OS_WIN) |
31 return new InputMethodWin(delegate, widget); | 31 return new InputMethodWin(delegate, widget); |
32 #else | 32 #else |
33 return new FakeInputMethod(delegate); | 33 return new FakeInputMethod(delegate); |
34 #endif | 34 #endif |
35 } | 35 } |
36 | 36 |
37 void SetUpInputMethodFacotryForTesting() { | 37 void SetUpInputMethodFactoryForTesting() { |
38 g_input_method_set_for_testing = true; | 38 g_input_method_set_for_testing = true; |
39 } | 39 } |
40 | 40 |
41 } // namespace ui | 41 } // namespace ui |
OLD | NEW |