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 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_AUTOFILL_AGENT_H_ | |
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_AUTOFILL_AGENT_H_ | |
7 | |
8 #include "components/autofill/content/renderer/autofill_agent.h" | |
9 | |
10 namespace content { | |
11 class RenderView; | |
12 } | |
13 | |
14 namespace autofill { | |
15 | |
16 class PasswordAutofillAgent; | |
17 class PasswordGenerationAgent; | |
18 | |
19 class TestAutofillAgent : public AutofillAgent { | |
20 public: | |
21 TestAutofillAgent(content::RenderView* render_view, | |
22 PasswordAutofillAgent* password_autofill_manager, | |
23 PasswordGenerationAgent* password_generation_agent); | |
24 virtual ~TestAutofillAgent(); | |
25 | |
26 // AutofillAgent: | |
27 virtual void FormControlElementClicked( | |
28 const blink::WebFormControlElement& element, | |
29 bool was_focused) OVERRIDE; | |
30 virtual void textFieldDidEndEditing( | |
31 const blink::WebInputElement& element) OVERRIDE; | |
32 virtual void textFieldDidChange( | |
33 const blink::WebFormControlElement& element) OVERRIDE; | |
34 virtual void textFieldDidReceiveKeyDown( | |
35 const blink::WebInputElement& element, | |
36 const blink::WebKeyboardEvent& event) OVERRIDE; | |
37 virtual void didRequestAutocomplete( | |
38 const blink::WebFormElement& form) OVERRIDE; | |
39 | |
40 virtual void OnFillPasswordSuggestion( | |
vabr (Chromium)
2014/09/15 14:26:59
Instead of re-defining the methods and calling the
tfarina
2014/09/15 16:23:36
are you suggesting to use "using ..." in the heade
Pritam Nikam
2014/09/16 07:54:20
Done.
| |
41 const base::string16& username, | |
42 const base::string16& password) OVERRIDE; | |
43 virtual void OnRequestAutocompleteResult( | |
44 blink::WebFormElement::AutocompleteResult result, | |
45 const base::string16& message, | |
46 const FormData& form_data) OVERRIDE; | |
47 }; | |
48 | |
49 } // namespace autofill | |
50 | |
51 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_AUTOFILL_AGENT_H_ | |
OLD | NEW |