| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #import "ios/chrome/browser/autofill/form_suggestion_controller.h" | 5 #import "ios/chrome/browser/autofill/form_suggestion_controller.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/ios/ios_util.h" | 9 #include "base/ios/ios_util.h" |
| 10 #include "base/ios/weak_nsobject.h" | 10 #include "base/ios/weak_nsobject.h" |
| 11 #include "base/mac/foundation_util.h" | 11 #include "base/mac/foundation_util.h" |
| 12 #include "base/mac/scoped_block.h" | 12 #include "base/mac/scoped_block.h" |
| 13 #include "base/mac/scoped_nsobject.h" | 13 #include "base/mac/scoped_nsobject.h" |
| 14 #include "base/strings/sys_string_conversions.h" | 14 #include "base/strings/sys_string_conversions.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 16 #include "components/autofill/core/browser/autofill_popup_delegate.h" | 16 #include "components/autofill/core/browser/autofill_popup_delegate.h" |
| 17 #import "components/autofill/ios/browser/form_suggestion.h" | 17 #import "components/autofill/ios/browser/form_suggestion.h" |
| 18 #import "ios/chrome/browser/autofill/form_input_accessory_view_controller.h" | 18 #import "ios/chrome/browser/autofill/form_input_accessory_view_controller.h" |
| 19 #import "ios/chrome/browser/autofill/form_suggestion_provider.h" | 19 #import "ios/chrome/browser/autofill/form_suggestion_provider.h" |
| 20 #import "ios/chrome/browser/autofill/form_suggestion_view.h" | 20 #import "ios/chrome/browser/autofill/form_suggestion_view.h" |
| 21 #import "ios/chrome/browser/passwords/password_generation_utils.h" | 21 #import "ios/chrome/browser/passwords/password_generation_utils.h" |
| 22 #include "ios/chrome/browser/ui/ui_util.h" | 22 #include "ios/chrome/browser/ui/ui_util.h" |
| 23 #import "ios/web/public/url_scheme_util.h" | 23 #import "ios/web/public/url_scheme_util.h" |
| 24 #import "ios/web/public/web_state/crw_web_view_proxy.h" | |
| 25 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h" | 24 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h" |
| 25 #import "ios/web/public/web_state/ui/crw_web_view_proxy.h" |
| 26 #import "ios/web/public/web_state/web_state.h" | 26 #import "ios/web/public/web_state/web_state.h" |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| 30 // Struct that describes suggestion state. | 30 // Struct that describes suggestion state. |
| 31 struct AutofillSuggestionState { | 31 struct AutofillSuggestionState { |
| 32 AutofillSuggestionState(const std::string& form_name, | 32 AutofillSuggestionState(const std::string& form_name, |
| 33 const std::string& field_name, | 33 const std::string& field_name, |
| 34 const std::string& typed_value); | 34 const std::string& typed_value); |
| 35 // The name of the form for autofill. | 35 // The name of the form for autofill. |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 358 |
| 359 - (void)resizeAccessoryView { | 359 - (void)resizeAccessoryView { |
| 360 [self updateKeyboard:_suggestionState.get()]; | 360 [self updateKeyboard:_suggestionState.get()]; |
| 361 } | 361 } |
| 362 | 362 |
| 363 - (BOOL)getLogKeyboardAccessoryMetrics { | 363 - (BOOL)getLogKeyboardAccessoryMetrics { |
| 364 return YES; | 364 return YES; |
| 365 } | 365 } |
| 366 | 366 |
| 367 @end | 367 @end |
| OLD | NEW |