Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: ios/chrome/browser/infobars/confirm_infobar_controller.mm

Issue 2248873002: Convert WindowOpenDisposition to an enum class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698