OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <windows.h> | 5 #include <windows.h> |
6 #include <shlobj.h> | 6 #include <shlobj.h> |
7 #include <vsstyle.h> | 7 #include <vsstyle.h> |
8 #include <vssym32.h> | 8 #include <vssym32.h> |
9 | 9 |
10 #include "chrome/browser/ui/views/options/languages_page_view.h" | 10 #include "chrome/browser/ui/views/options/languages_page_view.h" |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 move_down_button_ = new views::NativeButton( | 258 move_down_button_ = new views::NativeButton( |
259 this, | 259 this, |
260 UTF16ToWide(l10n_util::GetStringUTF16( | 260 UTF16ToWide(l10n_util::GetStringUTF16( |
261 IDS_FONT_LANGUAGE_SETTING_LANGUAGES_SELECTOR_MOVEDOWN_BUTTON_LABEL))); | 261 IDS_FONT_LANGUAGE_SETTING_LANGUAGES_SELECTOR_MOVEDOWN_BUTTON_LABEL))); |
262 move_down_button_->SetEnabled(false); | 262 move_down_button_->SetEnabled(false); |
263 | 263 |
264 languages_contents_ = new views::View; | 264 languages_contents_ = new views::View; |
265 using views::GridLayout; | 265 using views::GridLayout; |
266 using views::ColumnSet; | 266 using views::ColumnSet; |
267 | 267 |
268 GridLayout* layout = CreatePanelGridLayout(this); | 268 GridLayout* layout = GridLayout::CreatePanel(this); |
269 SetLayoutManager(layout); | 269 SetLayoutManager(layout); |
270 | 270 |
271 const int single_column_view_set_id = 0; | 271 const int single_column_view_set_id = 0; |
272 ColumnSet* column_set = layout->AddColumnSet(single_column_view_set_id); | 272 ColumnSet* column_set = layout->AddColumnSet(single_column_view_set_id); |
273 | 273 |
274 // Add the instructions label. | 274 // Add the instructions label. |
275 column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 1, | 275 column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 1, |
276 GridLayout::USE_PREF, 0, 0); | 276 GridLayout::USE_PREF, 0, 0); |
277 languages_instructions_ = new views::Label( | 277 languages_instructions_ = new views::Label( |
278 UTF16ToWide(l10n_util::GetStringUTF16( | 278 UTF16ToWide(l10n_util::GetStringUTF16( |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 } | 579 } |
580 | 580 |
581 if (enable_spellcheck_checkbox_clicked_) | 581 if (enable_spellcheck_checkbox_clicked_) |
582 enable_spellcheck_.SetValue(enable_spellchecking_checkbox_->checked()); | 582 enable_spellcheck_.SetValue(enable_spellchecking_checkbox_->checked()); |
583 | 583 |
584 if (enable_autospellcorrect_checkbox_clicked_) { | 584 if (enable_autospellcorrect_checkbox_clicked_) { |
585 enable_autospellcorrect_.SetValue( | 585 enable_autospellcorrect_.SetValue( |
586 enable_autospellcorrect_checkbox_->checked()); | 586 enable_autospellcorrect_checkbox_->checked()); |
587 } | 587 } |
588 } | 588 } |
OLD | NEW |