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 #include "components/autofill/ios/browser/autofill_driver_ios.h" | 5 #include "components/autofill/ios/browser/autofill_driver_ios.h" |
6 | 6 |
7 #include "components/autofill/ios/browser/autofill_driver_ios_bridge.h" | 7 #include "components/autofill/ios/browser/autofill_driver_ios_bridge.h" |
8 #include "ios/web/public/browser_state.h" | 8 #include "ios/web/public/browser_state.h" |
9 #import "ios/web/public/origin_util.h" | 9 #import "ios/web/public/origin_util.h" |
10 #include "ios/web/public/web_state/web_state.h" | 10 #include "ios/web/public/web_state/web_state.h" |
11 #include "ios/web/public/web_thread.h" | 11 #include "ios/web/public/web_thread.h" |
12 #include "ui/gfx/geometry/rect_f.h" | 12 #include "ui/gfx/geometry/rect_f.h" |
13 | 13 |
| 14 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 15 #error "This file requires ARC support." |
| 16 #endif |
| 17 |
14 DEFINE_WEB_STATE_USER_DATA_KEY(autofill::AutofillDriverIOS); | 18 DEFINE_WEB_STATE_USER_DATA_KEY(autofill::AutofillDriverIOS); |
15 | 19 |
16 namespace autofill { | 20 namespace autofill { |
17 | 21 |
18 // static | 22 // static |
19 void AutofillDriverIOS::CreateForWebStateAndDelegate( | 23 void AutofillDriverIOS::CreateForWebStateAndDelegate( |
20 web::WebState* web_state, | 24 web::WebState* web_state, |
21 AutofillClient* client, | 25 AutofillClient* client, |
22 id<AutofillDriverIOSBridge> bridge, | 26 id<AutofillDriverIOSBridge> bridge, |
23 const std::string& app_locale, | 27 const std::string& app_locale, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 108 |
105 void AutofillDriverIOS::PopupHidden() { | 109 void AutofillDriverIOS::PopupHidden() { |
106 } | 110 } |
107 | 111 |
108 gfx::RectF AutofillDriverIOS::TransformBoundingBoxToViewportCoordinates( | 112 gfx::RectF AutofillDriverIOS::TransformBoundingBoxToViewportCoordinates( |
109 const gfx::RectF& bounding_box) { | 113 const gfx::RectF& bounding_box) { |
110 return bounding_box; | 114 return bounding_box; |
111 } | 115 } |
112 | 116 |
113 } // namespace autofill | 117 } // namespace autofill |
OLD | NEW |