| // Copyright 2021 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #import "ios/chrome/browser/ui/default_promo/tailored_promo_view_controller.h" |
| |
| #include "base/feature_list.h" |
| #import "ios/chrome/browser/ui/default_promo/default_browser_string_util.h" |
| #import "ios/chrome/browser/ui/default_promo/default_browser_utils.h" |
| #include "ios/chrome/browser/ui/ui_feature_flags.h" |
| #include "ios/chrome/grit/ios_google_chrome_strings.h" |
| #include "ios/chrome/grit/ios_strings.h" |
| #include "ui/base/l10n/l10n_util_mac.h" |
| |
| #if !defined(__has_feature) || !__has_feature(objc_arc) |
| #error "This file requires ARC support." |
| #endif |
| |
| @implementation TailoredPromoViewController |
| |
| #pragma mark - Public |
| |
| - (void)loadView { |
| self.customSpacingAfterImage = 30; |
| self.helpButtonAvailable = YES; |
| self.primaryActionAvailable = YES; |
| self.secondaryActionAvailable = YES; |
| self.showDismissBarButton = NO; |
| self.dismissBarButtonSystemItem = UIBarButtonSystemItemCancel; |
| self.capitalizeTitle = NO; |
| if (@available(iOS 13.4, *)) { |
| self.pointerInteractionEnabled = YES; |
| } |
| [super loadView]; |
| } |
| |
| @end |