OLD | NEW |
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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 virtual void FormControlElementLostFocus() OVERRIDE; | 75 virtual void FormControlElementLostFocus() OVERRIDE; |
76 | 76 |
77 // blink::WebAutofillClient: | 77 // blink::WebAutofillClient: |
78 virtual void textFieldDidEndEditing( | 78 virtual void textFieldDidEndEditing( |
79 const blink::WebInputElement& element); | 79 const blink::WebInputElement& element); |
80 virtual void textFieldDidChange( | 80 virtual void textFieldDidChange( |
81 const blink::WebFormControlElement& element); | 81 const blink::WebFormControlElement& element); |
82 virtual void textFieldDidReceiveKeyDown( | 82 virtual void textFieldDidReceiveKeyDown( |
83 const blink::WebInputElement& element, | 83 const blink::WebInputElement& element, |
84 const blink::WebKeyboardEvent& event); | 84 const blink::WebKeyboardEvent& event); |
| 85 // TODO(estade): remove. |
85 virtual void didRequestAutocomplete( | 86 virtual void didRequestAutocomplete( |
86 const blink::WebFormElement& form, | 87 const blink::WebFormElement& form, |
87 const blink::WebAutocompleteParams& details); | 88 const blink::WebAutocompleteParams& details); |
| 89 virtual void didRequestAutocomplete( |
| 90 const blink::WebFormElement& form); |
88 virtual void setIgnoreTextChanges(bool ignore); | 91 virtual void setIgnoreTextChanges(bool ignore); |
89 virtual void didAssociateFormControls( | 92 virtual void didAssociateFormControls( |
90 const blink::WebVector<blink::WebNode>& nodes); | 93 const blink::WebVector<blink::WebNode>& nodes); |
91 virtual void openTextDataListChooser(const blink::WebInputElement& element); | 94 virtual void openTextDataListChooser(const blink::WebInputElement& element); |
92 virtual void firstUserGestureObserved(); | 95 virtual void firstUserGestureObserved(); |
93 | 96 |
94 void OnFieldTypePredictionsAvailable( | 97 void OnFieldTypePredictionsAvailable( |
95 const std::vector<FormDataPredictions>& forms); | 98 const std::vector<FormDataPredictions>& forms); |
96 void OnFillForm(int query_id, const FormData& form); | 99 void OnFillForm(int query_id, const FormData& form); |
97 void OnPreviewForm(int query_id, const FormData& form); | 100 void OnPreviewForm(int query_id, const FormData& form); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 NoCancelOnSubframeNavigateAfterDone); | 247 NoCancelOnSubframeNavigateAfterDone); |
245 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, | 248 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, |
246 InvokingTwiceOnlyShowsOnce); | 249 InvokingTwiceOnlyShowsOnce); |
247 | 250 |
248 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 251 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
249 }; | 252 }; |
250 | 253 |
251 } // namespace autofill | 254 } // namespace autofill |
252 | 255 |
253 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 256 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
OLD | NEW |