| 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 #ifndef IOS_CHROME_BROWSER_TABS_TAB_H_ | 5 #ifndef IOS_CHROME_BROWSER_TABS_TAB_H_ |
| 6 #define IOS_CHROME_BROWSER_TABS_TAB_H_ | 6 #define IOS_CHROME_BROWSER_TABS_TAB_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 267 |
| 268 // Returns the timestamp of the last time the tab is visited. | 268 // Returns the timestamp of the last time the tab is visited. |
| 269 - (double)lastVisitedTimestamp; | 269 - (double)lastVisitedTimestamp; |
| 270 | 270 |
| 271 // Updates the timestamp of the last time the tab is visited. | 271 // Updates the timestamp of the last time the tab is visited. |
| 272 - (void)updateLastVisitedTimestamp; | 272 - (void)updateLastVisitedTimestamp; |
| 273 | 273 |
| 274 // Returns the infobars::InfoBarManager object for this tab. | 274 // Returns the infobars::InfoBarManager object for this tab. |
| 275 - (infobars::InfoBarManager*)infoBarManager; | 275 - (infobars::InfoBarManager*)infoBarManager; |
| 276 | 276 |
| 277 // Returns the URLs in the entries that are redirected to the current entry. | |
| 278 - (std::vector<GURL>)currentRedirectedUrls; | |
| 279 | |
| 280 // Whether the content of the current tab is compatible with reader mode. | 277 // Whether the content of the current tab is compatible with reader mode. |
| 281 - (BOOL)canSwitchToReaderMode; | 278 - (BOOL)canSwitchToReaderMode; |
| 282 | 279 |
| 283 // Asks the tab to enter into reader mode, presenting a streamlined view of the | 280 // Asks the tab to enter into reader mode, presenting a streamlined view of the |
| 284 // current content. | 281 // current content. |
| 285 - (void)switchToReaderMode; | 282 - (void)switchToReaderMode; |
| 286 | 283 |
| 287 // Update internal state to use the desktop user agent. Must call | 284 // Update internal state to use the desktop user agent. Must call |
| 288 // -reloadWebViewAndURL for changes to take effect. | 285 // -reloadWebViewAndURL for changes to take effect. |
| 289 - (void)enableDesktopUserAgent; | 286 - (void)enableDesktopUserAgent; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 344 |
| 348 // Called when this tab is hidden. | 345 // Called when this tab is hidden. |
| 349 - (void)wasHidden; | 346 - (void)wasHidden; |
| 350 | 347 |
| 351 // Evaluates U2F result. | 348 // Evaluates U2F result. |
| 352 - (void)evaluateU2FResultFromURL:(const GURL&)url; | 349 - (void)evaluateU2FResultFromURL:(const GURL&)url; |
| 353 | 350 |
| 354 @end | 351 @end |
| 355 | 352 |
| 356 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ | 353 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ |
| OLD | NEW |