Commit 2656f67a authored by David Jean's avatar David Jean Committed by Commit Bot

[ios] Moves dimsBackgroundDuringPresentation to obscure.

Moves all search controllers to use obscuresBackgroundDuringPresentation
instead of deprecated dimsBackgroundDuringPresentation.

Bug: 976348
Change-Id: Ic4e147efdb6de5d0e60355a2c10f02ac3b206778
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1678038Reviewed-by: default avatarJustin Cohen <justincohen@chromium.org>
Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Commit-Queue: Rohit Rao <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#672532}
parent 8a607567
......@@ -314,7 +314,7 @@ std::vector<GURL> GetUrlsToOpen(const std::vector<const BookmarkNode*>& nodes) {
// same TableView.
self.searchController =
[[UISearchController alloc] initWithSearchResultsController:nil];
self.searchController.dimsBackgroundDuringPresentation = NO;
self.searchController.obscuresBackgroundDuringPresentation = NO;
self.searchController.searchBar.userInteractionEnabled = NO;
self.searchController.delegate = self;
self.searchController.searchResultsUpdater = self;
......
......@@ -214,7 +214,7 @@ const CGFloat kButtonHorizontalPadding = 30.0;
// TableView.
self.searchController =
[[UISearchController alloc] initWithSearchResultsController:nil];
self.searchController.dimsBackgroundDuringPresentation = NO;
self.searchController.obscuresBackgroundDuringPresentation = NO;
self.searchController.searchBar.delegate = self;
self.searchController.searchResultsUpdater = self;
self.searchController.searchBar.backgroundColor = [UIColor clearColor];
......
......@@ -108,7 +108,7 @@ NSString* const kPaymentRequestPickerSearchBarAccessibilityID =
self.searchController =
[[UISearchController alloc] initWithSearchResultsController:nil];
self.searchController.searchResultsUpdater = self;
self.searchController.dimsBackgroundDuringPresentation = NO;
self.searchController.obscuresBackgroundDuringPresentation = NO;
self.searchController.hidesNavigationBarDuringPresentation = NO;
self.searchController.searchBar.accessibilityIdentifier =
kPaymentRequestPickerSearchBarAccessibilityID;
......
......@@ -92,7 +92,7 @@ typedef NS_ENUM(NSInteger, ItemType) {
// Search controller.
self.searchController =
[[UISearchController alloc] initWithSearchResultsController:nil];
self.searchController.dimsBackgroundDuringPresentation = NO;
self.searchController.obscuresBackgroundDuringPresentation = NO;
self.searchController.searchResultsUpdater = self;
self.searchController.searchBar.accessibilityIdentifier =
kAddLanguageSearchControllerAccessibilityIdentifier;
......
......@@ -66,7 +66,7 @@ NSString* const kUseCaseKey = @"useCase";
self.searchController =
[[UISearchController alloc] initWithSearchResultsController:nil];
self.searchController.searchResultsUpdater = self;
self.searchController.dimsBackgroundDuringPresentation = NO;
self.searchController.obscuresBackgroundDuringPresentation = NO;
self.tableView.tableHeaderView = self.searchController.searchBar;
self.navigationController.navigationBar.translucent = NO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment