| 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 <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 const mojom::PasswordManagerDriverPtr& GetPasswordManagerDriver(); | 53 const mojom::PasswordManagerDriverPtr& GetPasswordManagerDriver(); |
| 54 | 54 |
| 55 // mojom::PasswordAutofillAgent: | 55 // mojom::PasswordAutofillAgent: |
| 56 void FillPasswordForm(int key, | 56 void FillPasswordForm(int key, |
| 57 const PasswordFormFillData& form_data) override; | 57 const PasswordFormFillData& form_data) override; |
| 58 void SetLoggingState(bool active) override; | 58 void SetLoggingState(bool active) override; |
| 59 void AutofillUsernameAndPasswordDataReceived( | 59 void AutofillUsernameAndPasswordDataReceived( |
| 60 const FormsPredictionsMap& predictions) override; | 60 const FormsPredictionsMap& predictions) override; |
| 61 void FindFocusedPasswordForm( | 61 void FindFocusedPasswordForm( |
| 62 const FindFocusedPasswordFormCallback& callback) override; | 62 FindFocusedPasswordFormCallback callback) override; |
| 63 | 63 |
| 64 // WebFrameClient editor related calls forwarded by AutofillAgent. | 64 // WebFrameClient editor related calls forwarded by AutofillAgent. |
| 65 // If they return true, it indicates the event was consumed and should not | 65 // If they return true, it indicates the event was consumed and should not |
| 66 // be used for any other autofill activity. | 66 // be used for any other autofill activity. |
| 67 bool TextDidChangeInTextField(const blink::WebInputElement& element); | 67 bool TextDidChangeInTextField(const blink::WebInputElement& element); |
| 68 | 68 |
| 69 // Function that should be called whenever the value of |element| changes due | 69 // Function that should be called whenever the value of |element| changes due |
| 70 // to user input. This is separate from TextDidChangeInTextField() as that | 70 // to user input. This is separate from TextDidChangeInTextField() as that |
| 71 // function may trigger UI and should only be called when other UI won't be | 71 // function may trigger UI and should only be called when other UI won't be |
| 72 // shown. | 72 // shown. |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 mojom::PasswordManagerDriverPtr password_manager_driver_; | 307 mojom::PasswordManagerDriverPtr password_manager_driver_; |
| 308 | 308 |
| 309 mojo::Binding<mojom::PasswordAutofillAgent> binding_; | 309 mojo::Binding<mojom::PasswordAutofillAgent> binding_; |
| 310 | 310 |
| 311 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 311 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
| 312 }; | 312 }; |
| 313 | 313 |
| 314 } // namespace autofill | 314 } // namespace autofill |
| 315 | 315 |
| 316 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 316 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| OLD | NEW |