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

Side by Side Diff: chrome/browser/chromeos/login/language_switch_menu.cc

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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) 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/login/language_switch_menu.h" 5 #include "chrome/browser/chromeos/login/language_switch_menu.h"
6 6
7 #include "app/resource_bundle.h"
8 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
9 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/chromeos/cros/cros_library.h" 10 #include "chrome/browser/chromeos/cros/cros_library.h"
12 #include "chrome/browser/chromeos/cros/keyboard_library.h" 11 #include "chrome/browser/chromeos/cros/keyboard_library.h"
13 #include "chrome/browser/chromeos/input_method/input_method_util.h" 12 #include "chrome/browser/chromeos/input_method/input_method_util.h"
14 #include "chrome/browser/chromeos/language_preferences.h" 13 #include "chrome/browser/chromeos/language_preferences.h"
15 #include "chrome/browser/chromeos/login/screen_observer.h" 14 #include "chrome/browser/chromeos/login/screen_observer.h"
16 #include "chrome/browser/prefs/pref_service.h" 15 #include "chrome/browser/prefs/pref_service.h"
17 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
18 #include "grit/generated_resources.h" 17 #include "grit/generated_resources.h"
18 #include "ui/base/resource/resource_bundle.h"
19 #include "views/controls/button/menu_button.h" 19 #include "views/controls/button/menu_button.h"
20 #include "views/widget/widget_gtk.h" 20 #include "views/widget/widget_gtk.h"
21 21
22 namespace { 22 namespace {
23 23
24 const int kLanguageMainMenuSize = 5; 24 const int kLanguageMainMenuSize = 5;
25 // TODO(glotov): need to specify the list as a part of the image customization. 25 // TODO(glotov): need to specify the list as a part of the image customization.
26 const char kLanguagesTopped[] = "es,it,de,fr,en-US"; 26 const char kLanguagesTopped[] = "es,it,de,fr,en-US";
27 const int kMoreLanguagesSubMenu = 200; 27 const int kMoreLanguagesSubMenu = 200;
28 28
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 void LanguageSwitchMenu::ExecuteCommand(int command_id) { 147 void LanguageSwitchMenu::ExecuteCommand(int command_id) {
148 const std::string locale = language_list_->GetLocaleFromIndex(command_id); 148 const std::string locale = language_list_->GetLocaleFromIndex(command_id);
149 SwitchLanguage(locale); 149 SwitchLanguage(locale);
150 InitLanguageMenu(); 150 InitLanguageMenu();
151 151
152 // Update all view hierarchies that the locale has changed. 152 // Update all view hierarchies that the locale has changed.
153 views::Widget::NotifyLocaleChanged(); 153 views::Widget::NotifyLocaleChanged();
154 } 154 }
155 155
156 } // namespace chromeos 156 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/helper.cc ('k') | chrome/browser/chromeos/login/login_performer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698