Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: components/autofill/browser/autofill_manager_delegate.h

Issue 12457033: Implements SendAutocheckoutStatus API calls for stats tracking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing unit tests Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 const gfx::RectF& bounding_box, 118 const gfx::RectF& bounding_box,
119 const gfx::NativeView& native_view, 119 const gfx::NativeView& native_view,
120 const base::Callback<void(bool)>& callback) = 0; 120 const base::Callback<void(bool)>& callback) = 0;
121 121
122 // Causes the dialog for request autocomplete feature to be shown. 122 // Causes the dialog for request autocomplete feature to be shown.
123 virtual void ShowRequestAutocompleteDialog( 123 virtual void ShowRequestAutocompleteDialog(
124 const FormData& form, 124 const FormData& form,
125 const GURL& source_url, 125 const GURL& source_url,
126 const AutofillMetrics& metric_logger, 126 const AutofillMetrics& metric_logger,
127 DialogType dialog_type, 127 DialogType dialog_type,
128 const base::Callback<void(const FormStructure*)>& callback) = 0; 128 const base::Callback<void(const FormStructure*,
129 const std::string&)>& callback) = 0;
129 130
130 // Hide the Autocheckout bubble if one is currently showing. 131 // Hide the Autocheckout bubble if one is currently showing.
131 virtual void HideAutocheckoutBubble() = 0; 132 virtual void HideAutocheckoutBubble() = 0;
132 133
133 // Called when the dialog for request autocomplete closes. (So UI code will 134 // Called when the dialog for request autocomplete closes. (So UI code will
134 // free memory, etc.) 135 // free memory, etc.)
135 virtual void RequestAutocompleteDialogClosed() = 0; 136 virtual void RequestAutocompleteDialogClosed() = 0;
136 137
137 // Shows an Autofill popup with the given |values|, |labels|, |icons|, and 138 // Shows an Autofill popup with the given |values|, |labels|, |icons|, and
138 // |identifiers| for the element at |element_bounds|. |delegate| will be 139 // |identifiers| for the element at |element_bounds|. |delegate| will be
139 // notified of popup events. 140 // notified of popup events.
140 virtual void ShowAutofillPopup(const gfx::RectF& element_bounds, 141 virtual void ShowAutofillPopup(const gfx::RectF& element_bounds,
141 const std::vector<string16>& values, 142 const std::vector<string16>& values,
142 const std::vector<string16>& labels, 143 const std::vector<string16>& labels,
143 const std::vector<string16>& icons, 144 const std::vector<string16>& icons,
144 const std::vector<int>& identifiers, 145 const std::vector<int>& identifiers,
145 AutofillPopupDelegate* delegate) = 0; 146 AutofillPopupDelegate* delegate) = 0;
146 147
147 // Hide the Autofill popup if one is currently showing. 148 // Hide the Autofill popup if one is currently showing.
148 virtual void HideAutofillPopup() = 0; 149 virtual void HideAutofillPopup() = 0;
149 150
150 // Updates the Autocheckout progress bar. |value| must be in [0.0, 1.0]. 151 // Updates the Autocheckout progress bar. |value| must be in [0.0, 1.0].
151 virtual void UpdateProgressBar(double value) = 0; 152 virtual void UpdateProgressBar(double value) = 0;
152 }; 153 };
153 154
154 } // namespace autofill 155 } // namespace autofill
155 156
156 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ 157 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/autofill/browser/autofill_manager.cc ('k') | components/autofill/browser/test_autofill_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698