| 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 <algorithm> | 9 #include <algorithm> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "app/gtk_signal.h" | 13 #include "app/gtk_signal.h" |
| 14 #include "app/l10n_util.h" | 14 #include "app/l10n_util.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
| 17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
| 18 #include "chrome/browser/autofill/autofill_manager.h" | 18 #include "chrome/browser/autofill/autofill_manager.h" |
| 19 #include "chrome/browser/autofill/autofill_profile.h" | 19 #include "chrome/browser/autofill/autofill_profile.h" |
| 20 #include "chrome/browser/autofill/credit_card.h" | 20 #include "chrome/browser/autofill/credit_card.h" |
| 21 #include "chrome/browser/autofill/form_group.h" | 21 #include "chrome/browser/autofill/form_group.h" |
| 22 #include "chrome/browser/autofill/personal_data_manager.h" | 22 #include "chrome/browser/autofill/personal_data_manager.h" |
| 23 #include "chrome/browser/autofill/phone_number.h" | 23 #include "chrome/browser/autofill/phone_number.h" |
| 24 #include "chrome/browser/gtk/gtk_chrome_link_button.h" | |
| 25 #include "chrome/browser/gtk/gtk_tree.h" | |
| 26 #include "chrome/browser/gtk/gtk_util.h" | |
| 27 #include "chrome/browser/metrics/user_metrics.h" | 24 #include "chrome/browser/metrics/user_metrics.h" |
| 28 #include "chrome/browser/prefs/pref_member.h" | 25 #include "chrome/browser/prefs/pref_member.h" |
| 29 #include "chrome/browser/prefs/pref_service.h" | 26 #include "chrome/browser/prefs/pref_service.h" |
| 30 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
| 31 #include "chrome/browser/ui/browser.h" | 28 #include "chrome/browser/ui/browser.h" |
| 32 #include "chrome/browser/ui/browser_list.h" | 29 #include "chrome/browser/ui/browser_list.h" |
| 30 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
| 31 #include "chrome/browser/ui/gtk/gtk_tree.h" |
| 32 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 33 #include "chrome/common/notification_details.h" | 33 #include "chrome/common/notification_details.h" |
| 34 #include "chrome/common/notification_observer.h" | 34 #include "chrome/common/notification_observer.h" |
| 35 #include "chrome/common/notification_type.h" | 35 #include "chrome/common/notification_type.h" |
| 36 #include "chrome/common/pref_names.h" | 36 #include "chrome/common/pref_names.h" |
| 37 #include "gfx/gtk_util.h" | 37 #include "gfx/gtk_util.h" |
| 38 #include "grit/chromium_strings.h" | 38 #include "grit/chromium_strings.h" |
| 39 #include "grit/generated_resources.h" | 39 #include "grit/generated_resources.h" |
| 40 #include "grit/locale_settings.h" | 40 #include "grit/locale_settings.h" |
| 41 | 41 |
| 42 // Shows the editor for adding/editing an AutoFillProfile. If | 42 // Shows the editor for adding/editing an AutoFillProfile. If |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 | 660 |
| 661 void ShowAutoFillDialog(gfx::NativeView parent, | 661 void ShowAutoFillDialog(gfx::NativeView parent, |
| 662 AutoFillDialogObserver* observer, | 662 AutoFillDialogObserver* observer, |
| 663 Profile* profile) { | 663 Profile* profile) { |
| 664 DCHECK(profile); | 664 DCHECK(profile); |
| 665 | 665 |
| 666 if (!dialog) | 666 if (!dialog) |
| 667 dialog = new AutoFillDialog(profile, observer); | 667 dialog = new AutoFillDialog(profile, observer); |
| 668 dialog->Show(); | 668 dialog->Show(); |
| 669 } | 669 } |
| OLD | NEW |