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 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1805 | 1805 |
1806 - (BOOL)webController:(CRWWebController*)webController | 1806 - (BOOL)webController:(CRWWebController*)webController |
1807 shouldOpenExternalURL:(const GURL&)URL { | 1807 shouldOpenExternalURL:(const GURL&)URL { |
1808 if (isPrerenderTab_ && !isLinkLoadingPrerenderTab_) { | 1808 if (isPrerenderTab_ && !isLinkLoadingPrerenderTab_) { |
1809 [delegate_ discardPrerender]; | 1809 [delegate_ discardPrerender]; |
1810 return NO; | 1810 return NO; |
1811 } | 1811 } |
1812 return YES; | 1812 return YES; |
1813 } | 1813 } |
1814 | 1814 |
1815 - (void)webController:(CRWWebController*)webController | 1815 - (void)webStateDidChangeTitle:(web::WebState*)webState { |
kkhorimoto
2017/02/28 01:14:55
Let's move this function next to the other WSO cal
Eugene But (OOO till 7-30)
2017/02/28 01:26:45
Done.
| |
1816 titleDidChange:(NSString*)title { | |
1817 [self saveTitleToHistoryDB]; | 1816 [self saveTitleToHistoryDB]; |
1818 [parentTabModel_ notifyTabChanged:self]; | 1817 [parentTabModel_ notifyTabChanged:self]; |
1819 } | 1818 } |
1820 | 1819 |
1821 - (BOOL)urlTriggersNativeAppLaunch:(const GURL&)url | 1820 - (BOOL)urlTriggersNativeAppLaunch:(const GURL&)url |
1822 sourceURL:(const GURL&)sourceURL | 1821 sourceURL:(const GURL&)sourceURL |
1823 linkClicked:(BOOL)linkClicked { | 1822 linkClicked:(BOOL)linkClicked { |
1824 // Don't open any native app directly when prerendering or from Incognito. | 1823 // Don't open any native app directly when prerendering or from Incognito. |
1825 if (isPrerenderTab_ || self.browserState->IsOffTheRecord()) | 1824 if (isPrerenderTab_ || self.browserState->IsOffTheRecord()) |
1826 return NO; | 1825 return NO; |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2206 | 2205 |
2207 - (TabModel*)parentTabModel { | 2206 - (TabModel*)parentTabModel { |
2208 return parentTabModel_; | 2207 return parentTabModel_; |
2209 } | 2208 } |
2210 | 2209 |
2211 - (FormInputAccessoryViewController*)inputAccessoryViewController { | 2210 - (FormInputAccessoryViewController*)inputAccessoryViewController { |
2212 return inputAccessoryViewController_.get(); | 2211 return inputAccessoryViewController_.get(); |
2213 } | 2212 } |
2214 | 2213 |
2215 @end | 2214 @end |
OLD | NEW |