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_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "components/autofill/core/browser/autofill_client.h" | 10 #include "components/autofill/core/browser/autofill_client.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void RendererShouldAcceptDataListSuggestion( | 51 void RendererShouldAcceptDataListSuggestion( |
52 const base::string16& value) override; | 52 const base::string16& value) override; |
53 base::SequencedWorkerPool* GetBlockingPool() override; | 53 base::SequencedWorkerPool* GetBlockingPool() override; |
54 | 54 |
55 AutofillManager* autofill_manager() { return &autofill_manager_; } | 55 AutofillManager* autofill_manager() { return &autofill_manager_; } |
56 | 56 |
57 void RendererShouldFillFieldWithValue(const base::string16& value) override; | 57 void RendererShouldFillFieldWithValue(const base::string16& value) override; |
58 void RendererShouldPreviewFieldWithValue( | 58 void RendererShouldPreviewFieldWithValue( |
59 const base::string16& value) override; | 59 const base::string16& value) override; |
60 void PopupHidden() override; | 60 void PopupHidden() override; |
| 61 gfx::RectF TransformBoundingBoxToViewportCoordinates( |
| 62 const gfx::RectF& bounding_box) override; |
61 | 63 |
62 private: | 64 private: |
63 AutofillDriverIOS( | 65 AutofillDriverIOS( |
64 web::WebState* web_state, | 66 web::WebState* web_state, |
65 AutofillClient* client, | 67 AutofillClient* client, |
66 id<AutofillDriverIOSBridge> bridge, | 68 id<AutofillDriverIOSBridge> bridge, |
67 const std::string& app_locale, | 69 const std::string& app_locale, |
68 AutofillManager::AutofillDownloadManagerState enable_download_manager); | 70 AutofillManager::AutofillDownloadManagerState enable_download_manager); |
69 ~AutofillDriverIOS() override; | 71 ~AutofillDriverIOS() override; |
70 | 72 |
71 // The WebState with which this object is associated. | 73 // The WebState with which this object is associated. |
72 web::WebState* web_state_; | 74 web::WebState* web_state_; |
73 | 75 |
74 // AutofillDriverIOSBridge instance that is passed in. | 76 // AutofillDriverIOSBridge instance that is passed in. |
75 id<AutofillDriverIOSBridge> bridge_; | 77 id<AutofillDriverIOSBridge> bridge_; |
76 | 78 |
77 // AutofillManager instance via which this object drives the shared Autofill | 79 // AutofillManager instance via which this object drives the shared Autofill |
78 // code. | 80 // code. |
79 AutofillManager autofill_manager_; | 81 AutofillManager autofill_manager_; |
80 // AutofillExternalDelegate instance that is passed to the AutofillManager. | 82 // AutofillExternalDelegate instance that is passed to the AutofillManager. |
81 AutofillExternalDelegate autofill_external_delegate_; | 83 AutofillExternalDelegate autofill_external_delegate_; |
82 }; | 84 }; |
83 | 85 |
84 } // namespace autofill | 86 } // namespace autofill |
85 | 87 |
86 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ | 88 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IOS_H_ |
OLD | NEW |