OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include <windows.h> | 4 #include <windows.h> |
5 #include <shlobj.h> | 5 #include <shlobj.h> |
6 #include <vsstyle.h> | 6 #include <vsstyle.h> |
7 #include <vssym32.h> | 7 #include <vssym32.h> |
8 | 8 |
9 #include "chrome/browser/views/options/languages_page_view.h" | 9 #include "chrome/browser/views/options/languages_page_view.h" |
10 | 10 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // The Profile associated with this window. | 226 // The Profile associated with this window. |
227 Profile* profile_; | 227 Profile* profile_; |
228 | 228 |
229 DISALLOW_EVIL_CONSTRUCTORS(AddLanguageWindowView); | 229 DISALLOW_EVIL_CONSTRUCTORS(AddLanguageWindowView); |
230 }; | 230 }; |
231 | 231 |
232 static const int kDialogPadding = 7; | 232 static const int kDialogPadding = 7; |
233 static int kDefaultWindowWidthChars = 60; | 233 static int kDefaultWindowWidthChars = 60; |
234 static int kDefaultWindowHeightLines = 3; | 234 static int kDefaultWindowHeightLines = 3; |
235 | 235 |
236 AddLanguageWindowView::AddLanguageWindowView(LanguagesPageView* language_delegat
e, | 236 AddLanguageWindowView::AddLanguageWindowView( |
237 Profile* profile) | 237 LanguagesPageView* language_delegate, |
| 238 Profile* profile) |
238 : profile_(profile->GetOriginalProfile()), | 239 : profile_(profile->GetOriginalProfile()), |
239 language_delegate_(language_delegate), | 240 language_delegate_(language_delegate), |
240 accept_language_combobox_(NULL) { | 241 accept_language_combobox_(NULL) { |
241 Init(); | 242 Init(); |
242 | 243 |
243 // Initialize accept_language_selected_ to the first index in drop down. | 244 // Initialize accept_language_selected_ to the first index in drop down. |
244 accept_language_selected_ = accept_language_combobox_model_-> | 245 accept_language_selected_ = accept_language_combobox_model_-> |
245 GetLocaleFromIndex(0); | 246 GetLocaleFromIndex(0); |
246 } | 247 } |
247 | 248 |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 GetLocaleFromIndex(ui_language_index_selected_)); | 794 GetLocaleFromIndex(ui_language_index_selected_)); |
794 } | 795 } |
795 | 796 |
796 if (spellcheck_language_index_selected_ != -1) { | 797 if (spellcheck_language_index_selected_ != -1) { |
797 UserMetricsRecordAction(L"Options_DictionaryLanguage", | 798 UserMetricsRecordAction(L"Options_DictionaryLanguage", |
798 profile()->GetPrefs()); | 799 profile()->GetPrefs()); |
799 dictionary_language_.SetValue(dictionary_language_model_-> | 800 dictionary_language_.SetValue(dictionary_language_model_-> |
800 GetLocaleFromIndex(spellcheck_language_index_selected_)); | 801 GetLocaleFromIndex(spellcheck_language_index_selected_)); |
801 } | 802 } |
802 } | 803 } |
OLD | NEW |