diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 01:53:34 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 01:53:34 +0000 |
commit | dafa2b0bdc19938e222a13eedecc598128daa93a (patch) | |
tree | 202a7422238e201719344030500fc645f1b2e55a /chrome/browser/renderer_host/render_view_host_delegate.h | |
parent | 6357e609331c79bda865ac4ec9301a3f0f59d9c7 (diff) | |
download | chromium_src-dafa2b0bdc19938e222a13eedecc598128daa93a.zip chromium_src-dafa2b0bdc19938e222a13eedecc598128daa93a.tar.gz chromium_src-dafa2b0bdc19938e222a13eedecc598128daa93a.tar.bz2 |
Display a warning when autofill is disabled for a website.
This depends on a WebKit change being tracked at https://bugs.webkit.org/show_bug.cgi?id=49291
BUG=58509
TEST=unit_tests --gtest_filter=AutoFillManagerTest.*:AutoFillHelperTest.*
Review URL: http://codereview.chromium.org/4591001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66214 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_view_host_delegate.h')
-rw-r--r-- | chrome/browser/renderer_host/render_view_host_delegate.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/chrome/browser/renderer_host/render_view_host_delegate.h b/chrome/browser/renderer_host/render_view_host_delegate.h index 020fadc..c3049e1 100644 --- a/chrome/browser/renderer_host/render_view_host_delegate.h +++ b/chrome/browser/renderer_host/render_view_host_delegate.h @@ -521,10 +521,7 @@ class RenderViewHostDelegate { // query. When the database thread is finished, the AutocompleteHistory // manager retrieves the calling RenderViewHost and then passes the vector // of suggestions to RenderViewHost::AutocompleteSuggestionsReturned. - // Returns true to indicate that FormFieldHistorySuggestionsReturned will be - // called. - virtual bool GetAutocompleteSuggestions(int query_id, - const string16& field_name, + virtual void GetAutocompleteSuggestions(const string16& field_name, const string16& user_text) = 0; // Called when the user has indicated that she wants to remove the specified @@ -549,13 +546,13 @@ class RenderViewHostDelegate { virtual void FormsSeen(const std::vector<webkit_glue::FormData>& forms) = 0; // Called to retrieve a list of AutoFill suggestions from the web database - // given the name of the field and what the user has already typed in the - // field. |form_autofilled| is true if the form containing |field| has any - // auto-filled fields. Returns true to indicate that - // RenderViewHost::AutoFillSuggestionsReturned has been called. + // given the name of the field, whether it is auto-filled, and what the user + // has already typed in it. If there is a warning to be returned to the + // user, it is stored into |values|, with corresponding unique id -1. + // Returns true to indicate that RenderViewHost::AutoFillSuggestionsReturned + // has been called. virtual bool GetAutoFillSuggestions( - int query_id, - bool form_autofilled, + bool field_autofilled, const webkit_glue::FormField& field) = 0; // Called to fill the FormData object with AutoFill profile information that |