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