Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: ios/chrome/browser/autofill/form_input_accessory_view_controller.mm

Issue 2593283002: [ios] Removed keyCode from FormActivityRegistered API. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 477
478 - (void)webStateDidLoadPage:(web::WebState*)webState { 478 - (void)webStateDidLoadPage:(web::WebState*)webState {
479 [self reset]; 479 [self reset];
480 } 480 }
481 481
482 - (void)webState:(web::WebState*)webState 482 - (void)webState:(web::WebState*)webState
483 didRegisterFormActivityWithFormNamed:(const std::string&)formName 483 didRegisterFormActivityWithFormNamed:(const std::string&)formName
484 fieldName:(const std::string&)fieldName 484 fieldName:(const std::string&)fieldName
485 type:(const std::string&)type 485 type:(const std::string&)type
486 value:(const std::string&)value 486 value:(const std::string&)value
487 keyCode:(int)keyCode
488 inputMissing:(BOOL)inputMissing { 487 inputMissing:(BOOL)inputMissing {
489 web::URLVerificationTrustLevel trustLevel; 488 web::URLVerificationTrustLevel trustLevel;
490 const GURL pageURL(webState->GetCurrentURL(&trustLevel)); 489 const GURL pageURL(webState->GetCurrentURL(&trustLevel));
491 if (inputMissing || trustLevel != web::URLVerificationTrustLevel::kAbsolute || 490 if (inputMissing || trustLevel != web::URLVerificationTrustLevel::kAbsolute ||
492 !web::UrlHasWebScheme(pageURL) || !webState->ContentIsHTML()) { 491 !web::UrlHasWebScheme(pageURL) || !webState->ContentIsHTML()) {
493 [self reset]; 492 [self reset];
494 return; 493 return;
495 } 494 }
496 495
497 if ((type == "blur" || type == "change")) { 496 if ((type == "blur" || type == "change")) {
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 // that we don't present our custom view over the keyboard. 645 // that we don't present our custom view over the keyboard.
647 - (void)textInputDidBeginEditing:(NSNotification*)notification { 646 - (void)textInputDidBeginEditing:(NSNotification*)notification {
648 [self reset]; 647 [self reset];
649 } 648 }
650 649
651 - (void)keyboardDidHide:(NSNotification*)notification { 650 - (void)keyboardDidHide:(NSNotification*)notification {
652 _keyboardFrame = CGRectZero; 651 _keyboardFrame = CGRectZero;
653 } 652 }
654 653
655 @end 654 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698