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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 // Called when the active input methods are changed. | 49 // Called when the active input methods are changed. |
50 virtual void ActiveInputMethodsChanged( | 50 virtual void ActiveInputMethodsChanged( |
51 InputMethodManager* manager, | 51 InputMethodManager* manager, |
52 const InputMethodDescriptor& current_input_method, | 52 const InputMethodDescriptor& current_input_method, |
53 size_t num_active_input_methods) = 0; | 53 size_t num_active_input_methods) = 0; |
54 | 54 |
55 // Called when the list of properties is changed. | 55 // Called when the list of properties is changed. |
56 virtual void PropertyListChanged( | 56 virtual void PropertyListChanged( |
57 InputMethodManager* manager, | 57 InputMethodManager* manager, |
58 const ImePropertyList& current_ime_properties) = 0; | 58 const InputMethodPropertyList& current_ime_properties) = 0; |
59 }; | 59 }; |
60 | 60 |
61 // CandidateWindowObserver is notified of events related to the candidate | 61 // CandidateWindowObserver is notified of events related to the candidate |
62 // window. The "suggestion window" used by IMEs such as ibus-mozc does not | 62 // window. The "suggestion window" used by IMEs such as ibus-mozc does not |
63 // count as the candidate window (this may change if we later want suggestion | 63 // count as the candidate window (this may change if we later want suggestion |
64 // window events as well). These events also won't occur when the virtual | 64 // window events as well). These events also won't occur when the virtual |
65 // keyboard is used, since it controls its own candidate window. | 65 // keyboard is used, since it controls its own candidate window. |
66 class CandidateWindowObserver { | 66 class CandidateWindowObserver { |
67 public: | 67 public: |
68 virtual ~CandidateWindowObserver() {} | 68 virtual ~CandidateWindowObserver() {} |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 virtual void DisableHotkeys() = 0; | 262 virtual void DisableHotkeys() = 0; |
263 | 263 |
264 // Switches the current input method (or keyboard layout) to the next one. | 264 // Switches the current input method (or keyboard layout) to the next one. |
265 virtual bool SwitchToNextInputMethod() = 0; | 265 virtual bool SwitchToNextInputMethod() = 0; |
266 // Switches the current input method (or keyboard layout) to the previous one. | 266 // Switches the current input method (or keyboard layout) to the previous one. |
267 virtual bool SwitchToPreviousInputMethod() = 0; | 267 virtual bool SwitchToPreviousInputMethod() = 0; |
268 // Switches to an input method (or keyboard layout) which is associated with | 268 // Switches to an input method (or keyboard layout) which is associated with |
269 // the |accelerator|. | 269 // the |accelerator|. |
270 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; | 270 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; |
271 | 271 |
272 virtual InputMethodDescriptor previous_input_method() const = 0; | 272 virtual InputMethodDescriptor GetPreviousInputMethod() const = 0; |
273 virtual InputMethodDescriptor current_input_method() const = 0; | 273 virtual InputMethodDescriptor GetCurrentInputMethod() const = 0; |
274 | 274 |
275 virtual ImePropertyList current_ime_properties() const = 0; | 275 virtual InputMethodPropertyList GetCurrentInputMethodProperties() const = 0; |
276 }; | 276 }; |
277 | 277 |
278 } // namespace input_method | 278 } // namespace input_method |
279 } // namespace chromeos | 279 } // namespace chromeos |
280 | 280 |
281 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ | 281 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ |
OLD | NEW |