Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Side by Side Diff: ios/chrome/browser/tabs/tab_private.h

Issue 2685653002: Remove TabModel -replaceWebState: method. (Closed)
Patch Set: Fix indentation in the initializer. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/chrome/browser/tabs/tab_model_unittest.mm ('k') | ios/chrome/browser/tabs/tab_unittest.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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_PRIVATE_H_ 5 #ifndef IOS_CHROME_BROWSER_TABS_TAB_PRIVATE_H_
6 #define IOS_CHROME_BROWSER_TABS_TAB_PRIVATE_H_ 6 #define IOS_CHROME_BROWSER_TABS_TAB_PRIVATE_H_
7 7
8 #include "ios/net/request_tracker.h" 8 #include "ios/net/request_tracker.h"
9 9
10 namespace web { 10 namespace web {
11 class WebStateImpl; 11 class WebStateImpl;
12 } 12 }
13 13
14 // Exposed private methods for testing purpose. 14 // Exposed private methods for testing purpose.
15 @interface Tab () 15 @interface Tab ()
16 16
17 - (OpenInController*)openInController; 17 - (OpenInController*)openInController;
18 - (void)closeThisTab; 18 - (void)closeThisTab;
19 - (CRWSessionEntry*)currentSessionEntry; 19 - (CRWSessionEntry*)currentSessionEntry;
20 - (void)setShouldObserveInfoBarManager:(BOOL)shouldObserveInfoBarManager; 20 - (void)setShouldObserveInfoBarManager:(BOOL)shouldObserveInfoBarManager;
21 - (void)setShouldObserveFaviconChanges:(BOOL)shouldObserveFaviconChanges; 21 - (void)setShouldObserveFaviconChanges:(BOOL)shouldObserveFaviconChanges;
22 22
23 @end 23 @end
24 24
25 @interface Tab (TestingSupport) 25 @interface Tab (TestingSupport)
26 26
27 // Replaces the existing web state. This method should be called once
28 // right after init and before any call to |view|.
29 // TODO(crbug.com/620465): change to std::unique_ptr<web::WebState> once
30 // Tab no longer uses private //ios/web APIs.
31 - (void)replaceWebState:(std::unique_ptr<web::WebStateImpl>)webState;
32
33 // Replaces the existing |externalAppLauncher_|. 27 // Replaces the existing |externalAppLauncher_|.
34 - (void)replaceExternalAppLauncher:(id)externalAppLauncher; 28 - (void)replaceExternalAppLauncher:(id)externalAppLauncher;
35 29
36 - (TabModel*)parentTabModel; 30 - (TabModel*)parentTabModel;
37 31
38 - (FormInputAccessoryViewController*)inputAccessoryViewController; 32 - (FormInputAccessoryViewController*)inputAccessoryViewController;
39 33
40 @end 34 @end
41 35
42 #endif // IOS_CHROME_BROWSER_TABS_TAB_PRIVATE_H_ 36 #endif // IOS_CHROME_BROWSER_TABS_TAB_PRIVATE_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/tabs/tab_model_unittest.mm ('k') | ios/chrome/browser/tabs/tab_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698