| 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/autofill/autofill_dialog.h" | 5 #include "chrome/browser/autofill/autofill_dialog.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 personal_data_->credit_cards().begin(); | 435 personal_data_->credit_cards().begin(); |
| 436 i != personal_data_->credit_cards().end(); ++i) { | 436 i != personal_data_->credit_cards().end(); ++i) { |
| 437 AddCreditCardToTree(*(*i), &iter); | 437 AddCreditCardToTree(*(*i), &iter); |
| 438 } | 438 } |
| 439 | 439 |
| 440 UpdateWidgetState(); | 440 UpdateWidgetState(); |
| 441 } | 441 } |
| 442 | 442 |
| 443 void AutoFillDialog::InitializeWidgets() { | 443 void AutoFillDialog::InitializeWidgets() { |
| 444 dialog_ = gtk_dialog_new_with_buttons( | 444 dialog_ = gtk_dialog_new_with_buttons( |
| 445 l10n_util::GetStringUTF8(IDS_AUTOFILL_OPTIONS).c_str(), | 445 l10n_util::GetStringUTF8(IDS_AUTOFILL_OPTIONS_TITLE).c_str(), |
| 446 // AutoFill dialog is shared between all browser windows. | 446 // AutoFill dialog is shared between all browser windows. |
| 447 NULL, | 447 NULL, |
| 448 // Non-modal. | 448 // Non-modal. |
| 449 GTK_DIALOG_NO_SEPARATOR, | 449 GTK_DIALOG_NO_SEPARATOR, |
| 450 GTK_STOCK_OK, | 450 GTK_STOCK_OK, |
| 451 GTK_RESPONSE_OK, | 451 GTK_RESPONSE_OK, |
| 452 NULL); | 452 NULL); |
| 453 | 453 |
| 454 GtkBox* vbox = GTK_BOX(GTK_DIALOG(dialog_)->vbox); | 454 GtkBox* vbox = GTK_BOX(GTK_DIALOG(dialog_)->vbox); |
| 455 gtk_box_set_spacing(vbox, gtk_util::kControlSpacing); | 455 gtk_box_set_spacing(vbox, gtk_util::kControlSpacing); |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 | 657 |
| 658 void ShowAutoFillDialog(gfx::NativeView parent, | 658 void ShowAutoFillDialog(gfx::NativeView parent, |
| 659 AutoFillDialogObserver* observer, | 659 AutoFillDialogObserver* observer, |
| 660 Profile* profile) { | 660 Profile* profile) { |
| 661 DCHECK(profile); | 661 DCHECK(profile); |
| 662 | 662 |
| 663 if (!dialog) | 663 if (!dialog) |
| 664 dialog = new AutoFillDialog(profile, observer); | 664 dialog = new AutoFillDialog(profile, observer); |
| 665 dialog->Show(); | 665 dialog->Show(); |
| 666 } | 666 } |
| OLD | NEW |