OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_TABS_TAB_PRIVATE_H_ |
| 6 #define IOS_CHROME_BROWSER_TABS_TAB_PRIVATE_H_ |
| 7 |
| 8 #include "ios/net/request_tracker.h" |
| 9 |
| 10 // Exposed private methods for testing purpose. |
| 11 @interface Tab () |
| 12 |
| 13 - (OpenInController*)openInController; |
| 14 - (void)closeThisTab; |
| 15 - (CRWSessionEntry*)currentSessionEntry; |
| 16 - (void)setShouldObserveInfoBarManager:(BOOL)shouldObserveInfoBarManager; |
| 17 - (void)setShouldObserveFaviconChanges:(BOOL)shouldObserveFaviconChanges; |
| 18 |
| 19 @end |
| 20 |
| 21 @interface Tab (TestingSupport) |
| 22 |
| 23 // Replaces the existing web state. This method should be called once |
| 24 // right after init and before any call to |view|. |
| 25 - (void)replaceWebStateImpl:(std::unique_ptr<web::WebStateImpl>)webStateImpl; |
| 26 |
| 27 // Replaces the existing |externalAppLauncher_|. |
| 28 - (void)replaceExternalAppLauncher:(id)externalAppLauncher; |
| 29 |
| 30 - (TabModel*)parentTabModel; |
| 31 |
| 32 - (FormInputAccessoryViewController*)inputAccessoryViewController; |
| 33 |
| 34 @end |
| 35 |
| 36 #endif // IOS_CHROME_BROWSER_TABS_TAB_PRIVATE_H_ |
OLD | NEW |