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

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: Addressing comments 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::EnableInputMethods(
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;
(...skipping 16 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 ComponentExtensionIMEManager* 163 ComponentExtensionIMEManager*
164 MockInputMethodManager::GetComponentExtensionIMEManager() { 164 MockInputMethodManager::GetComponentExtensionIMEManager() {
165 return NULL; 165 return NULL;
166 } 166 }
167 167
168 void MockInputMethodManager::set_application_locale(const std::string& value) { 168 void MockInputMethodManager::set_application_locale(const std::string& value) {
169 delegate_.set_active_locale(value); 169 delegate_.set_active_locale(value);
170 } 170 }
171 171
172 void MockInputMethodManager::set_hardware_keyboard_layout(
173 const std::string& value) {
174 delegate_.set_hardware_keyboard_layout(value);
175 }
176
177 bool MockInputMethodManager::IsLoginKeyboard( 172 bool MockInputMethodManager::IsLoginKeyboard(
178 const std::string& layout) const { 173 const std::string& layout) const {
179 return true; 174 return true;
180 } 175 }
181 } // namespace input_method 176 } // namespace input_method
182 } // namespace chromeos 177 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698