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/tabs/tab.h" | 5 #import "ios/chrome/browser/tabs/tab.h" |
6 | 6 |
7 #import <CoreLocation/CoreLocation.h> | 7 #import <CoreLocation/CoreLocation.h> |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 1971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1982 - (void)webControllerDidSuppressDialog:(id)webController { | 1982 - (void)webControllerDidSuppressDialog:(id)webController { |
1983 DCHECK(isPrerenderTab_); | 1983 DCHECK(isPrerenderTab_); |
1984 [delegate_ discardPrerender]; | 1984 [delegate_ discardPrerender]; |
1985 } | 1985 } |
1986 | 1986 |
1987 - (CRWWebController*)webController:(CRWWebController*)webController | 1987 - (CRWWebController*)webController:(CRWWebController*)webController |
1988 createWebControllerForURL:(const GURL&)URL | 1988 createWebControllerForURL:(const GURL&)URL |
1989 openerURL:(const GURL&)openerURL | 1989 openerURL:(const GURL&)openerURL |
1990 initiatedByUser:(BOOL)initiatedByUser { | 1990 initiatedByUser:(BOOL)initiatedByUser { |
1991 if (!initiatedByUser) { | 1991 if (!initiatedByUser) { |
1992 auto helper = BlockedPopupTabHelper::FromWebState(webController.webState); | 1992 auto* helper = BlockedPopupTabHelper::FromWebState(webController.webState); |
1993 if (helper->ShouldBlockPopup(openerURL)) { | 1993 if (helper->ShouldBlockPopup(openerURL)) { |
1994 [self blockPopupForURL:URL openerURL:openerURL]; | 1994 [self blockPopupForURL:URL openerURL:openerURL]; |
1995 return nil; | 1995 return nil; |
1996 } | 1996 } |
1997 } | 1997 } |
1998 | 1998 |
1999 [self updateSnapshotWithOverlay:YES visibleFrameOnly:YES]; | 1999 [self updateSnapshotWithOverlay:YES visibleFrameOnly:YES]; |
2000 Tab* tab = [parentTabModel_ | 2000 Tab* tab = [parentTabModel_ |
2001 insertBlankTabWithTransition:ui::PAGE_TRANSITION_LINK | 2001 insertBlankTabWithTransition:ui::PAGE_TRANSITION_LINK |
2002 opener:self | 2002 opener:self |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2209 | 2209 |
2210 - (TabModel*)parentTabModel { | 2210 - (TabModel*)parentTabModel { |
2211 return parentTabModel_; | 2211 return parentTabModel_; |
2212 } | 2212 } |
2213 | 2213 |
2214 - (FormInputAccessoryViewController*)inputAccessoryViewController { | 2214 - (FormInputAccessoryViewController*)inputAccessoryViewController { |
2215 return inputAccessoryViewController_.get(); | 2215 return inputAccessoryViewController_.get(); |
2216 } | 2216 } |
2217 | 2217 |
2218 @end | 2218 @end |
OLD | NEW |