| OLD | NEW |
| 1 // Copyright (c) 2010 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/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/ui/gtk/gtk_util.h" |
| 21 #include "chrome/browser/profiles/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) { |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 867 new AutoFillProfileEditor(observer, profile, auto_fill_profile); | 867 new AutoFillProfileEditor(observer, profile, auto_fill_profile); |
| 868 } | 868 } |
| 869 | 869 |
| 870 void ShowAutoFillCreditCardEditor(gfx::NativeView parent, | 870 void ShowAutoFillCreditCardEditor(gfx::NativeView parent, |
| 871 AutoFillDialogObserver* observer, | 871 AutoFillDialogObserver* observer, |
| 872 Profile* profile, | 872 Profile* profile, |
| 873 CreditCard* credit_card) { | 873 CreditCard* credit_card) { |
| 874 // AutoFillCreditCardEditor takes care of deleting itself. | 874 // AutoFillCreditCardEditor takes care of deleting itself. |
| 875 new AutoFillCreditCardEditor(observer, profile, credit_card); | 875 new AutoFillCreditCardEditor(observer, profile, credit_card); |
| 876 } | 876 } |
| OLD | NEW |