| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 // Returns the infobars::InfoBarManager object for this tab. | 278 // Returns the infobars::InfoBarManager object for this tab. |
| 279 - (infobars::InfoBarManager*)infoBarManager; | 279 - (infobars::InfoBarManager*)infoBarManager; |
| 280 | 280 |
| 281 // Whether the content of the current tab is compatible with reader mode. | 281 // Whether the content of the current tab is compatible with reader mode. |
| 282 - (BOOL)canSwitchToReaderMode; | 282 - (BOOL)canSwitchToReaderMode; |
| 283 | 283 |
| 284 // Asks the tab to enter into reader mode, presenting a streamlined view of the | 284 // Asks the tab to enter into reader mode, presenting a streamlined view of the |
| 285 // current content. | 285 // current content. |
| 286 - (void)switchToReaderMode; | 286 - (void)switchToReaderMode; |
| 287 | 287 |
| 288 // Update internal state to use the desktop user agent. Must call | |
| 289 // -reloadWebViewAndURL for changes to take effect. | |
| 290 - (void)enableDesktopUserAgent; | |
| 291 | |
| 292 // Remove the UIWebView and reload the current url. Used by request desktop | 288 // Remove the UIWebView and reload the current url. Used by request desktop |
| 293 // so the updated user agent is used. | 289 // so the updated user agent is used. |
| 294 - (void)reloadForDesktopUserAgent; | 290 - (void)reloadForDesktopUserAgent; |
| 295 | 291 |
| 296 // Ensures the toolbar visibility matches |visible|. | 292 // Ensures the toolbar visibility matches |visible|. |
| 297 - (void)updateFullscreenWithToolbarVisible:(BOOL)visible; | 293 - (void)updateFullscreenWithToolbarVisible:(BOOL)visible; |
| 298 | 294 |
| 299 // Returns a snapshot of the current page, backed by disk so it can be purged | 295 // Returns a snapshot of the current page, backed by disk so it can be purged |
| 300 // and reloaded easily. The snapshot may be in memory, saved on disk or not | 296 // and reloaded easily. The snapshot may be in memory, saved on disk or not |
| 301 // present at all. | 297 // present at all. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 // Evaluates U2F result. | 345 // Evaluates U2F result. |
| 350 - (void)evaluateU2FResultFromURL:(const GURL&)url; | 346 - (void)evaluateU2FResultFromURL:(const GURL&)url; |
| 351 | 347 |
| 352 // Cancels prerendering. It is an error to call this on anything except a | 348 // Cancels prerendering. It is an error to call this on anything except a |
| 353 // prerender tab (where |isPrerenderTab| is set to YES). | 349 // prerender tab (where |isPrerenderTab| is set to YES). |
| 354 - (void)discardPrerender; | 350 - (void)discardPrerender; |
| 355 | 351 |
| 356 @end | 352 @end |
| 357 | 353 |
| 358 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ | 354 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ |
| OLD | NEW |