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

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

Issue 2603783002: [Clean Skeleton] Fix menu dismiss and positions. (Closed)
Patch Set: Changed menu sizing. Created 3 years, 11 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/presenters/menu_presentation_delegate.h" 15 #import "ios/clean/chrome/browser/ui/presenters/menu_presentation_delegate.h"
15 16
16 // Base class for a view controller that contains a content view (generally 17 // Base class for a view controller that contains a content view (generally
17 // some kind of web view, but nothing in this class assumes that) and a toolbar 18 // some kind of web view, but nothing in this class assumes that) and a toolbar
18 // view, each managed by their own view controllers. 19 // view, each managed by their own view controllers.
19 // Subclasses manage the specific layout of these view controllers. 20 // Subclasses manage the specific layout of these view controllers.
20 @interface TabContainerViewController 21 @interface TabContainerViewController
21 : UIViewController<MenuPresentationDelegate> 22 : UIViewController<MenuPresentationDelegate, ZoomTransitionDelegate>
22 23
23 // View controller showing the main content for the tab. If there is no 24 // View controller showing the main content for the tab. If there is no
24 // toolbar view controller set, the contents of this view controller will 25 // toolbar view controller set, the contents of this view controller will
25 // fill all of the tab container's view. 26 // fill all of the tab container's view.
26 @property(nonatomic, strong) UIViewController* contentViewController; 27 @property(nonatomic, strong) UIViewController* contentViewController;
27 28
28 // View controller showing the toolbar for the tab. It will be of a fixed 29 // View controller showing the toolbar for the tab. It will be of a fixed
29 // height (determined internally by the tab container), but will span the 30 // height (determined internally by the tab container), but will span the
30 // width of the tab. 31 // width of the tab.
31 @property(nonatomic, strong) UIViewController* toolbarViewController; 32 @property(nonatomic, strong) UIViewController* toolbarViewController;
32 33
33 @end 34 @end
34 35
35 // Tab container which positions the toolbar at the top. 36 // Tab container which positions the toolbar at the top.
36 @interface TopToolbarTabViewController : TabContainerViewController 37 @interface TopToolbarTabViewController : TabContainerViewController
37 @end 38 @end
38 39
39 // Tab container which positions the toolbar at the bottom. 40 // Tab container which positions the toolbar at the bottom.
40 @interface BottomToolbarTabViewController : TabContainerViewController 41 @interface BottomToolbarTabViewController : TabContainerViewController
41 @end 42 @end
42 43
43 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_TAB_CONTAINER_VIEW_CONTROLLER_H_ 44 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_TAB_CONTAINER_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698