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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 const blink::WebAutocompleteParams& details); | 87 const blink::WebAutocompleteParams& details); |
88 virtual void setIgnoreTextChanges(bool ignore); | 88 virtual void setIgnoreTextChanges(bool ignore); |
89 virtual void didAssociateFormControls( | 89 virtual void didAssociateFormControls( |
90 const blink::WebVector<blink::WebNode>& nodes); | 90 const blink::WebVector<blink::WebNode>& nodes); |
91 virtual void openTextDataListChooser(const blink::WebInputElement& element); | 91 virtual void openTextDataListChooser(const blink::WebInputElement& element); |
92 virtual void firstUserGestureObserved(); | 92 virtual void firstUserGestureObserved(); |
93 | 93 |
94 void OnFieldTypePredictionsAvailable( | 94 void OnFieldTypePredictionsAvailable( |
95 const std::vector<FormDataPredictions>& forms); | 95 const std::vector<FormDataPredictions>& forms); |
96 void OnFillForm(int query_id, const FormData& form); | 96 void OnFillForm(int query_id, const FormData& form); |
| 97 void OnPing(); |
97 void OnPreviewForm(int query_id, const FormData& form); | 98 void OnPreviewForm(int query_id, const FormData& form); |
98 | 99 |
99 // For external Autofill selection. | 100 // For external Autofill selection. |
100 void OnClearForm(); | 101 void OnClearForm(); |
101 void OnClearPreviewedForm(); | 102 void OnClearPreviewedForm(); |
102 void OnFillFieldWithValue(const base::string16& value); | 103 void OnFillFieldWithValue(const base::string16& value); |
103 void OnPreviewFieldWithValue(const base::string16& value); | 104 void OnPreviewFieldWithValue(const base::string16& value); |
104 void OnAcceptDataListSuggestion(const base::string16& value); | 105 void OnAcceptDataListSuggestion(const base::string16& value); |
105 void OnAcceptPasswordAutofillSuggestion(const base::string16& username, | 106 void OnAcceptPasswordAutofillSuggestion(const base::string16& username, |
106 const base::string16& password); | 107 const base::string16& password); |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 NoCancelOnSubframeNavigateAfterDone); | 245 NoCancelOnSubframeNavigateAfterDone); |
245 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, | 246 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, |
246 InvokingTwiceOnlyShowsOnce); | 247 InvokingTwiceOnlyShowsOnce); |
247 | 248 |
248 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 249 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
249 }; | 250 }; |
250 | 251 |
251 } // namespace autofill | 252 } // namespace autofill |
252 | 253 |
253 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 254 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
OLD | NEW |