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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 const std::vector<FormDataPredictions>& forms); | 96 const std::vector<FormDataPredictions>& forms); |
97 void OnFillForm(int query_id, const FormData& form); | 97 void OnFillForm(int query_id, const FormData& form); |
98 void OnPreviewForm(int query_id, const FormData& form); | 98 void OnPreviewForm(int query_id, const FormData& form); |
99 | 99 |
100 // For external Autofill selection. | 100 // For external Autofill selection. |
101 void OnClearForm(); | 101 void OnClearForm(); |
102 void OnClearPreviewedForm(); | 102 void OnClearPreviewedForm(); |
103 void OnFillFieldWithValue(const base::string16& value); | 103 void OnFillFieldWithValue(const base::string16& value); |
104 void OnPreviewFieldWithValue(const base::string16& value); | 104 void OnPreviewFieldWithValue(const base::string16& value); |
105 void OnAcceptDataListSuggestion(const base::string16& value); | 105 void OnAcceptDataListSuggestion(const base::string16& value); |
106 void OnAcceptPasswordAutofillSuggestion(const base::string16& username); | 106 void OnAcceptPasswordAutofillSuggestion(const base::string16& username, |
| 107 const base::string16& password); |
107 | 108 |
108 // Called when interactive autocomplete finishes. |message| is printed to | 109 // Called when interactive autocomplete finishes. |message| is printed to |
109 // the console if non-empty. | 110 // the console if non-empty. |
110 void OnRequestAutocompleteResult( | 111 void OnRequestAutocompleteResult( |
111 blink::WebFormElement::AutocompleteResult result, | 112 blink::WebFormElement::AutocompleteResult result, |
112 const base::string16& message, | 113 const base::string16& message, |
113 const FormData& form_data); | 114 const FormData& form_data); |
114 | 115 |
115 // Called when an autocomplete request succeeds or fails with the |result|. | 116 // Called when an autocomplete request succeeds or fails with the |result|. |
116 void FinishAutocompleteRequest( | 117 void FinishAutocompleteRequest( |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 NoCancelOnSubframeNavigateAfterDone); | 240 NoCancelOnSubframeNavigateAfterDone); |
240 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, | 241 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, |
241 InvokingTwiceOnlyShowsOnce); | 242 InvokingTwiceOnlyShowsOnce); |
242 | 243 |
243 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 244 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
244 }; | 245 }; |
245 | 246 |
246 } // namespace autofill | 247 } // namespace autofill |
247 | 248 |
248 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 249 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
OLD | NEW |