| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/infobars/confirm_infobar_controller.h" | 5 #import "ios/chrome/browser/infobars/confirm_infobar_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #include "components/infobars/core/confirm_infobar_delegate.h" | 10 #include "components/infobars/core/confirm_infobar_delegate.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 } | 145 } |
| 146 } | 146 } |
| 147 | 147 |
| 148 // Title link was clicked. | 148 // Title link was clicked. |
| 149 - (void)infobarLinkDidPress:(NSNumber*)tag { | 149 - (void)infobarLinkDidPress:(NSNumber*)tag { |
| 150 DCHECK([tag isKindOfClass:[NSNumber class]]); | 150 DCHECK([tag isKindOfClass:[NSNumber class]]); |
| 151 if (!self.delegate) { | 151 if (!self.delegate) { |
| 152 return; | 152 return; |
| 153 } | 153 } |
| 154 if ([tag unsignedIntegerValue] == ConfirmInfoBarUITags::TITLE_LINK) { | 154 if ([tag unsignedIntegerValue] == ConfirmInfoBarUITags::TITLE_LINK) { |
| 155 _confirmInfobarDelegate->LinkClicked(NEW_FOREGROUND_TAB); | 155 _confirmInfobarDelegate->LinkClicked( |
| 156 WindowOpenDisposition::NEW_FOREGROUND_TAB); |
| 156 } | 157 } |
| 157 } | 158 } |
| 158 | 159 |
| 159 @end | 160 @end |
| OLD | NEW |