| 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 20 matching lines...) Expand all Loading... |
| 31 virtual ~PasswordAutofillAgent(); | 31 virtual ~PasswordAutofillAgent(); |
| 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 |value|. Returns true if the | 41 // Fills the password associated with user name |username|. Returns true if |
| 42 // username and password fields were filled, false otherwise. | 42 // the username and password fields were filled, false otherwise. |
| 43 bool DidAcceptAutofillSuggestion(const blink::WebNode& node, | 43 bool DidAcceptAutofillSuggestion(const blink::WebNode& node, |
| 44 const blink::WebString& value); | 44 const blink::WebString& username); |
| 45 // A no-op. Password forms are not previewed, so they do not need to be | 45 // 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 | 46 // cleared when the selection changes. However, this method returns |
| 47 // true when |node| is fillable by password Autofill. | 47 // true when |node| is fillable by password Autofill. |
| 48 bool DidClearAutofillSelection(const blink::WebNode& node); | 48 bool DidClearAutofillSelection(const blink::WebNode& node); |
| 49 // Shows an Autofill popup with username suggestions for |element|. | 49 // Shows an Autofill popup with username suggestions for |element|. |
| 50 // Returns true if any suggestions were shown, false otherwise. | 50 // Returns true if any suggestions were shown, false otherwise. |
| 51 bool ShowSuggestions(const blink::WebInputElement& element); | 51 bool ShowSuggestions(const blink::WebInputElement& element); |
| 52 | 52 |
| 53 // Called when new form controls are inserted. | 53 // Called when new form controls are inserted. |
| 54 void OnDynamicFormsSeen(blink::WebFrame* frame); | 54 void OnDynamicFormsSeen(blink::WebFrame* frame); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 FrameToPasswordFormMap provisionally_saved_forms_; | 158 FrameToPasswordFormMap provisionally_saved_forms_; |
| 159 | 159 |
| 160 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 160 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
| 161 | 161 |
| 162 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 162 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 } // namespace autofill | 165 } // namespace autofill |
| 166 | 166 |
| 167 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 167 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| OLD | NEW |