Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Side by Side Diff: ui/base/ime/input_method_factory.cc

Issue 13925020: keyboard: Add a test suite for the tests, and initialize all the UI things properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/ime/input_method_factory.h ('k') | ui/base/ime/mock_input_method.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_factory.h ('k') | ui/base/ime/mock_input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698