| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_DELEGATE_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> |
| 9 |
| 8 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "base/string16.h" |
| 9 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 10 | 13 |
| 11 namespace autofill { | 14 namespace autofill { |
| 12 class PasswordGenerator; | 15 class PasswordGenerator; |
| 13 } | 16 } |
| 14 | 17 |
| 15 namespace content { | 18 namespace content { |
| 16 struct PasswordForm; | 19 struct PasswordForm; |
| 17 struct SSLStatus; | 20 struct SSLStatus; |
| 18 } | 21 } |
| 19 | 22 |
| 20 namespace gfx { | 23 namespace gfx { |
| 21 class Rect; | 24 class Rect; |
| 22 class RectF; | 25 class RectF; |
| 23 } | 26 } |
| 24 | 27 |
| 25 class AutofillMetrics; | 28 class AutofillMetrics; |
| 29 class AutofillPopupDelegate; |
| 26 class FormStructure; | 30 class FormStructure; |
| 27 class GURL; | 31 class GURL; |
| 28 class InfoBarService; | 32 class InfoBarService; |
| 29 class PersonalDataManager; | 33 class PersonalDataManager; |
| 30 class PrefService; | 34 class PrefService; |
| 31 class ProfileSyncServiceBase; | 35 class ProfileSyncServiceBase; |
| 32 | 36 |
| 33 struct FormData; | 37 struct FormData; |
| 34 | 38 |
| 35 namespace autofill { | 39 namespace autofill { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 101 |
| 98 // Causes the dialog for request autocomplete feature to be shown. | 102 // Causes the dialog for request autocomplete feature to be shown. |
| 99 virtual void ShowRequestAutocompleteDialog( | 103 virtual void ShowRequestAutocompleteDialog( |
| 100 const FormData& form, | 104 const FormData& form, |
| 101 const GURL& source_url, | 105 const GURL& source_url, |
| 102 const content::SSLStatus& ssl_status, | 106 const content::SSLStatus& ssl_status, |
| 103 const AutofillMetrics& metric_logger, | 107 const AutofillMetrics& metric_logger, |
| 104 DialogType dialog_type, | 108 DialogType dialog_type, |
| 105 const base::Callback<void(const FormStructure*)>& callback) = 0; | 109 const base::Callback<void(const FormStructure*)>& callback) = 0; |
| 106 | 110 |
| 107 // Called when the dialog for request autocomplete closes. | 111 // Called when the dialog for request autocomplete closes. (So UI code will |
| 112 // free memory, etc.) |
| 108 virtual void RequestAutocompleteDialogClosed() = 0; | 113 virtual void RequestAutocompleteDialogClosed() = 0; |
| 109 | 114 |
| 115 // Shows an Autofill popup with the given |values|, |labels|, |icons|, and |
| 116 // |identifiers| for the element at |element_bounds|. |delegate| will be |
| 117 // notified of popup events. |
| 118 virtual void ShowAutofillPopup(const gfx::RectF& element_bounds, |
| 119 const std::vector<string16>& values, |
| 120 const std::vector<string16>& labels, |
| 121 const std::vector<string16>& icons, |
| 122 const std::vector<int>& identifiers, |
| 123 AutofillPopupDelegate* delegate) = 0; |
| 124 |
| 125 // Hide the Autofill popup if one is currently showing. |
| 126 virtual void HideAutofillPopup() = 0; |
| 127 |
| 110 // Updates the Autocheckout progress bar. |value| must be in [0.0, 1.0]. | 128 // Updates the Autocheckout progress bar. |value| must be in [0.0, 1.0]. |
| 111 virtual void UpdateProgressBar(double value) = 0; | 129 virtual void UpdateProgressBar(double value) = 0; |
| 112 }; | 130 }; |
| 113 | 131 |
| 114 } // namespace autofill | 132 } // namespace autofill |
| 115 | 133 |
| 116 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_DELEGATE_H_ | 134 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_DELEGATE_H_ |
| OLD | NEW |