Chromium Code Reviews| 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 |