OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 const InputMethodDescriptor& current_input_method, | 48 const InputMethodDescriptor& current_input_method, |
49 size_t num_active_input_methods) = 0; | 49 size_t num_active_input_methods) = 0; |
50 | 50 |
51 // Called when the list of properties is changed. | 51 // Called when the list of properties is changed. |
52 virtual void PropertyListChanged( | 52 virtual void PropertyListChanged( |
53 InputMethodManager* manager, | 53 InputMethodManager* manager, |
54 const ImePropertyList& current_ime_properties) = 0; | 54 const ImePropertyList& current_ime_properties) = 0; |
55 }; | 55 }; |
56 | 56 |
57 // CandidateWindowObserver is notified of events related to the candidate | 57 // CandidateWindowObserver is notified of events related to the candidate |
58 // window. These events won't occur when the virtual keyboard is used, | 58 // window. The "suggestion window" used by IMEs such as ibus-mozc does not |
59 // since it controls its own candidate window. | 59 // count as the candidate window (this may change if we later want suggestion |
| 60 // window events as well). These events also won't occur when the virtual |
| 61 // keyboard is used, since it controls its own candidate window. |
60 class CandidateWindowObserver { | 62 class CandidateWindowObserver { |
61 public: | 63 public: |
62 virtual ~CandidateWindowObserver() {} | 64 virtual ~CandidateWindowObserver() {} |
63 | 65 |
64 // Called when the candidate window is opened. | 66 // Called when the candidate window is opened. |
65 virtual void CandidateWindowOpened(InputMethodManager* manager) = 0; | 67 virtual void CandidateWindowOpened(InputMethodManager* manager) = 0; |
66 | 68 |
67 // Called when the candidate window is closed. | 69 // Called when the candidate window is closed. |
68 virtual void CandidateWindowClosed(InputMethodManager* manager) = 0; | 70 virtual void CandidateWindowClosed(InputMethodManager* manager) = 0; |
69 }; | 71 }; |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 virtual InputMethodDescriptor previous_input_method() const = 0; | 265 virtual InputMethodDescriptor previous_input_method() const = 0; |
264 virtual InputMethodDescriptor current_input_method() const = 0; | 266 virtual InputMethodDescriptor current_input_method() const = 0; |
265 | 267 |
266 virtual const ImePropertyList& current_ime_properties() const = 0; | 268 virtual const ImePropertyList& current_ime_properties() const = 0; |
267 }; | 269 }; |
268 | 270 |
269 } // namespace input_method | 271 } // namespace input_method |
270 } // namespace chromeos | 272 } // namespace chromeos |
271 | 273 |
272 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ | 274 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ |
OLD | NEW |