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

Side by Side Diff: chrome/browser/chromeos/options/language_config_view.cc

Issue 5990008: Remove wstring from l10n_util. Part 1.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/options/language_config_view.h" 5 #include "chrome/browser/chromeos/options/language_config_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 right_container_->AddChildView(CreatePerLanguageConfigView(language_code)); 232 right_container_->AddChildView(CreatePerLanguageConfigView(language_code));
233 MaybeDisableLastCheckbox(); 233 MaybeDisableLastCheckbox();
234 // Layout the right container. This is needed for the contents on the 234 // Layout the right container. This is needed for the contents on the
235 // right to be displayed properly. 235 // right to be displayed properly.
236 right_container_->Layout(); 236 right_container_->Layout();
237 } 237 }
238 238
239 std::wstring LanguageConfigView::GetText(int row, int column_id) { 239 std::wstring LanguageConfigView::GetText(int row, int column_id) {
240 if (row >= 0 && row < static_cast<int>( 240 if (row >= 0 && row < static_cast<int>(
241 model_.num_preferred_language_codes())) { 241 model_.num_preferred_language_codes())) {
242 return input_method::GetLanguageDisplayNameFromCode( 242 return UTF16ToWide(input_method::GetLanguageDisplayNameFromCode(
243 model_.preferred_language_code_at(row)); 243 model_.preferred_language_code_at(row)));
244 } 244 }
245 NOTREACHED(); 245 NOTREACHED();
246 return L""; 246 return L"";
247 } 247 }
248 248
249 void LanguageConfigView::SetObserver(TableModelObserver* observer) { 249 void LanguageConfigView::SetObserver(TableModelObserver* observer) {
250 // We don't need the observer for the table mode, since we implement the 250 // We don't need the observer for the table mode, since we implement the
251 // table model as part of the LanguageConfigView class. 251 // table model as part of the LanguageConfigView class.
252 // http://crbug.com/38266 252 // http://crbug.com/38266
253 } 253 }
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 621
622 void LanguageConfigView::EnableAllCheckboxes() { 622 void LanguageConfigView::EnableAllCheckboxes() {
623 for (std::set<InputMethodCheckbox*>::iterator checkbox = 623 for (std::set<InputMethodCheckbox*>::iterator checkbox =
624 input_method_checkboxes_.begin(); 624 input_method_checkboxes_.begin();
625 checkbox != input_method_checkboxes_.end(); ++checkbox) { 625 checkbox != input_method_checkboxes_.end(); ++checkbox) {
626 (*checkbox)->SetEnabled(true); 626 (*checkbox)->SetEnabled(true);
627 } 627 }
628 } 628 }
629 629
630 } // namespace chromeos 630 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698