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

Side by Side Diff: chromeos/ime/input_method_manager.h

Issue 12453011: Move InputMethodManager to chromeos/ime (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 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 | « chromeos/ime/input_method_descriptor_unittest.cc ('k') | chromeos/ime/input_method_property.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 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ 5 #ifndef CHROMEOS_IME_INPUT_METHOD_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ 6 #define CHROMEOS_IME_INPUT_METHOD_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/chromeos/input_method/input_method_config.h" 13 #include "chromeos/chromeos_export.h"
14 #include "chrome/browser/chromeos/input_method/input_method_descriptor.h" 14 #include "chromeos/ime/input_method_config.h"
15 #include "chrome/browser/chromeos/input_method/input_method_property.h" 15 #include "chromeos/ime/input_method_descriptor.h"
16 #include "chromeos/ime/input_method_property.h"
16 17
17 namespace ui { 18 namespace ui {
18 class Accelerator; 19 class Accelerator;
19 } // namespace ui 20 } // namespace ui
20 21
21 namespace chromeos { 22 namespace chromeos {
22 class InputMethodEngine; 23 class InputMethodEngine;
23 namespace input_method { 24 namespace input_method {
24 25
25 class InputMethodUtil; 26 class InputMethodUtil;
26 class XKeyboard; 27 class XKeyboard;
27 28
28 // This class manages input methodshandles. Classes can add themselves as 29 // This class manages input methodshandles. Classes can add themselves as
29 // observers. Clients can get an instance of this library class by: 30 // observers. Clients can get an instance of this library class by:
30 // GetInputMethodManager(). 31 // GetInputMethodManager().
31 class InputMethodManager { 32 class CHROMEOS_EXPORT InputMethodManager {
32 public: 33 public:
33 enum State { 34 enum State {
34 STATE_LOGIN_SCREEN = 0, 35 STATE_LOGIN_SCREEN = 0,
35 STATE_BROWSER_SCREEN, 36 STATE_BROWSER_SCREEN,
36 STATE_LOCK_SCREEN, 37 STATE_LOCK_SCREEN,
37 STATE_TERMINATING, 38 STATE_TERMINATING,
38 }; 39 };
39 40
40 class Observer { 41 class Observer {
41 public: 42 public:
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 virtual bool SwitchToPreviousInputMethod() = 0; 154 virtual bool SwitchToPreviousInputMethod() = 0;
154 155
155 // Switches to an input method (or keyboard layout) which is associated with 156 // Switches to an input method (or keyboard layout) which is associated with
156 // the |accelerator|. 157 // the |accelerator|.
157 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; 158 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0;
158 }; 159 };
159 160
160 } // namespace input_method 161 } // namespace input_method
161 } // namespace chromeos 162 } // namespace chromeos
162 163
163 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ 164 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_
OLDNEW
« no previous file with comments | « chromeos/ime/input_method_descriptor_unittest.cc ('k') | chromeos/ime/input_method_property.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698