| OLD | NEW |
| 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/views/autofill_profiles_view_win.h" | 5 #include "chrome/browser/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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 l10n_util::GetString(IDS_OPTIONS_AUTOFILL_ENABLE)); | 413 l10n_util::GetString(IDS_OPTIONS_AUTOFILL_ENABLE)); |
| 414 enable_auto_fill_button_->set_listener(this); | 414 enable_auto_fill_button_->set_listener(this); |
| 415 enable_auto_fill_button_->SetChecked( | 415 enable_auto_fill_button_->SetChecked( |
| 416 preferences_->GetBoolean(prefs::kAutoFillEnabled)); | 416 preferences_->GetBoolean(prefs::kAutoFillEnabled)); |
| 417 | 417 |
| 418 billing_model_.set_address_labels(&profiles_set_); | 418 billing_model_.set_address_labels(&profiles_set_); |
| 419 | 419 |
| 420 table_model_.reset(new ContentListTableModel(&profiles_set_, | 420 table_model_.reset(new ContentListTableModel(&profiles_set_, |
| 421 &credit_card_set_)); | 421 &credit_card_set_)); |
| 422 std::vector<TableColumn> columns; | 422 std::vector<TableColumn> columns; |
| 423 columns.resize(1); | 423 columns.push_back(TableColumn()); |
| 424 columns[0] = TableColumn(IDS_AUTOFILL_LIST_HEADER_SUMMARY, | |
| 425 TableColumn::LEFT, -1, .67f); | |
| 426 columns.back().sortable = false; | |
| 427 | |
| 428 scroll_view_ = new views::TableView(table_model_.get(), columns, | 424 scroll_view_ = new views::TableView(table_model_.get(), columns, |
| 429 views::TEXT_ONLY, false, true, true); | 425 views::TEXT_ONLY, false, true, true); |
| 430 scroll_view_->SetObserver(this); | 426 scroll_view_->SetObserver(this); |
| 431 | 427 |
| 432 add_address_button_ = new views::NativeButton(this, | 428 add_address_button_ = new views::NativeButton(this, |
| 433 l10n_util::GetString(IDS_AUTOFILL_ADD_ADDRESS_BUTTON)); | 429 l10n_util::GetString(IDS_AUTOFILL_ADD_ADDRESS_BUTTON)); |
| 434 add_credit_card_button_ = new views::NativeButton(this, | 430 add_credit_card_button_ = new views::NativeButton(this, |
| 435 l10n_util::GetString(IDS_AUTOFILL_ADD_CREDITCARD_BUTTON)); | 431 l10n_util::GetString(IDS_AUTOFILL_ADD_CREDITCARD_BUTTON)); |
| 436 edit_button_ = new views::NativeButton(this, | 432 edit_button_ = new views::NativeButton(this, |
| 437 l10n_util::GetString(IDS_AUTOFILL_EDIT_BUTTON)); | 433 l10n_util::GetString(IDS_AUTOFILL_EDIT_BUTTON)); |
| (...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1389 AutoFillDialogObserver* observer, | 1385 AutoFillDialogObserver* observer, |
| 1390 Profile* profile) { | 1386 Profile* profile) { |
| 1391 DCHECK(profile); | 1387 DCHECK(profile); |
| 1392 | 1388 |
| 1393 PersonalDataManager* personal_data_manager = | 1389 PersonalDataManager* personal_data_manager = |
| 1394 profile->GetPersonalDataManager(); | 1390 profile->GetPersonalDataManager(); |
| 1395 DCHECK(personal_data_manager); | 1391 DCHECK(personal_data_manager); |
| 1396 AutoFillProfilesView::Show(parent, observer, personal_data_manager, profile, | 1392 AutoFillProfilesView::Show(parent, observer, personal_data_manager, profile, |
| 1397 profile->GetPrefs(), NULL, NULL); | 1393 profile->GetPrefs(), NULL, NULL); |
| 1398 } | 1394 } |
| OLD | NEW |