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

Unified Diff: ios/chrome/browser/ui/tab/tab_container_view_controller.h

Issue 2587023002: Upstream Chrome on iOS source code [8/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/ui/tab/README.md ('k') | ios/chrome/browser/ui/tab/tab_container_view_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/tab/tab_container_view_controller.h
diff --git a/ios/chrome/browser/ui/tab/tab_container_view_controller.h b/ios/chrome/browser/ui/tab/tab_container_view_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..a0c976a2bdecb6b266a338b52e2eb839b8708f65
--- /dev/null
+++ b/ios/chrome/browser/ui/tab/tab_container_view_controller.h
@@ -0,0 +1,43 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// ====== New Architecture =====
+// = This code is only used in the new iOS Chrome architecture. =
+// ============================================================================
+
+#ifndef IOS_CHROME_BROWSER_UI_TAB_TAB_CONTAINER_VIEW_CONTROLLER_H_
+#define IOS_CHROME_BROWSER_UI_TAB_TAB_CONTAINER_VIEW_CONTROLLER_H_
+
+#import <UIKit/UIKit.h>
+
+#import "ios/chrome/browser/ui/presenters/menu_presentation_delegate.h"
+
+// Base class for a view controller that contains a content view (generally
+// some kind of web view, but nothing in this class assumes that) and a toolbar
+// view, each managed by their own view controllers.
+// Subclasses manage the specific layout of these view controllers.
+@interface TabContainerViewController
+ : UIViewController<MenuPresentationDelegate>
+
+// View controller showing the main content for the tab. If there is no
+// toolbar view controller set, the contents of this view controller will
+// fill all of the tab container's view.
+@property(nonatomic, strong) UIViewController* contentViewController;
+
+// View controller showing the toolbar for the tab. It will be of a fixed
+// height (determined internally by the tab container), but will span the
+// width of the tab.
+@property(nonatomic, strong) UIViewController* toolbarViewController;
+
+@end
+
+// Tab container which positions the toolbar at the top.
+@interface TopToolbarTabViewController : TabContainerViewController
+@end
+
+// Tab container which positions the toolbar at the bottom.
+@interface BottomToolbarTabViewController : TabContainerViewController
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_TAB_TAB_CONTAINER_VIEW_CONTROLLER_H_
« no previous file with comments | « ios/chrome/browser/ui/tab/README.md ('k') | ios/chrome/browser/ui/tab/tab_container_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698