| 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_input_accessory_view_controller.h" | 5 #import "ios/chrome/browser/autofill/form_input_accessory_view_controller.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/ios/block_types.h" | 9 #include "base/ios/block_types.h" |
| 10 #include "base/ios/ios_util.h" | 10 #include "base/ios/ios_util.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 #import "components/autofill/core/browser/keyboard_accessory_metrics_logger.h" | 14 #import "components/autofill/core/browser/keyboard_accessory_metrics_logger.h" |
| 15 #import "components/autofill/ios/browser/js_suggestion_manager.h" | 15 #import "components/autofill/ios/browser/js_suggestion_manager.h" |
| 16 #import "ios/chrome/browser/autofill/form_input_accessory_view.h" | 16 #import "ios/chrome/browser/autofill/form_input_accessory_view.h" |
| 17 #import "ios/chrome/browser/autofill/form_suggestion_view.h" | 17 #import "ios/chrome/browser/autofill/form_suggestion_view.h" |
| 18 #import "ios/chrome/browser/passwords/password_generation_utils.h" | 18 #import "ios/chrome/browser/passwords/password_generation_utils.h" |
| 19 #include "ios/chrome/browser/ui/ui_util.h" | 19 #include "ios/chrome/browser/ui/ui_util.h" |
| 20 #import "ios/web/public/url_scheme_util.h" | 20 #import "ios/web/public/url_scheme_util.h" |
| 21 #import "ios/web/public/web_state/crw_web_view_proxy.h" | |
| 22 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h" | 21 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h" |
| 22 #import "ios/web/public/web_state/ui/crw_web_view_proxy.h" |
| 23 #include "ios/web/public/web_state/url_verification_constants.h" | 23 #include "ios/web/public/web_state/url_verification_constants.h" |
| 24 #include "ios/web/public/web_state/web_state.h" | 24 #include "ios/web/public/web_state/web_state.h" |
| 25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
| 26 | 26 |
| 27 namespace autofill { | 27 namespace autofill { |
| 28 NSString* const kFormSuggestionAssistButtonPreviousElement = @"previousTap"; | 28 NSString* const kFormSuggestionAssistButtonPreviousElement = @"previousTap"; |
| 29 NSString* const kFormSuggestionAssistButtonNextElement = @"nextTap"; | 29 NSString* const kFormSuggestionAssistButtonNextElement = @"nextTap"; |
| 30 NSString* const kFormSuggestionAssistButtonDone = @"done"; | 30 NSString* const kFormSuggestionAssistButtonDone = @"done"; |
| 31 CGFloat const kInputAccessoryHeight = 44.0f; | 31 CGFloat const kInputAccessoryHeight = 44.0f; |
| 32 } // namespace autofill | 32 } // namespace autofill |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 // that we don't present our custom view over the keyboard. | 645 // that we don't present our custom view over the keyboard. |
| 646 - (void)textInputDidBeginEditing:(NSNotification*)notification { | 646 - (void)textInputDidBeginEditing:(NSNotification*)notification { |
| 647 [self reset]; | 647 [self reset]; |
| 648 } | 648 } |
| 649 | 649 |
| 650 - (void)keyboardDidHide:(NSNotification*)notification { | 650 - (void)keyboardDidHide:(NSNotification*)notification { |
| 651 _keyboardFrame = CGRectZero; | 651 _keyboardFrame = CGRectZero; |
| 652 } | 652 } |
| 653 | 653 |
| 654 @end | 654 @end |
| OLD | NEW |