| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Fills the username and password fields of this form with the given values. | 49 // Fills the username and password fields of this form with the given values. |
| 50 // Returns true if the fields were filled, false otherwise. | 50 // Returns true if the fields were filled, false otherwise. |
| 51 bool FillSuggestion(const blink::WebNode& node, | 51 bool FillSuggestion(const blink::WebNode& node, |
| 52 const blink::WebString& username, | 52 const blink::WebString& username, |
| 53 const blink::WebString& password); | 53 const blink::WebString& password); |
| 54 | 54 |
| 55 // Previews the username and password fields of this form with the given | 55 // Previews the username and password fields of this form with the given |
| 56 // values. Returns true if the fields were previewed, false otherwise. | 56 // values. Returns true if the fields were previewed, false otherwise. |
| 57 bool PreviewSuggestion(const blink::WebNode& node, | 57 bool PreviewSuggestion(const blink::WebNode& node, |
| 58 const blink::WebString& username, | 58 const blink::WebString& username, |
| 59 const blink::WebString& password); | 59 const blink::WebString& password, |
| 60 int match_start); |
| 60 | 61 |
| 61 // Clears the preview for the username and password fields, restoring both to | 62 // Clears the preview for the username and password fields, restoring both to |
| 62 // their previous filled state. Return false if no login information was | 63 // their previous filled state. Return false if no login information was |
| 63 // found for the form. | 64 // found for the form. |
| 64 bool DidClearAutofillSelection(const blink::WebNode& node); | 65 bool DidClearAutofillSelection(const blink::WebNode& node); |
| 65 | 66 |
| 66 // Shows an Autofill popup with username suggestions for |element|. If | 67 // Shows an Autofill popup with username suggestions for |element|. If |
| 67 // |show_all| is |true|, will show all possible suggestions for that element, | 68 // |show_all| is |true|, will show all possible suggestions for that element, |
| 68 // otherwise shows suggestions based on current value of |element|. | 69 // otherwise shows suggestions based on current value of |element|. |
| 69 // If |generation_popup_showing| is true, this function will return false | 70 // If |generation_popup_showing| is true, this function will return false |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 FormsPredictionsMap form_predictions_; | 300 FormsPredictionsMap form_predictions_; |
| 300 | 301 |
| 301 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 302 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
| 302 | 303 |
| 303 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 304 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
| 304 }; | 305 }; |
| 305 | 306 |
| 306 } // namespace autofill | 307 } // namespace autofill |
| 307 | 308 |
| 308 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 309 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| OLD | NEW |