| 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 #import "ios/chrome/browser/web/sad_tab_tab_helper_delegate.h" | 14 #import "ios/chrome/browser/web/sad_tab_tab_helper_delegate.h" |
| 15 #include "ios/net/request_tracker.h" | 15 #include "ios/net/request_tracker.h" |
| 16 #include "ios/web/public/user_agent.h" | 16 #include "ios/web/public/user_agent.h" |
| 17 #import "ios/web/public/web_state/ui/crw_web_delegate.h" | 17 #import "ios/web/public/web_state/ui/crw_web_delegate.h" |
| 18 #include "ui/base/page_transition_types.h" | 18 #include "ui/base/page_transition_types.h" |
| 19 | 19 |
| 20 @class AutofillController; | 20 @class AutofillController; |
| 21 @class AutoReloadBridge; | 21 @class AutoReloadBridge; |
| 22 @class CastController; | 22 @class CastController; |
| 23 @class CRWWebController; | 23 @class CRWWebController; |
| 24 @class ExternalAppLauncher; | 24 @class ExternalAppLauncher; |
| 25 @class FormInputAccessoryViewController; | 25 @class FormInputAccessoryViewController; |
| 26 @class FullScreenController; | 26 @class FullScreenController; |
| 27 @protocol FullScreenControllerDelegate; | 27 @protocol FullScreenControllerDelegate; |
| 28 class GURL; | 28 class GURL; |
| 29 @class NativeAppNavigationController; | |
| 30 @class OpenInController; | 29 @class OpenInController; |
| 31 @class OverscrollActionsController; | 30 @class OverscrollActionsController; |
| 32 @protocol OverscrollActionsControllerDelegate; | 31 @protocol OverscrollActionsControllerDelegate; |
| 33 @protocol PassKitDialogProvider; | 32 @protocol PassKitDialogProvider; |
| 34 @class PasswordController; | 33 @class PasswordController; |
| 35 @class SnapshotManager; | 34 @class SnapshotManager; |
| 36 @protocol SnapshotOverlayProvider; | 35 @protocol SnapshotOverlayProvider; |
| 37 @class FormSuggestionController; | 36 @class FormSuggestionController; |
| 38 @protocol TabDelegate; | 37 @protocol TabDelegate; |
| 39 @protocol TabDialogDelegate; | 38 @protocol TabDialogDelegate; |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 // When snapshot coalescing is enabled, mutiple calls to generate a snapshot | 276 // When snapshot coalescing is enabled, mutiple calls to generate a snapshot |
| 278 // with the same parameters may be coalesced. | 277 // with the same parameters may be coalesced. |
| 279 - (void)setSnapshotCoalescingEnabled:(BOOL)snapshotCoalescingEnabled; | 278 - (void)setSnapshotCoalescingEnabled:(BOOL)snapshotCoalescingEnabled; |
| 280 | 279 |
| 281 // Returns the rect (in |view|'s coordinate space) to include for snapshotting. | 280 // Returns the rect (in |view|'s coordinate space) to include for snapshotting. |
| 282 - (CGRect)snapshotContentArea; | 281 - (CGRect)snapshotContentArea; |
| 283 | 282 |
| 284 // Called when the snapshot of the content will be taken. | 283 // Called when the snapshot of the content will be taken. |
| 285 - (void)willUpdateSnapshot; | 284 - (void)willUpdateSnapshot; |
| 286 | 285 |
| 287 // Returns the NativeAppNavigationController for this tab. | |
| 288 - (NativeAppNavigationController*)nativeAppNavigationController; | |
| 289 | |
| 290 // Called when this tab is shown. | 286 // Called when this tab is shown. |
| 291 - (void)wasShown; | 287 - (void)wasShown; |
| 292 | 288 |
| 293 // Called when this tab is hidden. | 289 // Called when this tab is hidden. |
| 294 - (void)wasHidden; | 290 - (void)wasHidden; |
| 295 | 291 |
| 296 // Evaluates U2F result. | 292 // Evaluates U2F result. |
| 297 - (void)evaluateU2FResultFromURL:(const GURL&)url; | 293 - (void)evaluateU2FResultFromURL:(const GURL&)url; |
| 298 | 294 |
| 299 // Cancels prerendering. It is an error to call this on anything except a | 295 // Cancels prerendering. It is an error to call this on anything except a |
| 300 // prerender tab (where |isPrerenderTab| is set to YES). | 296 // prerender tab (where |isPrerenderTab| is set to YES). |
| 301 - (void)discardPrerender; | 297 - (void)discardPrerender; |
| 302 | 298 |
| 303 @end | 299 @end |
| 304 | 300 |
| 305 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ | 301 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ |
| OLD | NEW |