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

Side by Side Diff: ios/chrome/browser/ui/main/browser_view_information.h

Issue 2590473002: Upstream Chrome on iOS source code [5/11]. (Closed)
Patch Set: Created 4 years 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
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/keyboard_commands_egtest.mm ('k') | ios/chrome/browser/ui/main/browser_view_wrangler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698