| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 // Delegate used to show HTTP Authentication dialogs. | 156 // Delegate used to show HTTP Authentication dialogs. |
| 157 @property(nonatomic, weak) id<TabDialogDelegate> dialogDelegate; | 157 @property(nonatomic, weak) id<TabDialogDelegate> dialogDelegate; |
| 158 | 158 |
| 159 // TODO(crbug.com/661663): Should this property abstract away the concept of | 159 // TODO(crbug.com/661663): Should this property abstract away the concept of |
| 160 // prerendering? Maybe this can move to the TabDelegate interface. | 160 // prerendering? Maybe this can move to the TabDelegate interface. |
| 161 @property(nonatomic, assign) BOOL isPrerenderTab; | 161 @property(nonatomic, assign) BOOL isPrerenderTab; |
| 162 @property(nonatomic, assign) BOOL isLinkLoadingPrerenderTab; | 162 @property(nonatomic, assign) BOOL isLinkLoadingPrerenderTab; |
| 163 @property(nonatomic, assign) BOOL isVoiceSearchResultsTab; | 163 @property(nonatomic, assign) BOOL isVoiceSearchResultsTab; |
| 164 | 164 |
| 165 // |YES| if the tab has finished loading. |
| 166 @property(nonatomic, readonly) BOOL loadFinished; |
| 167 |
| 165 // Creates a new tab with the given state. |opener| is nil unless another tab | 168 // Creates a new tab with the given state. |opener| is nil unless another tab |
| 166 // is conceptually the parent of this tab. |openedByDOM| is YES if the page was | 169 // is conceptually the parent of this tab. |openedByDOM| is YES if the page was |
| 167 // opened by DOM. |model| and |browserState| must not be nil. | 170 // opened by DOM. |model| and |browserState| must not be nil. |
| 168 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState | 171 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState |
| 169 opener:(Tab*)opener | 172 opener:(Tab*)opener |
| 170 openedByDOM:(BOOL)openedByDOM | 173 openedByDOM:(BOOL)openedByDOM |
| 171 model:(TabModel*)parentModel; | 174 model:(TabModel*)parentModel; |
| 172 | 175 |
| 173 // Create a new tab with given web state and tab model. All must be non-nil. | 176 // Create a new tab with given web state and tab model. All must be non-nil. |
| 174 - (instancetype)initWithWebState:(std::unique_ptr<web::WebState>)webState | 177 - (instancetype)initWithWebState:(std::unique_ptr<web::WebState>)webState |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 | 349 |
| 347 // Called when this tab is hidden. | 350 // Called when this tab is hidden. |
| 348 - (void)wasHidden; | 351 - (void)wasHidden; |
| 349 | 352 |
| 350 // Evaluates U2F result. | 353 // Evaluates U2F result. |
| 351 - (void)evaluateU2FResultFromURL:(const GURL&)url; | 354 - (void)evaluateU2FResultFromURL:(const GURL&)url; |
| 352 | 355 |
| 353 @end | 356 @end |
| 354 | 357 |
| 355 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ | 358 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ |
| OLD | NEW |