| 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 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" | 5 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" |
| 6 | 6 |
| 7 namespace chromeos { | 7 namespace chromeos { |
| 8 namespace input_method { | 8 namespace input_method { |
| 9 | 9 |
| 10 MockInputMethodManager::MockInputMethodManager() | 10 MockInputMethodManager::MockInputMethodManager() |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const std::vector<std::string>& | 54 const std::vector<std::string>& |
| 55 MockInputMethodManager::GetActiveInputMethodIds() const { | 55 MockInputMethodManager::GetActiveInputMethodIds() const { |
| 56 return active_input_method_ids_; | 56 return active_input_method_ids_; |
| 57 } | 57 } |
| 58 | 58 |
| 59 size_t MockInputMethodManager::GetNumActiveInputMethods() const { | 59 size_t MockInputMethodManager::GetNumActiveInputMethods() const { |
| 60 return 1; | 60 return 1; |
| 61 } | 61 } |
| 62 | 62 |
| 63 void MockInputMethodManager::EnableLayouts(const std::string& language_code, | 63 void MockInputMethodManager::EnableLayouts(const std::string& language_code, |
| 64 const std::string& initial_layout) { | 64 const std::string& initial_layout, |
| 65 const bool login_layouts_only) { |
| 65 } | 66 } |
| 66 | 67 |
| 67 bool MockInputMethodManager::EnableInputMethods( | 68 bool MockInputMethodManager::EnableInputMethods( |
| 68 const std::vector<std::string>& new_active_input_method_ids) { | 69 const std::vector<std::string>& new_active_input_method_ids) { |
| 69 return true; | 70 return true; |
| 70 } | 71 } |
| 71 | 72 |
| 72 bool MockInputMethodManager::EnableInputMethod( | 73 bool MockInputMethodManager::EnableInputMethod( |
| 73 const std::string& new_active_input_method_id) { | 74 const std::string& new_active_input_method_id) { |
| 74 return true; | 75 return true; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 const std::string& value) { | 161 const std::string& value) { |
| 161 delegate_.set_hardware_keyboard_layout(value); | 162 delegate_.set_hardware_keyboard_layout(value); |
| 162 } | 163 } |
| 163 | 164 |
| 164 bool MockInputMethodManager::IsLoginKeyboard( | 165 bool MockInputMethodManager::IsLoginKeyboard( |
| 165 const std::string& layout) const { | 166 const std::string& layout) const { |
| 166 return true; | 167 return true; |
| 167 } | 168 } |
| 168 } // namespace input_method | 169 } // namespace input_method |
| 169 } // namespace chromeos | 170 } // namespace chromeos |
| OLD | NEW |