| 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 15 matching lines...) Expand all Loading... |
| 26 @protocol FullScreenControllerDelegate; | 26 @protocol FullScreenControllerDelegate; |
| 27 class GURL; | 27 class GURL; |
| 28 @class NativeAppNavigationController; | 28 @class NativeAppNavigationController; |
| 29 @class OpenInController; | 29 @class OpenInController; |
| 30 @class OverscrollActionsController; | 30 @class OverscrollActionsController; |
| 31 @protocol OverscrollActionsControllerDelegate; | 31 @protocol OverscrollActionsControllerDelegate; |
| 32 @protocol PassKitDialogProvider; | 32 @protocol PassKitDialogProvider; |
| 33 @class PasswordController; | 33 @class PasswordController; |
| 34 @class SnapshotManager; | 34 @class SnapshotManager; |
| 35 @protocol SnapshotOverlayProvider; | 35 @protocol SnapshotOverlayProvider; |
| 36 @protocol StoreKitLauncher; | |
| 37 @class FormSuggestionController; | 36 @class FormSuggestionController; |
| 38 @protocol TabDelegate; | 37 @protocol TabDelegate; |
| 39 @protocol TabDialogDelegate; | 38 @protocol TabDialogDelegate; |
| 40 @class Tab; | 39 @class Tab; |
| 41 @protocol TabHeadersDelegate; | 40 @protocol TabHeadersDelegate; |
| 42 @class TabModel; | 41 @class TabModel; |
| 43 @protocol TabSnapshottingDelegate; | 42 @protocol TabSnapshottingDelegate; |
| 44 | 43 |
| 45 namespace infobars { | 44 namespace infobars { |
| 46 class InfoBarManager; | 45 class InfoBarManager; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 @property(nonatomic, readonly) BOOL canGoBack; | 135 @property(nonatomic, readonly) BOOL canGoBack; |
| 137 @property(nonatomic, readonly) BOOL canGoForward; | 136 @property(nonatomic, readonly) BOOL canGoForward; |
| 138 @property(nonatomic, assign) id<TabDelegate> delegate; | 137 @property(nonatomic, assign) id<TabDelegate> delegate; |
| 139 @property(nonatomic, assign) id<TabHeadersDelegate> tabHeadersDelegate; | 138 @property(nonatomic, assign) id<TabHeadersDelegate> tabHeadersDelegate; |
| 140 @property(nonatomic, assign) id<TabSnapshottingDelegate> | 139 @property(nonatomic, assign) id<TabSnapshottingDelegate> |
| 141 tabSnapshottingDelegate; | 140 tabSnapshottingDelegate; |
| 142 | 141 |
| 143 // Whether or not desktop user agent is used for the currently visible page. | 142 // Whether or not desktop user agent is used for the currently visible page. |
| 144 @property(nonatomic, readonly) BOOL usesDesktopUserAgent; | 143 @property(nonatomic, readonly) BOOL usesDesktopUserAgent; |
| 145 | 144 |
| 146 @property(nonatomic, assign) id<StoreKitLauncher> storeKitLauncher; | |
| 147 @property(nonatomic, assign) id<FullScreenControllerDelegate> | 145 @property(nonatomic, assign) id<FullScreenControllerDelegate> |
| 148 fullScreenControllerDelegate; | 146 fullScreenControllerDelegate; |
| 149 @property(nonatomic, readonly) | 147 @property(nonatomic, readonly) |
| 150 OverscrollActionsController* overscrollActionsController; | 148 OverscrollActionsController* overscrollActionsController; |
| 151 @property(nonatomic, assign) id<OverscrollActionsControllerDelegate> | 149 @property(nonatomic, assign) id<OverscrollActionsControllerDelegate> |
| 152 overscrollActionsControllerDelegate; | 150 overscrollActionsControllerDelegate; |
| 153 @property(nonatomic, assign) id<SnapshotOverlayProvider> | 151 @property(nonatomic, assign) id<SnapshotOverlayProvider> |
| 154 snapshotOverlayProvider; | 152 snapshotOverlayProvider; |
| 155 | 153 |
| 156 // Delegate used to show HTTP Authentication dialogs. | 154 // Delegate used to show HTTP Authentication dialogs. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // called during shutdown, since the tab will be unusable but still present | 233 // called during shutdown, since the tab will be unusable but still present |
| 236 // after this method completes. | 234 // after this method completes. |
| 237 - (void)terminateNetworkActivity; | 235 - (void)terminateNetworkActivity; |
| 238 | 236 |
| 239 // Starts the tab's shutdown sequence. | 237 // Starts the tab's shutdown sequence. |
| 240 - (void)close; | 238 - (void)close; |
| 241 | 239 |
| 242 // Dismisses all modals owned by the tab. | 240 // Dismisses all modals owned by the tab. |
| 243 - (void)dismissModals; | 241 - (void)dismissModals; |
| 244 | 242 |
| 245 // Opens StoreKit modal to download a native application identified with | |
| 246 // |appId|. | |
| 247 - (void)openAppStore:(NSString*)appId; | |
| 248 | |
| 249 // Returns the NavigationManager for this tab's WebState. Requires WebState to | 243 // Returns the NavigationManager for this tab's WebState. Requires WebState to |
| 250 // be populated. Can return null. | 244 // be populated. Can return null. |
| 251 // TODO(crbug.com/620465): remove navigationManagerImpl once Tab no longer uses | 245 // TODO(crbug.com/620465): remove navigationManagerImpl once Tab no longer uses |
| 252 // nor exposes private ios/web/ API. | 246 // nor exposes private ios/web/ API. |
| 253 - (web::NavigationManager*)navigationManager; | 247 - (web::NavigationManager*)navigationManager; |
| 254 - (web::NavigationManagerImpl*)navigationManagerImpl; | 248 - (web::NavigationManagerImpl*)navigationManagerImpl; |
| 255 | 249 |
| 256 // Update the tab's history by replacing all previous navigations with | 250 // Update the tab's history by replacing all previous navigations with |
| 257 // |navigations|. | 251 // |navigations|. |
| 258 - (void)replaceHistoryWithNavigations: | 252 - (void)replaceHistoryWithNavigations: |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 | 343 |
| 350 // Called when this tab is hidden. | 344 // Called when this tab is hidden. |
| 351 - (void)wasHidden; | 345 - (void)wasHidden; |
| 352 | 346 |
| 353 // Evaluates U2F result. | 347 // Evaluates U2F result. |
| 354 - (void)evaluateU2FResultFromURL:(const GURL&)url; | 348 - (void)evaluateU2FResultFromURL:(const GURL&)url; |
| 355 | 349 |
| 356 @end | 350 @end |
| 357 | 351 |
| 358 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ | 352 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ |
| OLD | NEW |