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

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

Issue 8490017: Setting up external delegate calls to allow a future delegate to handle autofill (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removing unneeded IPC calls Created 9 years, 1 month 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
Index: chrome/browser/autofill/autofill_external_delegate.h
diff --git a/chrome/browser/autofill/autofill_external_delegate.h b/chrome/browser/autofill/autofill_external_delegate.h
index 7a88c9813fe7b074ce0d182cda22799134111131..9321af9d75502e4451095c8e78768166059d9c00 100644
--- a/chrome/browser/autofill/autofill_external_delegate.h
+++ b/chrome/browser/autofill/autofill_external_delegate.h
@@ -13,6 +13,10 @@
class AutofillManager;
class TabContentsWrapper;
+namespace gfx {
+class Rect;
+}
+
namespace webkit_glue {
struct FormData;
struct FormField;
@@ -38,6 +42,8 @@ class AutofillExternalDelegate {
// Records query results. Displays them to the user with an external
// Autofill popup that lives completely in the browser. Called when
// an Autofill query result is available.
+ // TODO(csharp): This should contain the logic found in
+ // AutofillAgent::OnSuggestionsReturned.
Ilya Sherman 2011/11/09 20:34:19 nit: Please add a link to http://crbug.com/51644 h
csharp 2011/11/10 18:09:32 Done.
virtual void OnSuggestionsReturned(
int query_id,
const std::vector<string16>& autofill_values,
@@ -45,6 +51,13 @@ class AutofillExternalDelegate {
const std::vector<string16>& autofill_icons,
const std::vector<int>& autofill_unique_ids) = 0;
+ // Set the bounds of the element we are providing the Autofill data
+ // for. The bounds are page-relative.
Ilya Sherman 2011/11/09 20:34:19 nit: Two spaces after a sentence-final period, ple
csharp 2011/11/10 18:09:32 Done. What is the reason for the two spaces? I do
Ilya Sherman 2011/11/10 21:19:41 Yeah, it's not defined one way or the other in the
+ virtual void SetAutofillElementBounds(const gfx::Rect& bounds) = 0;
+
+ // Hide the Autofill poup.
+ virtual void HideAutofillPopup() = 0;
+
// Platforms that wish to implement an external Autofill delegate
// MUST implement this. The 1st arg is the tab contents that owns
// this delegate; the second is the Autofill manager owned by the

Powered by Google App Engine
This is Rietveld 408576698