| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 146 |
| 147 // Delegate used to show HTTP Authentication dialogs. | 147 // Delegate used to show HTTP Authentication dialogs. |
| 148 @property(nonatomic, weak) id<TabDialogDelegate> dialogDelegate; | 148 @property(nonatomic, weak) id<TabDialogDelegate> dialogDelegate; |
| 149 | 149 |
| 150 // TODO(crbug.com/661663): Should this property abstract away the concept of | 150 // TODO(crbug.com/661663): Should this property abstract away the concept of |
| 151 // prerendering? Maybe this can move to the TabDelegate interface. | 151 // prerendering? Maybe this can move to the TabDelegate interface. |
| 152 @property(nonatomic, assign) BOOL isPrerenderTab; | 152 @property(nonatomic, assign) BOOL isPrerenderTab; |
| 153 @property(nonatomic, assign) BOOL isLinkLoadingPrerenderTab; | 153 @property(nonatomic, assign) BOOL isLinkLoadingPrerenderTab; |
| 154 @property(nonatomic, assign) BOOL isVoiceSearchResultsTab; | 154 @property(nonatomic, assign) BOOL isVoiceSearchResultsTab; |
| 155 | 155 |
| 156 // |YES| if the tab has finished loading. |
| 157 @property(nonatomic, readonly) BOOL loadFinished; |
| 158 |
| 156 // Creates a new tab with the given state. |opener| is nil unless another tab | 159 // Creates a new tab with the given state. |opener| is nil unless another tab |
| 157 // is conceptually the parent of this tab. |openedByDOM| is YES if the page was | 160 // is conceptually the parent of this tab. |openedByDOM| is YES if the page was |
| 158 // opened by DOM. |model| and |browserState| must not be nil. | 161 // opened by DOM. |model| and |browserState| must not be nil. |
| 159 - (instancetype)initWithWindowName:(NSString*)windowName | 162 - (instancetype)initWithWindowName:(NSString*)windowName |
| 160 opener:(Tab*)opener | 163 opener:(Tab*)opener |
| 161 openedByDOM:(BOOL)openedByDOM | 164 openedByDOM:(BOOL)openedByDOM |
| 162 model:(TabModel*)parentModel | 165 model:(TabModel*)parentModel |
| 163 browserState:(ios::ChromeBrowserState*)browserState; | 166 browserState:(ios::ChromeBrowserState*)browserState; |
| 164 | 167 |
| 165 // Create a new tab with given web state and tab model. All must be non-nil. | 168 // Create a new tab with given web state and tab model. All must be non-nil. |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 339 |
| 337 // Called when this tab is hidden. | 340 // Called when this tab is hidden. |
| 338 - (void)wasHidden; | 341 - (void)wasHidden; |
| 339 | 342 |
| 340 // Evaluates U2F result. | 343 // Evaluates U2F result. |
| 341 - (void)evaluateU2FResultFromURL:(const GURL&)url; | 344 - (void)evaluateU2FResultFromURL:(const GURL&)url; |
| 342 | 345 |
| 343 @end | 346 @end |
| 344 | 347 |
| 345 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ | 348 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ |
| OLD | NEW |