| 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 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1574 | 1574 |
| 1575 [self.readerModeController exitReaderMode]; | 1575 [self.readerModeController exitReaderMode]; |
| 1576 } | 1576 } |
| 1577 | 1577 |
| 1578 #pragma mark - | 1578 #pragma mark - |
| 1579 | 1579 |
| 1580 - (void)openAppStore:(NSString*)appId { | 1580 - (void)openAppStore:(NSString*)appId { |
| 1581 [storeKitLauncher_ openAppStore:appId]; | 1581 [storeKitLauncher_ openAppStore:appId]; |
| 1582 } | 1582 } |
| 1583 | 1583 |
| 1584 - (std::vector<GURL>)currentRedirectedUrls { | |
| 1585 DCHECK([self navigationManager]); | |
| 1586 return | |
| 1587 [[self navigationManager]->GetSessionController() currentRedirectedUrls]; | |
| 1588 } | |
| 1589 | |
| 1590 - (BOOL)useDesktopUserAgent { | 1584 - (BOOL)useDesktopUserAgent { |
| 1591 web::NavigationItem* currentItem = self.currentSessionEntry.navigationItem; | 1585 web::NavigationItem* currentItem = self.currentSessionEntry.navigationItem; |
| 1592 return currentItem && currentItem->IsOverridingUserAgent(); | 1586 return currentItem && currentItem->IsOverridingUserAgent(); |
| 1593 } | 1587 } |
| 1594 | 1588 |
| 1595 - (void)enableDesktopUserAgent { | 1589 - (void)enableDesktopUserAgent { |
| 1596 DCHECK_EQ(self.useDesktopUserAgent, NO); | 1590 DCHECK_EQ(self.useDesktopUserAgent, NO); |
| 1597 DCHECK([self navigationManager]); | 1591 DCHECK([self navigationManager]); |
| 1598 [[self navigationManager]->GetSessionController() | 1592 [[self navigationManager]->GetSessionController() |
| 1599 useDesktopUserAgentForNextPendingEntry]; | 1593 useDesktopUserAgentForNextPendingEntry]; |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2375 | 2369 |
| 2376 - (TabModel*)parentTabModel { | 2370 - (TabModel*)parentTabModel { |
| 2377 return parentTabModel_; | 2371 return parentTabModel_; |
| 2378 } | 2372 } |
| 2379 | 2373 |
| 2380 - (FormInputAccessoryViewController*)inputAccessoryViewController { | 2374 - (FormInputAccessoryViewController*)inputAccessoryViewController { |
| 2381 return inputAccessoryViewController_.get(); | 2375 return inputAccessoryViewController_.get(); |
| 2382 } | 2376 } |
| 2383 | 2377 |
| 2384 @end | 2378 @end |
| OLD | NEW |