Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(992)

Side by Side Diff: chrome/browser/chromeos/input_method/mock_input_method_manager.cc

Issue 139803010: Support comma separated hardware keyboard layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: /EnableInputMethods/ReplaceEnabeldInputMethods/ Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 for (size_t i = 0; i < active_input_method_ids_.size(); i++) { 67 for (size_t i = 0; i < active_input_method_ids_.size(); i++) {
68 if (input_method_id == active_input_method_ids_[i]) { 68 if (input_method_id == active_input_method_ids_[i]) {
69 return &defaultInputMethod; 69 return &defaultInputMethod;
70 } 70 }
71 } 71 }
72 return NULL; 72 return NULL;
73 } 73 }
74 74
75 void MockInputMethodManager::EnableLoginLayouts( 75 void MockInputMethodManager::EnableLoginLayouts(
76 const std::string& language_code, 76 const std::string& language_code,
77 const std::string& initial_layout) { 77 const std::vector<std::string>& initial_layout) {
78 } 78 }
79 79
80 bool MockInputMethodManager::EnableInputMethods( 80 bool MockInputMethodManager::ReplaceEnabledInputMethods(
81 const std::vector<std::string>& new_active_input_method_ids) { 81 const std::vector<std::string>& new_active_input_method_ids) {
82 return true; 82 return true;
83 } 83 }
84 84
85 bool MockInputMethodManager::EnableInputMethod( 85 bool MockInputMethodManager::EnableInputMethod(
86 const std::string& new_active_input_method_id) { 86 const std::string& new_active_input_method_id) {
87 return true; 87 return true;
88 } 88 }
89 89
90 void MockInputMethodManager::ChangeInputMethod( 90 void MockInputMethodManager::ChangeInputMethod(
(...skipping 13 matching lines...) Expand all
104 } 104 }
105 105
106 void MockInputMethodManager::GetInputMethodExtensions( 106 void MockInputMethodManager::GetInputMethodExtensions(
107 InputMethodDescriptors* result) { 107 InputMethodDescriptors* result) {
108 } 108 }
109 109
110 void MockInputMethodManager::SetEnabledExtensionImes( 110 void MockInputMethodManager::SetEnabledExtensionImes(
111 std::vector<std::string>* ids) { 111 std::vector<std::string>* ids) {
112 } 112 }
113 113
114 void MockInputMethodManager::SetInputMethodDefault() { 114 void MockInputMethodManager::SetInputMethodLoginDefault() {
115 } 115 }
116 116
117 bool MockInputMethodManager::SwitchToNextInputMethod() { 117 bool MockInputMethodManager::SwitchToNextInputMethod() {
118 return true; 118 return true;
119 } 119 }
120 120
121 bool MockInputMethodManager::SwitchToPreviousInputMethod( 121 bool MockInputMethodManager::SwitchToPreviousInputMethod(
122 const ui::Accelerator& accelerator) { 122 const ui::Accelerator& accelerator) {
123 return true; 123 return true;
124 } 124 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 ComponentExtensionIMEManager* 164 ComponentExtensionIMEManager*
165 MockInputMethodManager::GetComponentExtensionIMEManager() { 165 MockInputMethodManager::GetComponentExtensionIMEManager() {
166 return NULL; 166 return NULL;
167 } 167 }
168 168
169 void MockInputMethodManager::set_application_locale(const std::string& value) { 169 void MockInputMethodManager::set_application_locale(const std::string& value) {
170 delegate_.set_active_locale(value); 170 delegate_.set_active_locale(value);
171 } 171 }
172 172
173 void MockInputMethodManager::set_hardware_keyboard_layout(
174 const std::string& value) {
175 delegate_.set_hardware_keyboard_layout(value);
176 }
177
178 bool MockInputMethodManager::IsLoginKeyboard( 173 bool MockInputMethodManager::IsLoginKeyboard(
179 const std::string& layout) const { 174 const std::string& layout) const {
180 return true; 175 return true;
181 } 176 }
182 } // namespace input_method 177 } // namespace input_method
183 } // namespace chromeos 178 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698