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

Side by Side Diff: ios/clean/chrome/browser/ui/tab/tab_container_view_controller.h

Issue 2698183002: [tab_container] Consolidate tabStrip into tab_container. (Closed)
Patch Set: Address comments. 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 // ====== New Architecture ===== 5 // ====== New Architecture =====
6 // = This code is only used in the new iOS Chrome architecture. = 6 // = This code is only used in the new iOS Chrome architecture. =
7 // ============================================================================ 7 // ============================================================================
8 8
9 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TAB_TAB_CONTAINER_VIEW_CONTROLLER_H_ 9 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TAB_TAB_CONTAINER_VIEW_CONTROLLER_H_
10 #define IOS_CLEAN_CHROME_BROWSER_UI_TAB_TAB_CONTAINER_VIEW_CONTROLLER_H_ 10 #define IOS_CLEAN_CHROME_BROWSER_UI_TAB_TAB_CONTAINER_VIEW_CONTROLLER_H_
11 11
12 #import <UIKit/UIKit.h> 12 #import <UIKit/UIKit.h>
13 13
14 #import "ios/clean/chrome/browser/ui/animators/zoom_transition_delegate.h" 14 #import "ios/clean/chrome/browser/ui/animators/zoom_transition_delegate.h"
15 #import "ios/clean/chrome/browser/ui/presenters/menu_presentation_delegate.h" 15 #import "ios/clean/chrome/browser/ui/presenters/menu_presentation_delegate.h"
16 16
17 // Base class for a view controller that contains a content view (generally 17 // Abstract base class for a view controller that contains several views,
18 // some kind of web view, but nothing in this class assumes that) and a toolbar 18 // each managed by their own view controllers.
19 // view, each managed by their own view controllers.
20 // Subclasses manage the specific layout of these view controllers. 19 // Subclasses manage the specific layout of these view controllers.
21 @interface TabContainerViewController 20 @interface TabContainerViewController
22 : UIViewController<MenuPresentationDelegate, ZoomTransitionDelegate> 21 : UIViewController<MenuPresentationDelegate, ZoomTransitionDelegate>
23 22
24 // View controller showing the main content for the tab. If there is no 23 // View controller showing the main content for the tab. If there is no
25 // toolbar view controller set, the contents of this view controller will 24 // toolbar view controller set, the contents of this view controller will
26 // fill all of the tab container's view. 25 // fill all of the tab container's view.
27 @property(nonatomic, strong) UIViewController* contentViewController; 26 @property(nonatomic, strong) UIViewController* contentViewController;
28 27
29 // View controller showing the toolbar for the tab. It will be of a fixed 28 // View controller showing the toolbar for the tab. It will be of a fixed
30 // height (determined internally by the tab container), but will span the 29 // height (determined internally by the tab container), but will span the
31 // width of the tab. 30 // width of the tab.
32 @property(nonatomic, strong) UIViewController* toolbarViewController; 31 @property(nonatomic, strong) UIViewController* toolbarViewController;
33 32
33 // View controller showing the tab strip. It will be of a fixed
34 // height (determined internally by the tab container), but will span the
35 // width of the tab.
36 @property(nonatomic, strong) UIViewController* tabStripViewController;
37
34 @end 38 @end
35 39
36 // Tab container which positions the toolbar at the top. 40 // Tab container which positions the toolbar at the top.
37 @interface TopToolbarTabViewController : TabContainerViewController 41 @interface TopToolbarTabViewController : TabContainerViewController
38 @end 42 @end
39 43
40 // Tab container which positions the toolbar at the bottom. 44 // Tab container which positions the toolbar at the bottom.
41 @interface BottomToolbarTabViewController : TabContainerViewController 45 @interface BottomToolbarTabViewController : TabContainerViewController
42 @end 46 @end
43 47
44 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_TAB_CONTAINER_VIEW_CONTROLLER_H_ 48 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_TAB_CONTAINER_VIEW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/clean/chrome/browser/ui/tab/BUILD.gn ('k') | ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698