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

Unified Diff: chrome/browser/autofill/autofill_manager_delegate.h

Issue 12340065: Move the UI related code from AutofillExternalDelegate to AutofillManagerDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try to fix AutofillTest.DisableAutocompleteWhileFilling Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/autofill/autofill_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_manager_delegate.h
diff --git a/chrome/browser/autofill/autofill_manager_delegate.h b/chrome/browser/autofill/autofill_manager_delegate.h
index 721dd8a64a8ee772b742bd3dae213e94c2dbd70c..f90835283a13cb8a5a6fcd9b0144f615f4a8f037 100644
--- a/chrome/browser/autofill/autofill_manager_delegate.h
+++ b/chrome/browser/autofill/autofill_manager_delegate.h
@@ -5,7 +5,10 @@
#ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_DELEGATE_H_
#define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_DELEGATE_H_
+#include <vector>
+
#include "base/callback_forward.h"
+#include "base/string16.h"
#include "ui/gfx/native_widget_types.h"
namespace autofill {
@@ -23,6 +26,7 @@ class RectF;
}
class AutofillMetrics;
+class AutofillPopupDelegate;
class FormStructure;
class GURL;
class InfoBarService;
@@ -104,9 +108,23 @@ class AutofillManagerDelegate {
DialogType dialog_type,
const base::Callback<void(const FormStructure*)>& callback) = 0;
- // Called when the dialog for request autocomplete closes.
+ // Called when the dialog for request autocomplete closes. (So UI code will
+ // free memory, etc.)
virtual void RequestAutocompleteDialogClosed() = 0;
+ // Shows an Autofill popup with the given |values|, |labels|, |icons|, and
+ // |identifiers| for the element at |element_bounds|. |delegate| will be
+ // notified of popup events.
+ virtual void ShowAutofillPopup(const gfx::RectF& element_bounds,
+ const std::vector<string16>& values,
+ const std::vector<string16>& labels,
+ const std::vector<string16>& icons,
+ const std::vector<int>& identifiers,
+ AutofillPopupDelegate* delegate) = 0;
+
+ // Hide the Autofill popup if one is currently showing.
+ virtual void HideAutofillPopup() = 0;
+
// Updates the Autocheckout progress bar. |value| must be in [0.0, 1.0].
virtual void UpdateProgressBar(double value) = 0;
};
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/autofill/autofill_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698