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_TEST_AUTOFILL_DRIVER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 void SendAutofillTypePredictionsToRenderer( | 37 void SendAutofillTypePredictionsToRenderer( |
38 const std::vector<FormStructure*>& forms) override; | 38 const std::vector<FormStructure*>& forms) override; |
39 void RendererShouldAcceptDataListSuggestion( | 39 void RendererShouldAcceptDataListSuggestion( |
40 const base::string16& value) override; | 40 const base::string16& value) override; |
41 void RendererShouldClearFilledForm() override; | 41 void RendererShouldClearFilledForm() override; |
42 void RendererShouldClearPreviewedForm() override; | 42 void RendererShouldClearPreviewedForm() override; |
43 void RendererShouldFillFieldWithValue(const base::string16& value) override; | 43 void RendererShouldFillFieldWithValue(const base::string16& value) override; |
44 void RendererShouldPreviewFieldWithValue( | 44 void RendererShouldPreviewFieldWithValue( |
45 const base::string16& value) override; | 45 const base::string16& value) override; |
46 void PopupHidden() override; | 46 void PopupHidden() override; |
| 47 gfx::RectF TransformBoundingBoxToViewportCoordinates( |
| 48 const gfx::RectF& bounding_box) override; |
47 | 49 |
48 // Methods that tests can use to specialize functionality. | 50 // Methods that tests can use to specialize functionality. |
49 | 51 |
50 // Sets the URL request context for this instance. |url_request_context| | 52 // Sets the URL request context for this instance. |url_request_context| |
51 // should outlive this instance. | 53 // should outlive this instance. |
52 void SetURLRequestContext(net::URLRequestContextGetter* url_request_context); | 54 void SetURLRequestContext(net::URLRequestContextGetter* url_request_context); |
53 | 55 |
54 private: | 56 private: |
55 scoped_ptr<base::SequencedWorkerPoolOwner> blocking_pool_owner_; | 57 scoped_ptr<base::SequencedWorkerPoolOwner> blocking_pool_owner_; |
56 net::URLRequestContextGetter* url_request_context_; | 58 net::URLRequestContextGetter* url_request_context_; |
57 | 59 |
58 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver); | 60 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver); |
59 }; | 61 }; |
60 | 62 |
61 } // namespace autofill | 63 } // namespace autofill |
62 | 64 |
63 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ | 65 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ |
OLD | NEW |