| 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 #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 Loading... |
| 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_ |
| OLD | NEW |