| 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 "chrome/browser/ui/views/autofill_profiles_view_win.h" | 5 #include "chrome/browser/ui/views/autofill_profiles_view_win.h" |
| 6 | 6 |
| 7 #include <vsstyle.h> | 7 #include <vsstyle.h> |
| 8 #include <vssym32.h> | 8 #include <vssym32.h> |
| 9 | 9 |
| 10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 | 461 |
| 462 add_address_button_ = new views::NativeButton(this, | 462 add_address_button_ = new views::NativeButton(this, |
| 463 UTF16ToWide(l10n_util::GetStringUTF16(IDS_AUTOFILL_ADD_ADDRESS_BUTTON))); | 463 UTF16ToWide(l10n_util::GetStringUTF16(IDS_AUTOFILL_ADD_ADDRESS_BUTTON))); |
| 464 add_credit_card_button_ = new views::NativeButton(this, UTF16ToWide( | 464 add_credit_card_button_ = new views::NativeButton(this, UTF16ToWide( |
| 465 l10n_util::GetStringUTF16(IDS_AUTOFILL_ADD_CREDITCARD_BUTTON))); | 465 l10n_util::GetStringUTF16(IDS_AUTOFILL_ADD_CREDITCARD_BUTTON))); |
| 466 edit_button_ = new views::NativeButton(this, | 466 edit_button_ = new views::NativeButton(this, |
| 467 UTF16ToWide(l10n_util::GetStringUTF16(IDS_AUTOFILL_EDIT_BUTTON))); | 467 UTF16ToWide(l10n_util::GetStringUTF16(IDS_AUTOFILL_EDIT_BUTTON))); |
| 468 remove_button_ = new views::NativeButton(this, | 468 remove_button_ = new views::NativeButton(this, |
| 469 UTF16ToWide(l10n_util::GetStringUTF16(IDS_AUTOFILL_DELETE_BUTTON))); | 469 UTF16ToWide(l10n_util::GetStringUTF16(IDS_AUTOFILL_DELETE_BUTTON))); |
| 470 | 470 |
| 471 views::GridLayout* layout = CreatePanelGridLayout(this); | 471 views::GridLayout* layout = views::GridLayout::CreatePanel(this); |
| 472 SetLayoutManager(layout); | 472 SetLayoutManager(layout); |
| 473 | 473 |
| 474 const int table_with_buttons_column_view_set_id = 0; | 474 const int table_with_buttons_column_view_set_id = 0; |
| 475 views::ColumnSet* column_set = | 475 views::ColumnSet* column_set = |
| 476 layout->AddColumnSet(table_with_buttons_column_view_set_id); | 476 layout->AddColumnSet(table_with_buttons_column_view_set_id); |
| 477 column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::FILL, 1, | 477 column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::FILL, 1, |
| 478 views::GridLayout::USE_PREF, 0, 0); | 478 views::GridLayout::USE_PREF, 0, 0); |
| 479 column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing); | 479 column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing); |
| 480 column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::CENTER, 0, | 480 column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::CENTER, 0, |
| 481 views::GridLayout::USE_PREF, 0, 0); | 481 views::GridLayout::USE_PREF, 0, 0); |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1314 AutoFillDialogObserver* observer, | 1314 AutoFillDialogObserver* observer, |
| 1315 Profile* profile) { | 1315 Profile* profile) { |
| 1316 DCHECK(profile); | 1316 DCHECK(profile); |
| 1317 | 1317 |
| 1318 PersonalDataManager* personal_data_manager = | 1318 PersonalDataManager* personal_data_manager = |
| 1319 profile->GetPersonalDataManager(); | 1319 profile->GetPersonalDataManager(); |
| 1320 DCHECK(personal_data_manager); | 1320 DCHECK(personal_data_manager); |
| 1321 AutoFillProfilesView::Show(parent, observer, personal_data_manager, profile, | 1321 AutoFillProfilesView::Show(parent, observer, personal_data_manager, profile, |
| 1322 profile->GetPrefs(), NULL, NULL); | 1322 profile->GetPrefs(), NULL, NULL); |
| 1323 } | 1323 } |
| OLD | NEW |