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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // current input method as needed. | 129 // current input method as needed. |
130 void OnScreenUnlocked(); | 130 void OnScreenUnlocked(); |
131 | 131 |
132 // Returns true if |input_method_id| is in |active_input_method_ids_|. | 132 // Returns true if |input_method_id| is in |active_input_method_ids_|. |
133 bool InputMethodIsActivated(const std::string& input_method_id); | 133 bool InputMethodIsActivated(const std::string& input_method_id); |
134 | 134 |
135 // Returns true if the given input method config value is a string list | 135 // Returns true if the given input method config value is a string list |
136 // that only contains an input method ID of a keyboard layout. | 136 // that only contains an input method ID of a keyboard layout. |
137 bool ContainsOnlyKeyboardLayout(const std::vector<std::string>& value); | 137 bool ContainsOnlyKeyboardLayout(const std::vector<std::string>& value); |
138 | 138 |
139 // Returns true if the connection to ibus-daemon is established. | |
140 bool IsIBusConnectionAlive(); | |
141 | |
142 // Creates and initializes |candidate_window_controller_| if it hasn't been | 139 // Creates and initializes |candidate_window_controller_| if it hasn't been |
143 // done. | 140 // done. |
144 void MaybeInitializeCandidateWindowController(); | 141 void MaybeInitializeCandidateWindowController(); |
145 | 142 |
146 // If |current_input_method_id_| is not in |input_method_ids|, switch to | 143 // If |current_input_method_id_| is not in |input_method_ids|, switch to |
147 // input_method_ids[0]. If the ID is equal to input_method_ids[N], switch to | 144 // input_method_ids[0]. If the ID is equal to input_method_ids[N], switch to |
148 // input_method_ids[N+1]. | 145 // input_method_ids[N+1]. |
149 void SwitchToNextInputMethodInternal( | 146 void SwitchToNextInputMethodInternal( |
150 const std::vector<std::string>& input_method_ids, | 147 const std::vector<std::string>& input_method_ids, |
151 const std::string& current_input_method_id); | 148 const std::string& current_input_method_id); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 228 |
232 base::WeakPtrFactory<InputMethodManagerImpl> weak_ptr_factory_; | 229 base::WeakPtrFactory<InputMethodManagerImpl> weak_ptr_factory_; |
233 | 230 |
234 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); | 231 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); |
235 }; | 232 }; |
236 | 233 |
237 } // namespace input_method | 234 } // namespace input_method |
238 } // namespace chromeos | 235 } // namespace chromeos |
239 | 236 |
240 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ | 237 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ |
OLD | NEW |