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_PASSWORD_AUTOFILL_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... | |
32 | 32 |
33 // WebViewClient editor related calls forwarded by the RenderView. | 33 // WebViewClient editor related calls forwarded by the RenderView. |
34 // If they return true, it indicates the event was consumed and should not | 34 // If they return true, it indicates the event was consumed and should not |
35 // be used for any other autofill activity. | 35 // be used for any other autofill activity. |
36 bool TextFieldDidEndEditing(const blink::WebInputElement& element); | 36 bool TextFieldDidEndEditing(const blink::WebInputElement& element); |
37 bool TextDidChangeInTextField(const blink::WebInputElement& element); | 37 bool TextDidChangeInTextField(const blink::WebInputElement& element); |
38 bool TextFieldHandlingKeyDown(const blink::WebInputElement& element, | 38 bool TextFieldHandlingKeyDown(const blink::WebInputElement& element, |
39 const blink::WebKeyboardEvent& event); | 39 const blink::WebKeyboardEvent& event); |
40 | 40 |
41 // Fills the password associated with user name |username|. Returns true if | 41 // Fills the password associated with user name |username|. Returns true if |
42 // the username and password fields were filled, false otherwise. | 42 // the username and password fields were filled, false otherwise. |
Ilya Sherman
2014/03/18 00:14:27
nit: Please update this comment.
Patrick Dubroy
2014/03/28 15:44:22
Done.
| |
43 bool DidAcceptAutofillSuggestion(const blink::WebNode& node, | 43 bool AcceptAutofillSuggestionWithPassword(const blink::WebNode& node, |
Ilya Sherman
2014/03/18 00:14:27
Optional nit: I'd shorten this name to just "Accep
Patrick Dubroy
2014/03/28 15:44:22
I shortened to just AcceptAutofillSuggestion, if t
Ilya Sherman
2014/03/28 21:33:34
Since this class is the password *autofill* agent,
Patrick Dubroy
2014/04/01 16:08:48
Ok, I agree. Changed. (In fairness, Vaclav didn't
| |
44 const blink::WebString& username); | 44 const blink::WebString& username, |
45 const blink::WebString& password); | |
46 | |
45 // A no-op. Password forms are not previewed, so they do not need to be | 47 // A no-op. Password forms are not previewed, so they do not need to be |
46 // cleared when the selection changes. However, this method returns | 48 // cleared when the selection changes. However, this method returns |
47 // true when |node| is fillable by password Autofill. | 49 // true when |node| is fillable by password Autofill. |
48 bool DidClearAutofillSelection(const blink::WebNode& node); | 50 bool DidClearAutofillSelection(const blink::WebNode& node); |
49 // Shows an Autofill popup with username suggestions for |element|. | 51 // Shows an Autofill popup with username suggestions for |element|. |
50 // Returns true if any suggestions were shown, false otherwise. | 52 // Returns true if any suggestions were shown, false otherwise. |
51 bool ShowSuggestions(const blink::WebInputElement& element); | 53 bool ShowSuggestions(const blink::WebInputElement& element); |
52 | 54 |
53 // Called when new form controls are inserted. | 55 // Called when new form controls are inserted. |
54 void OnDynamicFormsSeen(blink::WebFrame* frame); | 56 void OnDynamicFormsSeen(blink::WebFrame* frame); |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
190 PasswordValueGatekeeper gatekeeper_; | 192 PasswordValueGatekeeper gatekeeper_; |
191 | 193 |
192 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 194 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
193 | 195 |
194 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 196 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
195 }; | 197 }; |
196 | 198 |
197 } // namespace autofill | 199 } // namespace autofill |
198 | 200 |
199 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 201 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
OLD | NEW |