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

Side by Side Diff: components/autofill/content/renderer/autofill_agent.h

Issue 1931043002: Remove requestAutocomplete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // PageClickListener: 138 // PageClickListener:
139 void FormControlElementClicked(const blink::WebFormControlElement& element, 139 void FormControlElementClicked(const blink::WebFormControlElement& element,
140 bool was_focused) override; 140 bool was_focused) override;
141 141
142 // blink::WebAutofillClient: 142 // blink::WebAutofillClient:
143 void textFieldDidEndEditing(const blink::WebInputElement& element) override; 143 void textFieldDidEndEditing(const blink::WebInputElement& element) override;
144 void textFieldDidChange(const blink::WebFormControlElement& element) override; 144 void textFieldDidChange(const blink::WebFormControlElement& element) override;
145 void textFieldDidReceiveKeyDown( 145 void textFieldDidReceiveKeyDown(
146 const blink::WebInputElement& element, 146 const blink::WebInputElement& element,
147 const blink::WebKeyboardEvent& event) override; 147 const blink::WebKeyboardEvent& event) override;
148 void didRequestAutocomplete(const blink::WebFormElement& form) override;
149 void setIgnoreTextChanges(bool ignore) override; 148 void setIgnoreTextChanges(bool ignore) override;
150 void didAssociateFormControls( 149 void didAssociateFormControls(
151 const blink::WebVector<blink::WebNode>& nodes) override; 150 const blink::WebVector<blink::WebNode>& nodes) override;
152 void openTextDataListChooser(const blink::WebInputElement& element) override; 151 void openTextDataListChooser(const blink::WebInputElement& element) override;
153 void dataListOptionsChanged(const blink::WebInputElement& element) override; 152 void dataListOptionsChanged(const blink::WebInputElement& element) override;
154 void firstUserGestureObserved() override; 153 void firstUserGestureObserved() override;
155 void ajaxSucceeded() override; 154 void ajaxSucceeded() override;
156 155
157 void OnFieldTypePredictionsAvailable( 156 void OnFieldTypePredictionsAvailable(
158 const std::vector<FormDataPredictions>& forms); 157 const std::vector<FormDataPredictions>& forms);
(...skipping 11 matching lines...) Expand all
170 void OnPreviewFieldWithValue(const base::string16& value); 169 void OnPreviewFieldWithValue(const base::string16& value);
171 void OnAcceptDataListSuggestion(const base::string16& value); 170 void OnAcceptDataListSuggestion(const base::string16& value);
172 void OnFillPasswordSuggestion(const base::string16& username, 171 void OnFillPasswordSuggestion(const base::string16& username,
173 const base::string16& password); 172 const base::string16& password);
174 void OnPreviewPasswordSuggestion(const base::string16& username, 173 void OnPreviewPasswordSuggestion(const base::string16& username,
175 const base::string16& password); 174 const base::string16& password);
176 175
177 // Called when a same-page navigation is detected. 176 // Called when a same-page navigation is detected.
178 void OnSamePageNavigationCompleted(); 177 void OnSamePageNavigationCompleted();
179 178
180 // Called when interactive autocomplete finishes. |message| is printed to
181 // the console if non-empty.
182 void OnRequestAutocompleteResult(
183 blink::WebFormElement::AutocompleteResult result,
184 const base::string16& message,
185 const FormData& form_data);
186
187 // Called when an autocomplete request succeeds or fails with the |result|.
188 void FinishAutocompleteRequest(
189 blink::WebFormElement::AutocompleteResult result);
190
191 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug 179 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug
192 // http://bugs.webkit.org/show_bug.cgi?id=16976 180 // http://bugs.webkit.org/show_bug.cgi?id=16976
193 void TextFieldDidChangeImpl(const blink::WebFormControlElement& element); 181 void TextFieldDidChangeImpl(const blink::WebFormControlElement& element);
194 182
195 // Shows the autofill suggestions for |element|. This call is asynchronous 183 // Shows the autofill suggestions for |element|. This call is asynchronous
196 // and may or may not lead to the showing of a suggestion popup (no popup is 184 // and may or may not lead to the showing of a suggestion popup (no popup is
197 // shown if there are no available suggestions). 185 // shown if there are no available suggestions).
198 void ShowSuggestions(const blink::WebFormControlElement& element, 186 void ShowSuggestions(const blink::WebFormControlElement& element,
199 const ShowSuggestionsOptions& options); 187 const ShowSuggestionsOptions& options);
200 188
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 mojom::AutofillDriverPtr mojo_autofill_driver_; 285 mojom::AutofillDriverPtr mojo_autofill_driver_;
298 286
299 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 287 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
300 288
301 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 289 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
302 }; 290 };
303 291
304 } // namespace autofill 292 } // namespace autofill
305 293
306 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 294 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW
« no previous file with comments | « components/autofill/content/common/autofill_messages.h ('k') | components/autofill/content/renderer/autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698