| 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #import "components/signin/ios/browser/manage_accounts_delegate.h" | 13 #import "components/signin/ios/browser/manage_accounts_delegate.h" |
| 14 #include "ios/net/request_tracker.h" | 14 #include "ios/net/request_tracker.h" |
| 15 #import "ios/web/public/web_state/ui/crw_web_delegate.h" | 15 #import "ios/web/public/web_state/ui/crw_web_delegate.h" |
| 16 #include "ui/base/page_transition_types.h" | 16 #include "ui/base/page_transition_types.h" |
| 17 | 17 |
| 18 @class AutofillController; | 18 @class AutofillController; |
| 19 @class AutoReloadBridge; | 19 @class AutoReloadBridge; |
| 20 @class CastController; | 20 @class CastController; |
| 21 @protocol CRWNativeContentProvider; | 21 @protocol CRWNativeContentProvider; |
| 22 @class CRWSessionEntry; | 22 @class CRWSessionEntry; |
| 23 @class CRWWebController; | 23 @class CRWWebController; |
| 24 @class ExternalAppLauncher; | 24 @class ExternalAppLauncher; |
| 25 @class FindInPageController; | |
| 26 @class FormInputAccessoryViewController; | 25 @class FormInputAccessoryViewController; |
| 27 @class FullScreenController; | 26 @class FullScreenController; |
| 28 @protocol FullScreenControllerDelegate; | 27 @protocol FullScreenControllerDelegate; |
| 29 class GURL; | 28 class GURL; |
| 30 @class NativeAppNavigationController; | 29 @class NativeAppNavigationController; |
| 31 @class OpenInController; | 30 @class OpenInController; |
| 32 @class OverscrollActionsController; | 31 @class OverscrollActionsController; |
| 33 @protocol OverscrollActionsControllerDelegate; | 32 @protocol OverscrollActionsControllerDelegate; |
| 34 @protocol PassKitDialogProvider; | 33 @protocol PassKitDialogProvider; |
| 35 @class PasswordController; | 34 @class PasswordController; |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 - (void)switchToReaderMode; | 277 - (void)switchToReaderMode; |
| 279 | 278 |
| 280 // Update internal state to use the desktop user agent. Must call | 279 // Update internal state to use the desktop user agent. Must call |
| 281 // -reloadWebViewAndURL for changes to take effect. | 280 // -reloadWebViewAndURL for changes to take effect. |
| 282 - (void)enableDesktopUserAgent; | 281 - (void)enableDesktopUserAgent; |
| 283 | 282 |
| 284 // Remove the UIWebView and reload the current url. Used by request desktop | 283 // Remove the UIWebView and reload the current url. Used by request desktop |
| 285 // so the updated user agent is used. | 284 // so the updated user agent is used. |
| 286 - (void)reloadForDesktopUserAgent; | 285 - (void)reloadForDesktopUserAgent; |
| 287 | 286 |
| 288 // Accessor for Find in Page Controller. | |
| 289 - (FindInPageController*)findInPageController; | |
| 290 | |
| 291 // Ensures the toolbar visibility matches |visible|. | 287 // Ensures the toolbar visibility matches |visible|. |
| 292 - (void)updateFullscreenWithToolbarVisible:(BOOL)visible; | 288 - (void)updateFullscreenWithToolbarVisible:(BOOL)visible; |
| 293 | 289 |
| 294 // Returns a snapshot of the current page, backed by disk so it can be purged | 290 // Returns a snapshot of the current page, backed by disk so it can be purged |
| 295 // and reloaded easily. The snapshot may be in memory, saved on disk or not | 291 // and reloaded easily. The snapshot may be in memory, saved on disk or not |
| 296 // present at all. | 292 // present at all. |
| 297 // 1) If the snapshot is in memory |block| will be called synchronously with | 293 // 1) If the snapshot is in memory |block| will be called synchronously with |
| 298 // the existing image. | 294 // the existing image. |
| 299 // 2) If the snapshot is saven on disk |block| will be called asynchronously | 295 // 2) If the snapshot is saven on disk |block| will be called asynchronously |
| 300 // once the image is retrieved. | 296 // once the image is retrieved. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 | 336 |
| 341 // Called when this tab is hidden. | 337 // Called when this tab is hidden. |
| 342 - (void)wasHidden; | 338 - (void)wasHidden; |
| 343 | 339 |
| 344 // Evaluates U2F result. | 340 // Evaluates U2F result. |
| 345 - (void)evaluateU2FResultFromURL:(const GURL&)url; | 341 - (void)evaluateU2FResultFromURL:(const GURL&)url; |
| 346 | 342 |
| 347 @end | 343 @end |
| 348 | 344 |
| 349 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ | 345 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ |
| OLD | NEW |