| OLD | NEW |
| 1 // Copyright (c) 2011 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> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
| 26 #include "chrome/browser/ui/browser.h" | 26 #include "chrome/browser/ui/browser.h" |
| 27 #include "chrome/browser/ui/browser_list.h" | 27 #include "chrome/browser/ui/browser_list.h" |
| 28 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" | 28 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
| 29 #include "chrome/browser/ui/gtk/gtk_tree.h" | 29 #include "chrome/browser/ui/gtk/gtk_tree.h" |
| 30 #include "chrome/browser/ui/gtk/gtk_util.h" | 30 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 31 #include "chrome/common/notification_details.h" | 31 #include "chrome/common/notification_details.h" |
| 32 #include "chrome/common/notification_observer.h" | 32 #include "chrome/common/notification_observer.h" |
| 33 #include "chrome/common/notification_type.h" | 33 #include "chrome/common/notification_type.h" |
| 34 #include "chrome/common/pref_names.h" | 34 #include "chrome/common/pref_names.h" |
| 35 #include "gfx/gtk_util.h" | |
| 36 #include "grit/chromium_strings.h" | 35 #include "grit/chromium_strings.h" |
| 37 #include "grit/generated_resources.h" | 36 #include "grit/generated_resources.h" |
| 38 #include "grit/locale_settings.h" | 37 #include "grit/locale_settings.h" |
| 39 #include "ui/base/gtk/gtk_signal.h" | 38 #include "ui/base/gtk/gtk_signal.h" |
| 40 #include "ui/base/l10n/l10n_util.h" | 39 #include "ui/base/l10n/l10n_util.h" |
| 40 #include "ui/gfx/gtk_util.h" |
| 41 | 41 |
| 42 // Shows the editor for adding/editing an AutoFillProfile. If | 42 // Shows the editor for adding/editing an AutoFillProfile. If |
| 43 // |auto_fill_profile| is NULL, a new AutoFillProfile should be created. | 43 // |auto_fill_profile| is NULL, a new AutoFillProfile should be created. |
| 44 void ShowAutoFillProfileEditor(gfx::NativeView parent, | 44 void ShowAutoFillProfileEditor(gfx::NativeView parent, |
| 45 AutoFillDialogObserver* observer, | 45 AutoFillDialogObserver* observer, |
| 46 Profile* profile, | 46 Profile* profile, |
| 47 AutoFillProfile* auto_fill_profile); | 47 AutoFillProfile* auto_fill_profile); |
| 48 | 48 |
| 49 // Shows the editor for adding/editing a CreditCard. If |credit_card| is NULL, a | 49 // Shows the editor for adding/editing a CreditCard. If |credit_card| is NULL, a |
| 50 // new CreditCard should be created. | 50 // new CreditCard should be created. |
| (...skipping 609 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 |