| 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 COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 const base::Callback<void(const FormStructure*, | 125 const base::Callback<void(const FormStructure*, |
| 126 const std::string&)>& callback) = 0; | 126 const std::string&)>& callback) = 0; |
| 127 | 127 |
| 128 // Hide the Autocheckout bubble if one is currently showing. | 128 // Hide the Autocheckout bubble if one is currently showing. |
| 129 virtual void HideAutocheckoutBubble() = 0; | 129 virtual void HideAutocheckoutBubble() = 0; |
| 130 | 130 |
| 131 // Shows an Autofill popup with the given |values|, |labels|, |icons|, and | 131 // Shows an Autofill popup with the given |values|, |labels|, |icons|, and |
| 132 // |identifiers| for the element at |element_bounds|. |delegate| will be | 132 // |identifiers| for the element at |element_bounds|. |delegate| will be |
| 133 // notified of popup events. | 133 // notified of popup events. |
| 134 virtual void ShowAutofillPopup(const gfx::RectF& element_bounds, | 134 virtual void ShowAutofillPopup(const gfx::RectF& element_bounds, |
| 135 const std::vector<string16>& values, | 135 const std::vector<base::string16>& values, |
| 136 const std::vector<string16>& labels, | 136 const std::vector<base::string16>& labels, |
| 137 const std::vector<string16>& icons, | 137 const std::vector<base::string16>& icons, |
| 138 const std::vector<int>& identifiers, | 138 const std::vector<int>& identifiers, |
| 139 AutofillPopupDelegate* delegate) = 0; | 139 AutofillPopupDelegate* delegate) = 0; |
| 140 | 140 |
| 141 // Hide the Autofill popup if one is currently showing. | 141 // Hide the Autofill popup if one is currently showing. |
| 142 virtual void HideAutofillPopup() = 0; | 142 virtual void HideAutofillPopup() = 0; |
| 143 | 143 |
| 144 // Updates the Autocheckout progress bar. |value| must be in [0.0, 1.0]. | 144 // Updates the Autocheckout progress bar. |value| must be in [0.0, 1.0]. |
| 145 virtual void UpdateProgressBar(double value) = 0; | 145 virtual void UpdateProgressBar(double value) = 0; |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } // namespace autofill | 148 } // namespace autofill |
| 149 | 149 |
| 150 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ | 150 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ |
| OLD | NEW |