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" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 class SequencedWorkerPool; | 13 class SequencedWorkerPool; |
14 } | 14 } |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 class URLRequestContextGetter; | 17 class URLRequestContextGetter; |
18 } | 18 } |
19 | 19 |
20 namespace gfx { | |
21 class RectF; | |
22 } | |
23 | |
20 namespace autofill { | 24 namespace autofill { |
21 | 25 |
22 class FormStructure; | 26 class FormStructure; |
23 | 27 |
24 // Interface that allows Autofill core code to interact with its driver (i.e., | 28 // Interface that allows Autofill core code to interact with its driver (i.e., |
25 // obtain information from it and give information to it). A concrete | 29 // obtain information from it and give information to it). A concrete |
26 // implementation must be provided by the driver. | 30 // implementation must be provided by the driver. |
27 class AutofillDriver { | 31 class AutofillDriver { |
28 public: | 32 public: |
29 // The possible actions that the renderer can take on receiving form data. | 33 // The possible actions that the renderer can take on receiving form data. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 // Tells the renderer to set the node text. | 86 // Tells the renderer to set the node text. |
83 virtual void RendererShouldFillFieldWithValue( | 87 virtual void RendererShouldFillFieldWithValue( |
84 const base::string16& value) = 0; | 88 const base::string16& value) = 0; |
85 | 89 |
86 // Tells the renderer to preview the node with suggested text. | 90 // Tells the renderer to preview the node with suggested text. |
87 virtual void RendererShouldPreviewFieldWithValue( | 91 virtual void RendererShouldPreviewFieldWithValue( |
88 const base::string16& value) = 0; | 92 const base::string16& value) = 0; |
89 | 93 |
90 // Informs the renderer that the popup has been hidden. | 94 // Informs the renderer that the popup has been hidden. |
91 virtual void PopupHidden() = 0; | 95 virtual void PopupHidden() = 0; |
96 | |
97 // Transform bounding box screen coordinates to correct coordinate space. | |
98 virtual gfx::RectF TransformBoundingBox(const gfx::RectF& bounding_box) = 0; | |
Ilya Sherman
2016/01/20 23:12:15
I think it might be nice to name this somehow so t
kenrb
2016/01/22 18:33:58
I think the new name is accurate.
| |
92 }; | 99 }; |
93 | 100 |
94 } // namespace autofill | 101 } // namespace autofill |
95 | 102 |
96 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ | 103 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ |
OLD | NEW |