| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ui/settings/sync_encryption_passphrase_collection_vi
ew_controller.h" | 5 #import "ios/chrome/browser/ui/settings/sync_encryption_passphrase_collection_vi
ew_controller.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/i18n/time_formatting.h" | 9 #include "base/i18n/time_formatting.h" |
| 10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 self.navigationItem.leftBarButtonItem = [self spinnerButton]; | 423 self.navigationItem.leftBarButtonItem = [self spinnerButton]; |
| 424 savedTitle_ = [self.title copy]; | 424 savedTitle_ = [self.title copy]; |
| 425 self.title = processingMessage_; | 425 self.title = processingMessage_; |
| 426 } | 426 } |
| 427 | 427 |
| 428 - (void)hideDecryptionProgress { | 428 - (void)hideDecryptionProgress { |
| 429 if (!isDecryptionProgressShown_) | 429 if (!isDecryptionProgressShown_) |
| 430 return; | 430 return; |
| 431 isDecryptionProgressShown_ = NO; | 431 isDecryptionProgressShown_ = NO; |
| 432 | 432 |
| 433 self.navigationItem.leftBarButtonItem = savedLeftButton_ = nil; | 433 self.navigationItem.leftBarButtonItem = savedLeftButton_; |
| 434 self.title = savedTitle_ = nil; | 434 savedLeftButton_ = nil; |
| 435 self.title = savedTitle_; |
| 436 savedTitle_ = nil; |
| 435 [self setRightNavBarItem]; | 437 [self setRightNavBarItem]; |
| 436 } | 438 } |
| 437 | 439 |
| 438 - (void)registerTextField:(UITextField*)textField { | 440 - (void)registerTextField:(UITextField*)textField { |
| 439 [textField addTarget:self | 441 [textField addTarget:self |
| 440 action:@selector(textFieldDidBeginEditing:) | 442 action:@selector(textFieldDidBeginEditing:) |
| 441 forControlEvents:UIControlEventEditingDidBegin]; | 443 forControlEvents:UIControlEventEditingDidBegin]; |
| 442 [textField addTarget:self | 444 [textField addTarget:self |
| 443 action:@selector(textFieldDidChange:) | 445 action:@selector(textFieldDidChange:) |
| 444 forControlEvents:UIControlEventEditingChanged]; | 446 forControlEvents:UIControlEventEditingChanged]; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 self.navigationController) popViewControllerOrCloseSettingsAnimated:NO]; | 567 self.navigationController) popViewControllerOrCloseSettingsAnimated:NO]; |
| 566 } | 568 } |
| 567 | 569 |
| 568 #pragma mark - SettingsControllerProtocol callbacks | 570 #pragma mark - SettingsControllerProtocol callbacks |
| 569 | 571 |
| 570 - (void)settingsWillBeDismissed { | 572 - (void)settingsWillBeDismissed { |
| 571 [self stopObserving]; | 573 [self stopObserving]; |
| 572 } | 574 } |
| 573 | 575 |
| 574 @end | 576 @end |
| OLD | NEW |