| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 - (NSString*)currentSessionID; | 195 - (NSString*)currentSessionID; |
| 196 | 196 |
| 197 // Sets the parent tab model for this tab. Can only be called if the tab does | 197 // Sets the parent tab model for this tab. Can only be called if the tab does |
| 198 // not already have a parent tab model set. | 198 // not already have a parent tab model set. |
| 199 // TODO(crbug.com/228575): Create a delegate interface and remove this. | 199 // TODO(crbug.com/228575): Create a delegate interface and remove this. |
| 200 - (void)setParentTabModel:(TabModel*)model; | 200 - (void)setParentTabModel:(TabModel*)model; |
| 201 | 201 |
| 202 // Replace the content of the tab with the content described by |SessionTab|. | 202 // Replace the content of the tab with the content described by |SessionTab|. |
| 203 - (void)loadSessionTab:(const sessions::SessionTab*)sessionTab; | 203 - (void)loadSessionTab:(const sessions::SessionTab*)sessionTab; |
| 204 | 204 |
| 205 // Evaluate JavaScript asynchronously in the tab. | |
| 206 - (void)openJavascript:(NSString*)javascript; | |
| 207 | |
| 208 // Stop the page loading. | 205 // Stop the page loading. |
| 209 // Equivalent to the user pressing 'stop', or a window.stop() command. | 206 // Equivalent to the user pressing 'stop', or a window.stop() command. |
| 210 - (void)stopLoading; | 207 - (void)stopLoading; |
| 211 | 208 |
| 212 // Triggers the asynchronous loading of the tab's favicon. This will be done | 209 // Triggers the asynchronous loading of the tab's favicon. This will be done |
| 213 // automatically when a page loads, but this can be used to trigger favicon | 210 // automatically when a page loads, but this can be used to trigger favicon |
| 214 // fetch earlier (e.g., for a tab that will be shown without loading). | 211 // fetch earlier (e.g., for a tab that will be shown without loading). |
| 215 - (void)fetchFavicon; | 212 - (void)fetchFavicon; |
| 216 | 213 |
| 217 // Returns the favicon for the page currently being shown in this Tab, or |nil| | 214 // Returns the favicon for the page currently being shown in this Tab, or |nil| |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 | 341 |
| 345 // Called when this tab is hidden. | 342 // Called when this tab is hidden. |
| 346 - (void)wasHidden; | 343 - (void)wasHidden; |
| 347 | 344 |
| 348 // Evaluates U2F result. | 345 // Evaluates U2F result. |
| 349 - (void)evaluateU2FResultFromURL:(const GURL&)url; | 346 - (void)evaluateU2FResultFromURL:(const GURL&)url; |
| 350 | 347 |
| 351 @end | 348 @end |
| 352 | 349 |
| 353 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ | 350 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ |
| OLD | NEW |