| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/infobars/infobar_view.h" | 5 #import "ios/chrome/browser/ui/infobars/infobar_view.h" |
| 6 | 6 |
| 7 #import <CoreGraphics/CoreGraphics.h> | 7 #import <CoreGraphics/CoreGraphics.h> |
| 8 #import <QuartzCore/QuartzCore.h> | 8 #import <QuartzCore/QuartzCore.h> |
| 9 | 9 |
| 10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
| 11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
| 12 #include "base/ios/weak_nsobject.h" | 12 #include "base/ios/weak_nsobject.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/mac/foundation_util.h" | 14 #include "base/mac/foundation_util.h" |
| 15 #include "base/strings/sys_string_conversions.h" | 15 #include "base/strings/sys_string_conversions.h" |
| 16 #include "components/strings/grit/components_strings.h" | 16 #include "components/strings/grit/components_strings.h" |
| 17 #import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h" | 17 #import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h" |
| 18 #import "ios/chrome/browser/ui/infobars/infobar_view_delegate.h" |
| 18 #include "ios/chrome/browser/ui/ui_util.h" | 19 #include "ios/chrome/browser/ui/ui_util.h" |
| 19 #import "ios/chrome/browser/ui/uikit_ui_util.h" | 20 #import "ios/chrome/browser/ui/uikit_ui_util.h" |
| 20 #import "ios/chrome/browser/ui/util/label_link_controller.h" | 21 #import "ios/chrome/browser/ui/util/label_link_controller.h" |
| 21 #import "ios/public/provider/chrome/browser/ui/infobar_view_delegate.h" | |
| 22 #import "ios/third_party/material_components_ios/src/components/Buttons/src/Mate
rialButtons.h" | 22 #import "ios/third_party/material_components_ios/src/components/Buttons/src/Mate
rialButtons.h" |
| 23 #import "ios/third_party/material_components_ios/src/components/Typography/src/M
aterialTypography.h" | 23 #import "ios/third_party/material_components_ios/src/components/Typography/src/M
aterialTypography.h" |
| 24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
| 25 #import "ui/gfx/ios/NSString+CrStringDrawing.h" | 25 #import "ui/gfx/ios/NSString+CrStringDrawing.h" |
| 26 #import "ui/gfx/ios/uikit_util.h" | 26 #import "ui/gfx/ios/uikit_util.h" |
| 27 #include "url/gurl.h" | 27 #include "url/gurl.h" |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 const char kChromeInfobarURL[] = "chromeinternal://infobar/"; | 31 const char kChromeInfobarURL[] = "chromeinternal://infobar/"; |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 | 943 |
| 944 - (CGFloat)buttonMargin { | 944 - (CGFloat)buttonMargin { |
| 945 return kButtonMargin; | 945 return kButtonMargin; |
| 946 } | 946 } |
| 947 | 947 |
| 948 - (const std::vector<std::pair<NSUInteger, NSRange>>&)linkRanges { | 948 - (const std::vector<std::pair<NSUInteger, NSRange>>&)linkRanges { |
| 949 return linkRanges_; | 949 return linkRanges_; |
| 950 } | 950 } |
| 951 | 951 |
| 952 @end | 952 @end |
| OLD | NEW |