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

Side by Side Diff: chrome/browser/views/options/languages_page_view.cc

Issue 39206: NO CODE CHANGE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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) 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/views/html_dialog_view.cc ('k') | chrome/browser/views/options/options_group_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698