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

Side by Side Diff: chromeos/ime/component_extension_ime_manager.cc

Issue 22980018: Disable non Latin keyboard layout on Lock screen and Sign-in screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test case. Created 7 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/logging.h" 5 #include "base/logging.h"
6 #include "base/strings/string_util.h" 6 #include "base/strings/string_util.h"
7 #include "chromeos/ime/component_extension_ime_manager.h" 7 #include "chromeos/ime/component_extension_ime_manager.h"
8 8
9 namespace chromeos { 9 namespace chromeos {
10 namespace { 10 namespace {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 for (size_t i = 0; i < component_extension_imes_.size(); ++i) { 146 for (size_t i = 0; i < component_extension_imes_.size(); ++i) {
147 for (size_t j = 0; j < component_extension_imes_[i].engines.size(); ++j) { 147 for (size_t j = 0; j < component_extension_imes_[i].engines.size(); ++j) {
148 result.push_back( 148 result.push_back(
149 input_method::InputMethodDescriptor( 149 input_method::InputMethodDescriptor(
150 GetComponentExtensionIMEId( 150 GetComponentExtensionIMEId(
151 component_extension_imes_[i].id, 151 component_extension_imes_[i].id,
152 component_extension_imes_[i].engines[j].engine_id), 152 component_extension_imes_[i].engines[j].engine_id),
153 component_extension_imes_[i].engines[j].display_name, 153 component_extension_imes_[i].engines[j].display_name,
154 component_extension_imes_[i].engines[j].layouts, 154 component_extension_imes_[i].engines[j].layouts,
155 component_extension_imes_[i].engines[j].language_codes, 155 component_extension_imes_[i].engines[j].language_codes,
156 false, // Do not use IME on login screen.
156 component_extension_imes_[i].options_page_url)); 157 component_extension_imes_[i].options_page_url));
157 } 158 }
158 } 159 }
159 return result; 160 return result;
160 } 161 }
161 162
162 void ComponentExtensionIMEManager::AddObserver(Observer* observer) { 163 void ComponentExtensionIMEManager::AddObserver(Observer* observer) {
163 observers_.AddObserver(observer); 164 observers_.AddObserver(observer);
164 } 165 }
165 166
(...skipping 22 matching lines...) Expand all
188 *out_extension = component_extension_imes_[i]; 189 *out_extension = component_extension_imes_[i];
189 if (out_engine) 190 if (out_engine)
190 *out_engine = component_extension_imes_[i].engines[j]; 191 *out_engine = component_extension_imes_[i].engines[j];
191 return true; 192 return true;
192 } 193 }
193 } 194 }
194 return false; 195 return false;
195 } 196 }
196 197
197 } // namespace chromeos 198 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/input_method/background.js ('k') | chromeos/ime/gen_input_methods.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698