| 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_CORE_BROWSER_AUTOFILL_DRIVER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "components/autofill/core/common/form_data.h" | 10 #include "components/autofill/core/common/form_data.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 // Transform bounding box coordinates to real viewport coordinates. In | 97 // Transform bounding box coordinates to real viewport coordinates. In |
| 98 // the case of a page spanning multiple renderer processes, subframe | 98 // the case of a page spanning multiple renderer processes, subframe |
| 99 // renderers cannot do this transformation themselves. | 99 // renderers cannot do this transformation themselves. |
| 100 virtual gfx::RectF TransformBoundingBoxToViewportCoordinates( | 100 virtual gfx::RectF TransformBoundingBoxToViewportCoordinates( |
| 101 const gfx::RectF& bounding_box) = 0; | 101 const gfx::RectF& bounding_box) = 0; |
| 102 | 102 |
| 103 // Called when the user interacted with a credit card form, so that | 103 // Called when the user interacted with a credit card form, so that |
| 104 // the current page's security state can be updated appropriately. | 104 // the current page's security state can be updated appropriately. |
| 105 virtual void DidInteractWithCreditCardForm() = 0; | 105 virtual void DidInteractWithCreditCardForm() = 0; |
| 106 |
| 107 // Tells the driver that the frame navigated to a different page. |
| 108 virtual void NavigatedToDifferentPage() {} |
| 106 }; | 109 }; |
| 107 | 110 |
| 108 } // namespace autofill | 111 } // namespace autofill |
| 109 | 112 |
| 110 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ | 113 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ |
| OLD | NEW |