| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 const base::string16& value) override; | 60 const base::string16& value) override; |
| 61 void RendererShouldClearFilledForm() override; | 61 void RendererShouldClearFilledForm() override; |
| 62 void RendererShouldClearPreviewedForm() override; | 62 void RendererShouldClearPreviewedForm() override; |
| 63 void RendererShouldFillFieldWithValue(const base::string16& value) override; | 63 void RendererShouldFillFieldWithValue(const base::string16& value) override; |
| 64 void RendererShouldPreviewFieldWithValue( | 64 void RendererShouldPreviewFieldWithValue( |
| 65 const base::string16& value) override; | 65 const base::string16& value) override; |
| 66 void PopupHidden() override; | 66 void PopupHidden() override; |
| 67 gfx::RectF TransformBoundingBoxToViewportCoordinates( | 67 gfx::RectF TransformBoundingBoxToViewportCoordinates( |
| 68 const gfx::RectF& bounding_box) override; | 68 const gfx::RectF& bounding_box) override; |
| 69 void DidInteractWithCreditCardForm() override; | 69 void DidInteractWithCreditCardForm() override; |
| 70 void NotifyFirstUserGestureObservedInTab() override; |
| 70 | 71 |
| 71 // mojom::AutofillDriver: | 72 // mojom::AutofillDriver: |
| 72 void FirstUserGestureObserved() override; | 73 void FirstUserGestureObserved() override; |
| 73 void FormsSeen(const std::vector<FormData>& forms, | 74 void FormsSeen(const std::vector<FormData>& forms, |
| 74 base::TimeTicks timestamp) override; | 75 base::TimeTicks timestamp) override; |
| 75 void WillSubmitForm(const FormData& form, base::TimeTicks timestamp) override; | 76 void WillSubmitForm(const FormData& form, base::TimeTicks timestamp) override; |
| 76 void FormSubmitted(const FormData& form) override; | 77 void FormSubmitted(const FormData& form) override; |
| 77 void TextFieldDidChange(const FormData& form, | 78 void TextFieldDidChange(const FormData& form, |
| 78 const FormFieldData& field, | 79 const FormFieldData& field, |
| 79 base::TimeTicks timestamp) override; | 80 base::TimeTicks timestamp) override; |
| 80 void QueryFormFieldAutofill(int32_t id, | 81 void QueryFormFieldAutofill(int32_t id, |
| 81 const FormData& form, | 82 const FormData& form, |
| 82 const FormFieldData& field, | 83 const FormFieldData& field, |
| 83 const gfx::RectF& bounding_box) override; | 84 const gfx::RectF& bounding_box) override; |
| 84 void HidePopup() override; | 85 void HidePopup() override; |
| 85 void FocusNoLongerOnForm() override; | 86 void FocusNoLongerOnForm() override; |
| 86 void DidFillAutofillFormData(const FormData& form, | 87 void DidFillAutofillFormData(const FormData& form, |
| 87 base::TimeTicks timestamp) override; | 88 base::TimeTicks timestamp) override; |
| 88 void DidPreviewAutofillFormData() override; | 89 void DidPreviewAutofillFormData() override; |
| 89 void DidEndTextFieldEditing() override; | 90 void DidEndTextFieldEditing() override; |
| 90 void SetDataList(const std::vector<base::string16>& values, | 91 void SetDataList(const std::vector<base::string16>& values, |
| 91 const std::vector<base::string16>& labels) override; | 92 const std::vector<base::string16>& labels) override; |
| 92 | 93 |
| 93 // Called when the frame has navigated. | 94 // Called when the frame has navigated. |
| 94 void DidNavigateFrame(content::NavigationHandle* navigation_handle); | 95 void DidNavigateFrame(content::NavigationHandle* navigation_handle); |
| 95 | 96 |
| 96 // Tells the render frame that a user gesture was observed | |
| 97 // somewhere in the tab (including in a different frame). | |
| 98 void NotifyFirstUserGestureObservedInTab(); | |
| 99 | |
| 100 AutofillExternalDelegate* autofill_external_delegate() { | 97 AutofillExternalDelegate* autofill_external_delegate() { |
| 101 return &autofill_external_delegate_; | 98 return &autofill_external_delegate_; |
| 102 } | 99 } |
| 103 | 100 |
| 104 AutofillManager* autofill_manager() { return autofill_manager_.get(); } | 101 AutofillManager* autofill_manager() { return autofill_manager_.get(); } |
| 105 content::RenderFrameHost* render_frame_host() { return render_frame_host_; } | 102 content::RenderFrameHost* render_frame_host() { return render_frame_host_; } |
| 106 | 103 |
| 107 const mojom::AutofillAgentPtr& GetAutofillAgent(); | 104 const mojom::AutofillAgentPtr& GetAutofillAgent(); |
| 108 | 105 |
| 109 protected: | 106 protected: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 128 AutofillExternalDelegate autofill_external_delegate_; | 125 AutofillExternalDelegate autofill_external_delegate_; |
| 129 | 126 |
| 130 mojo::Binding<mojom::AutofillDriver> binding_; | 127 mojo::Binding<mojom::AutofillDriver> binding_; |
| 131 | 128 |
| 132 mojom::AutofillAgentPtr autofill_agent_; | 129 mojom::AutofillAgentPtr autofill_agent_; |
| 133 }; | 130 }; |
| 134 | 131 |
| 135 } // namespace autofill | 132 } // namespace autofill |
| 136 | 133 |
| 137 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ | 134 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ |
| OLD | NEW |