OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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_BROWSER_AUTOFILL_PROVIDER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_PROVIDER_H_ |
| 7 |
| 8 #include "base/time/time.h" |
| 9 #include "components/autofill/core/common/form_data.h" |
| 10 |
| 11 namespace gfx { |
| 12 class RectF; |
| 13 } |
| 14 |
| 15 namespace autofill { |
| 16 |
| 17 class ContentAutofillDriver; |
| 18 |
| 19 class AutofillProvider { |
| 20 public: |
| 21 AutofillProvider(); |
| 22 virtual ~AutofillProvider(); |
| 23 virtual void OnQueryFormFieldAutofill(ContentAutofillDriver* driver, |
| 24 int32_t id, |
| 25 const FormData& form, |
| 26 const FormFieldData& field, |
| 27 const gfx::RectF& bounding_box) = 0; |
| 28 |
| 29 virtual void OnTextFieldDidChange(ContentAutofillDriver* driver, |
| 30 const FormData& form, |
| 31 const FormFieldData& field, |
| 32 const base::TimeTicks& timestamp) = 0; |
| 33 |
| 34 virtual void OnWillSubmitForm(ContentAutofillDriver* driver, |
| 35 const FormData& form, |
| 36 const base::TimeTicks& timestamp) = 0; |
| 37 |
| 38 virtual void OnFocusNoLongerOnForm(ContentAutofillDriver* driver) = 0; |
| 39 |
| 40 virtual void OnContentAutofillDriverDestroyed( |
| 41 ContentAutofillDriver* driver) = 0; |
| 42 |
| 43 virtual void OnDidFillAutofillFormData(ContentAutofillDriver* driver, |
| 44 const FormData& form, |
| 45 base::TimeTicks timestamp) = 0; |
| 46 |
| 47 void SendFormDataToRenderer(ContentAutofillDriver* driver, |
| 48 int requestId, |
| 49 const FormData& formData); |
| 50 }; |
| 51 |
| 52 } |
| 53 |
| 54 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_PROVIDER_H_ |
OLD | NEW |