| OLD | NEW |
| 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 // A view controller that contains several views, each managed by their own |
| 18 // some kind of web view, but nothing in this class assumes that) and a toolbar | 18 // view controllers. |
| 19 // view, each managed by their own view controllers. | |
| 20 // Subclasses manage the specific layout of these view controllers. | |
| 21 @interface TabContainerViewController | 19 @interface TabContainerViewController |
| 22 : UIViewController<MenuPresentationDelegate, ZoomTransitionDelegate> | 20 : UIViewController<MenuPresentationDelegate, ZoomTransitionDelegate> |
| 23 | 21 |
| 24 // View controller showing the main content for the tab. If there is no | 22 // 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 | 23 // toolbar view controller set, the contents of this view controller will |
| 26 // fill all of the tab container's view. | 24 // fill all of the tab container's view. |
| 27 @property(nonatomic, strong) UIViewController* contentViewController; | 25 @property(nonatomic, strong) UIViewController* contentViewController; |
| 28 | 26 |
| 29 // View controller showing the toolbar for the tab. It will be of a fixed | 27 // 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 | 28 // height (determined internally by the tab container), but will span the |
| 31 // width of the tab. | 29 // width of the tab. |
| 32 @property(nonatomic, strong) UIViewController* toolbarViewController; | 30 @property(nonatomic, strong) UIViewController* toolbarViewController; |
| 33 | 31 |
| 34 @end | 32 // View controller showing the tab strip. It will be of a fixed |
| 33 // height (determined internally by the tab container), but will span the |
| 34 // width of the tab. |
| 35 @property(nonatomic, strong) UIViewController* tabStripViewController; |
| 35 | 36 |
| 36 // Tab container which positions the toolbar at the top. | |
| 37 @interface TopToolbarTabViewController : TabContainerViewController | |
| 38 @end | 37 @end |
| 39 | 38 |
| 40 // Tab container which positions the toolbar at the bottom. | 39 // Tab container which positions the toolbar at the bottom. |
| 41 @interface BottomToolbarTabViewController : TabContainerViewController | 40 @interface BottomToolbarTabViewController : TabContainerViewController |
| 42 @end | 41 @end |
| 43 | 42 |
| 44 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_TAB_CONTAINER_VIEW_CONTROLLER_H_ | 43 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_TAB_CONTAINER_VIEW_CONTROLLER_H_ |
| OLD | NEW |