OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/autofill/content/renderer/test_autofill_agent.h" |
| 6 |
| 7 #include "components/autofill/content/renderer/password_autofill_agent.h" |
| 8 #include "components/autofill/content/renderer/password_generation_agent.h" |
| 9 #include "content/public/renderer/render_view.h" |
| 10 |
| 11 namespace autofill { |
| 12 |
| 13 TestAutofillAgent::TestAutofillAgent( |
| 14 content::RenderView* render_view, |
| 15 PasswordAutofillAgent* password_autofill_manager, |
| 16 PasswordGenerationAgent* password_generation_agent) |
| 17 : AutofillAgent(render_view, |
| 18 password_autofill_manager, |
| 19 password_generation_agent) { |
| 20 } |
| 21 |
| 22 TestAutofillAgent::~TestAutofillAgent() { |
| 23 } |
| 24 |
| 25 void TestAutofillAgent::textFieldDidEndEditing( |
| 26 const blink::WebInputElement& element) { |
| 27 AutofillAgent::textFieldDidEndEditing(element); |
| 28 } |
| 29 |
| 30 void TestAutofillAgent::textFieldDidChange( |
| 31 const blink::WebFormControlElement& element) { |
| 32 AutofillAgent::textFieldDidChange(element); |
| 33 } |
| 34 |
| 35 void TestAutofillAgent::FormControlElementClicked( |
| 36 const blink::WebFormControlElement& element, |
| 37 bool was_focused) { |
| 38 AutofillAgent::FormControlElementClicked(element, was_focused); |
| 39 } |
| 40 |
| 41 void TestAutofillAgent::textFieldDidReceiveKeyDown( |
| 42 const blink::WebInputElement& element, |
| 43 const blink::WebKeyboardEvent& event) { |
| 44 AutofillAgent::textFieldDidReceiveKeyDown(element, event); |
| 45 } |
| 46 |
| 47 void TestAutofillAgent::didRequestAutocomplete( |
| 48 const blink::WebFormElement& form) { |
| 49 AutofillAgent::didRequestAutocomplete(form); |
| 50 } |
| 51 |
| 52 void TestAutofillAgent::OnFillPasswordSuggestion( |
| 53 const base::string16& username, |
| 54 const base::string16& password) { |
| 55 AutofillAgent::OnFillPasswordSuggestion(username, password); |
| 56 } |
| 57 |
| 58 void TestAutofillAgent::OnRequestAutocompleteResult( |
| 59 blink::WebFormElement::AutocompleteResult result, |
| 60 const base::string16& message, |
| 61 const FormData& form_data) { |
| 62 AutofillAgent::OnRequestAutocompleteResult(result, message, form_data); |
| 63 } |
| 64 |
| 65 } // namespace autofill |
OLD | NEW |