| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void RendererShouldClearPreviewedForm() override; | 64 void RendererShouldClearPreviewedForm() override; |
| 65 void RendererShouldFillFieldWithValue(const base::string16& value) override; | 65 void RendererShouldFillFieldWithValue(const base::string16& value) override; |
| 66 void RendererShouldPreviewFieldWithValue( | 66 void RendererShouldPreviewFieldWithValue( |
| 67 const base::string16& value) override; | 67 const base::string16& value) override; |
| 68 void PopupHidden() override; | 68 void PopupHidden() override; |
| 69 gfx::RectF TransformBoundingBoxToViewportCoordinates( | 69 gfx::RectF TransformBoundingBoxToViewportCoordinates( |
| 70 const gfx::RectF& bounding_box) override; | 70 const gfx::RectF& bounding_box) override; |
| 71 | 71 |
| 72 // mojom::AutofillDriver: | 72 // mojom::AutofillDriver: |
| 73 void FirstUserGestureObserved() override; | 73 void FirstUserGestureObserved() override; |
| 74 void FormsSeen(mojo::Array<FormData> forms, | 74 void FormsSeen(const std::vector<FormData>& forms, |
| 75 base::TimeTicks timestamp) override; | 75 base::TimeTicks timestamp) override; |
| 76 void WillSubmitForm(const FormData& form, base::TimeTicks timestamp) override; | 76 void WillSubmitForm(const FormData& form, base::TimeTicks timestamp) override; |
| 77 void FormSubmitted(const FormData& form) override; | 77 void FormSubmitted(const FormData& form) override; |
| 78 void TextFieldDidChange(const FormData& form, | 78 void TextFieldDidChange(const FormData& form, |
| 79 const FormFieldData& field, | 79 const FormFieldData& field, |
| 80 base::TimeTicks timestamp) override; | 80 base::TimeTicks timestamp) override; |
| 81 void QueryFormFieldAutofill(int32_t id, | 81 void QueryFormFieldAutofill(int32_t id, |
| 82 const FormData& form, | 82 const FormData& form, |
| 83 const FormFieldData& field, | 83 const FormFieldData& field, |
| 84 const gfx::RectF& bounding_box) override; | 84 const gfx::RectF& bounding_box) override; |
| 85 void HidePopup() override; | 85 void HidePopup() override; |
| 86 void PingAck() override; | 86 void PingAck() override; |
| 87 void FocusNoLongerOnForm() override; | 87 void FocusNoLongerOnForm() override; |
| 88 void DidFillAutofillFormData(const FormData& form, | 88 void DidFillAutofillFormData(const FormData& form, |
| 89 base::TimeTicks timestamp) override; | 89 base::TimeTicks timestamp) override; |
| 90 void DidPreviewAutofillFormData() override; | 90 void DidPreviewAutofillFormData() override; |
| 91 void DidEndTextFieldEditing() override; | 91 void DidEndTextFieldEditing() override; |
| 92 void SetDataList(mojo::Array<mojo::String> values, | 92 void SetDataList(const std::vector<base::string16>& values, |
| 93 mojo::Array<mojo::String> labels) override; | 93 const std::vector<base::string16>& labels) override; |
| 94 | 94 |
| 95 // Called when the frame has navigated. | 95 // Called when the frame has navigated. |
| 96 void DidNavigateFrame(const content::LoadCommittedDetails& details, | 96 void DidNavigateFrame(const content::LoadCommittedDetails& details, |
| 97 const content::FrameNavigateParams& params); | 97 const content::FrameNavigateParams& params); |
| 98 | 98 |
| 99 // Tells the render frame that a user gesture was observed | 99 // Tells the render frame that a user gesture was observed |
| 100 // somewhere in the tab (including in a different frame). | 100 // somewhere in the tab (including in a different frame). |
| 101 void NotifyFirstUserGestureObservedInTab(); | 101 void NotifyFirstUserGestureObservedInTab(); |
| 102 | 102 |
| 103 AutofillExternalDelegate* autofill_external_delegate() { | 103 AutofillExternalDelegate* autofill_external_delegate() { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 131 AutofillExternalDelegate autofill_external_delegate_; | 131 AutofillExternalDelegate autofill_external_delegate_; |
| 132 | 132 |
| 133 mojo::Binding<mojom::AutofillDriver> binding_; | 133 mojo::Binding<mojom::AutofillDriver> binding_; |
| 134 | 134 |
| 135 mojom::AutofillAgentPtr mojo_autofill_agent_; | 135 mojom::AutofillAgentPtr mojo_autofill_agent_; |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace autofill | 138 } // namespace autofill |
| 139 | 139 |
| 140 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ | 140 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ |
| OLD | NEW |