| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 void OnFillForm(int query_id, const FormData& form); | 94 void OnFillForm(int query_id, const FormData& form); |
| 95 void OnPreviewForm(int query_id, const FormData& form); | 95 void OnPreviewForm(int query_id, const FormData& form); |
| 96 | 96 |
| 97 // For external Autofill selection. | 97 // For external Autofill selection. |
| 98 void OnClearForm(); | 98 void OnClearForm(); |
| 99 void OnClearPreviewedForm(); | 99 void OnClearPreviewedForm(); |
| 100 void OnFillFieldWithValue(const base::string16& value); | 100 void OnFillFieldWithValue(const base::string16& value); |
| 101 void OnPreviewFieldWithValue(const base::string16& value); | 101 void OnPreviewFieldWithValue(const base::string16& value); |
| 102 void OnAcceptDataListSuggestion(const base::string16& value); | 102 void OnAcceptDataListSuggestion(const base::string16& value); |
| 103 void OnAcceptPasswordAutofillSuggestion(const base::string16& username); | 103 void OnAcceptPasswordAutofillSuggestion(const base::string16& username); |
| 104 void OnPreviewPassword(const base::string16& username); |
| 104 | 105 |
| 105 // Called when interactive autocomplete finishes. | 106 // Called when interactive autocomplete finishes. |
| 106 void OnRequestAutocompleteResult( | 107 void OnRequestAutocompleteResult( |
| 107 blink::WebFormElement::AutocompleteResult result, | 108 blink::WebFormElement::AutocompleteResult result, |
| 108 const FormData& form_data); | 109 const FormData& form_data); |
| 109 | 110 |
| 110 // Called when an autocomplete request succeeds or fails with the |result|. | 111 // Called when an autocomplete request succeeds or fails with the |result|. |
| 111 void FinishAutocompleteRequest( | 112 void FinishAutocompleteRequest( |
| 112 blink::WebFormElement::AutocompleteResult result); | 113 blink::WebFormElement::AutocompleteResult result); |
| 113 | 114 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 NoCancelOnSubframeNavigateAfterDone); | 235 NoCancelOnSubframeNavigateAfterDone); |
| 235 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, | 236 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, |
| 236 InvokingTwiceOnlyShowsOnce); | 237 InvokingTwiceOnlyShowsOnce); |
| 237 | 238 |
| 238 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 239 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
| 239 }; | 240 }; |
| 240 | 241 |
| 241 } // namespace autofill | 242 } // namespace autofill |
| 242 | 243 |
| 243 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 244 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
| OLD | NEW |