Chromium Code Reviews| 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/navigation_item.h" | |
|
Eugene But (OOO till 7-30)
2017/02/03 19:24:16
You do need origin_util.h include, but do you need
lgarron
2017/02/04 00:28:35
Woops, refactoring error. Removed.
| |
| 10 #import "ios/web/public/navigation_manager.h" | |
| 11 #import "ios/web/public/origin_util.h" | |
| 12 #include "ios/web/public/ssl_status.h" | |
| 9 #include "ios/web/public/web_state/web_state.h" | 13 #include "ios/web/public/web_state/web_state.h" |
| 10 #include "ios/web/public/web_thread.h" | 14 #include "ios/web/public/web_thread.h" |
| 11 #include "ui/gfx/geometry/rect_f.h" | 15 #include "ui/gfx/geometry/rect_f.h" |
| 12 | 16 |
| 13 DEFINE_WEB_STATE_USER_DATA_KEY(autofill::AutofillDriverIOS); | 17 DEFINE_WEB_STATE_USER_DATA_KEY(autofill::AutofillDriverIOS); |
| 14 | 18 |
| 15 namespace autofill { | 19 namespace autofill { |
| 16 | 20 |
| 17 // static | 21 // static |
| 18 void AutofillDriverIOS::CreateForWebStateAndDelegate( | 22 void AutofillDriverIOS::CreateForWebStateAndDelegate( |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 | 79 |
| 76 void AutofillDriverIOS::SendAutofillTypePredictionsToRenderer( | 80 void AutofillDriverIOS::SendAutofillTypePredictionsToRenderer( |
| 77 const std::vector<FormStructure*>& forms) { | 81 const std::vector<FormStructure*>& forms) { |
| 78 [bridge_ sendAutofillTypePredictionsToRenderer:forms]; | 82 [bridge_ sendAutofillTypePredictionsToRenderer:forms]; |
| 79 } | 83 } |
| 80 | 84 |
| 81 void AutofillDriverIOS::RendererShouldAcceptDataListSuggestion( | 85 void AutofillDriverIOS::RendererShouldAcceptDataListSuggestion( |
| 82 const base::string16& value) { | 86 const base::string16& value) { |
| 83 } | 87 } |
| 84 | 88 |
| 85 void AutofillDriverIOS::DidInteractWithCreditCardForm() {} | 89 void AutofillDriverIOS::DidInteractWithCreditCardForm() { |
| 90 if (!web::IsOriginSecure(web_state_->GetLastCommittedURL())) | |
| 91 web_state_->OnCreditCardInputShownOnHttp(); | |
| 92 } | |
| 86 | 93 |
| 87 void AutofillDriverIOS::RendererShouldClearFilledForm() { | 94 void AutofillDriverIOS::RendererShouldClearFilledForm() { |
| 88 } | 95 } |
| 89 | 96 |
| 90 void AutofillDriverIOS::RendererShouldClearPreviewedForm() { | 97 void AutofillDriverIOS::RendererShouldClearPreviewedForm() { |
| 91 } | 98 } |
| 92 | 99 |
| 93 void AutofillDriverIOS::RendererShouldFillFieldWithValue( | 100 void AutofillDriverIOS::RendererShouldFillFieldWithValue( |
| 94 const base::string16& value) { | 101 const base::string16& value) { |
| 95 } | 102 } |
| 96 | 103 |
| 97 void AutofillDriverIOS::RendererShouldPreviewFieldWithValue( | 104 void AutofillDriverIOS::RendererShouldPreviewFieldWithValue( |
| 98 const base::string16& value) { | 105 const base::string16& value) { |
| 99 } | 106 } |
| 100 | 107 |
| 101 void AutofillDriverIOS::PopupHidden() { | 108 void AutofillDriverIOS::PopupHidden() { |
| 102 } | 109 } |
| 103 | 110 |
| 104 gfx::RectF AutofillDriverIOS::TransformBoundingBoxToViewportCoordinates( | 111 gfx::RectF AutofillDriverIOS::TransformBoundingBoxToViewportCoordinates( |
| 105 const gfx::RectF& bounding_box) { | 112 const gfx::RectF& bounding_box) { |
| 106 return bounding_box; | 113 return bounding_box; |
| 107 } | 114 } |
| 108 | 115 |
| 109 } // namespace autofill | 116 } // namespace autofill |
| OLD | NEW |