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

Side by Side Diff: chrome/renderer/autofill/autofill_agent.h

Issue 11348273: [autofill] Fill in values on a successful run of interactive autocomplete. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jhawkins@ review Created 8 years 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
« no previous file with comments | « chrome/common/form_data.cc ('k') | chrome/renderer/autofill/autofill_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ 5 #ifndef CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_
6 #define CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ 6 #define CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // For external Autofill selection. 105 // For external Autofill selection.
106 void OnSetAutofillActionFill(); 106 void OnSetAutofillActionFill();
107 void OnClearForm(); 107 void OnClearForm();
108 void OnSetAutofillActionPreview(); 108 void OnSetAutofillActionPreview();
109 void OnClearPreviewedForm(); 109 void OnClearPreviewedForm();
110 void OnSetNodeText(const string16& value); 110 void OnSetNodeText(const string16& value);
111 void OnAcceptDataListSuggestion(const string16& value); 111 void OnAcceptDataListSuggestion(const string16& value);
112 void OnAcceptPasswordAutofillSuggestion(const string16& value); 112 void OnAcceptPasswordAutofillSuggestion(const string16& value);
113 113
114 // For interactive autocomplete. 114 // For interactive autocomplete.
115 void OnRequestAutocompleteFinished( 115 void OnRequestAutocompleteSuccess(const FormData& form_data);
116 void OnRequestAutocompleteError();
117
118 // Called when an autocomplete request succeeds or fails with the |result|.
119 void FinishAutocompleteRequest(
116 WebKit::WebFormElement::AutocompleteResult result); 120 WebKit::WebFormElement::AutocompleteResult result);
117 121
118 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug 122 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug
119 // http://bugs.webkit.org/show_bug.cgi?id=16976 123 // http://bugs.webkit.org/show_bug.cgi?id=16976
120 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element); 124 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element);
121 125
122 // Shows the autofill suggestions for |element|. 126 // Shows the autofill suggestions for |element|.
123 // This call is asynchronous and may or may not lead to the showing of a 127 // This call is asynchronous and may or may not lead to the showing of a
124 // suggestion popup (no popup is shown if there are no available suggestions). 128 // suggestion popup (no popup is shown if there are no available suggestions).
125 // |autofill_on_empty_values| specifies whether suggestions should be shown 129 // |autofill_on_empty_values| specifies whether suggestions should be shown
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); 219 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername);
216 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); 220 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept);
217 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); 221 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect);
218 222
219 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 223 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
220 }; 224 };
221 225
222 } // namespace autofill 226 } // namespace autofill
223 227
224 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ 228 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_
OLDNEW
« no previous file with comments | « chrome/common/form_data.cc ('k') | chrome/renderer/autofill/autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698