| 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 "app/gtk_signal.h" | 9 #include "app/gtk_signal.h" | 
| 10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" | 
| 11 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" | 
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" | 
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" | 
| 14 #include "base/task.h" | 14 #include "base/task.h" | 
| 15 #include "base/time.h" | 15 #include "base/time.h" | 
| 16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" | 
| 17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" | 
| 18 #include "chrome/browser/autofill/personal_data_manager.h" | 18 #include "chrome/browser/autofill/personal_data_manager.h" | 
| 19 #include "chrome/browser/autofill/phone_number.h" | 19 #include "chrome/browser/autofill/phone_number.h" | 
| 20 #include "chrome/browser/gtk/gtk_util.h" | 20 #include "chrome/browser/gtk/gtk_util.h" | 
| 21 #include "chrome/browser/profile.h" | 21 #include "chrome/browser/profiles/profile.h" | 
| 22 #include "grit/app_resources.h" | 22 #include "grit/app_resources.h" | 
| 23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" | 
| 24 #include "grit/locale_settings.h" | 24 #include "grit/locale_settings.h" | 
| 25 #include "grit/theme_resources.h" | 25 #include "grit/theme_resources.h" | 
| 26 | 26 | 
| 27 namespace { | 27 namespace { | 
| 28 | 28 | 
| 29 // Creates a label whose text is set from the resource id |label_id|. | 29 // Creates a label whose text is set from the resource id |label_id|. | 
| 30 GtkWidget* CreateLabel(int label_id) { | 30 GtkWidget* CreateLabel(int label_id) { | 
| 31   GtkWidget* label = gtk_label_new(l10n_util::GetStringUTF8(label_id).c_str()); | 31   GtkWidget* label = gtk_label_new(l10n_util::GetStringUTF8(label_id).c_str()); | 
| (...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 865   new AutoFillProfileEditor(observer, profile, auto_fill_profile); | 865   new AutoFillProfileEditor(observer, profile, auto_fill_profile); | 
| 866 } | 866 } | 
| 867 | 867 | 
| 868 void ShowAutoFillCreditCardEditor(gfx::NativeView parent, | 868 void ShowAutoFillCreditCardEditor(gfx::NativeView parent, | 
| 869                                   AutoFillDialogObserver* observer, | 869                                   AutoFillDialogObserver* observer, | 
| 870                                   Profile* profile, | 870                                   Profile* profile, | 
| 871                                   CreditCard* credit_card) { | 871                                   CreditCard* credit_card) { | 
| 872   // AutoFillCreditCardEditor takes care of deleting itself. | 872   // AutoFillCreditCardEditor takes care of deleting itself. | 
| 873   new AutoFillCreditCardEditor(observer, profile, credit_card); | 873   new AutoFillCreditCardEditor(observer, profile, credit_card); | 
| 874 } | 874 } | 
| OLD | NEW | 
|---|