OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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_UI_MAIN_BROWSER_VIEW_INFORMATION_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_MAIN_BROWSER_VIEW_INFORMATION_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 @class BrowserViewController; |
| 11 @class TabModel; |
| 12 |
| 13 namespace ios { |
| 14 class ChromeBrowserState; |
| 15 } |
| 16 |
| 17 // Information about the Browser View, controllers and tab model. |
| 18 @protocol BrowserViewInformation<NSObject> |
| 19 |
| 20 // The normal (non-OTR) BrowserViewController |
| 21 @property(nonatomic, retain) BrowserViewController* mainBVC; |
| 22 // The normal (non-OTR) TabModel corresponding to mainBVC. |
| 23 @property(nonatomic, retain) TabModel* mainTabModel; |
| 24 // The OTR BrowserViewController. |
| 25 @property(nonatomic, retain) BrowserViewController* otrBVC; |
| 26 // The OTR TabModel corresponding to otrBVC. |
| 27 @property(nonatomic, retain) TabModel* otrTabModel; |
| 28 // The BrowserViewController that is currently being used (one of mainBVC or |
| 29 // otrBVC). The other, if present, is in suspended mode. |
| 30 @property(nonatomic, assign) BrowserViewController* currentBVC; |
| 31 |
| 32 // Halts all tabs from all TabModels. |
| 33 - (void)haltAllTabs; |
| 34 |
| 35 // Returns the browser state corresponding to the current browser view. |
| 36 - (ios::ChromeBrowserState*)currentBrowserState; |
| 37 |
| 38 // Returns the tab model corresponding to the current browser view. |
| 39 - (TabModel*)currentTabModel; |
| 40 |
| 41 // Clean up the device sharing manager. |
| 42 - (void)cleanDeviceSharingManager; |
| 43 |
| 44 @end |
| 45 |
| 46 #endif // IOS_CHROME_BROWSER_UI_MAIN_BROWSER_VIEW_INFORMATION_H_ |
OLD | NEW |