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

Unified Diff: chrome/browser/cocoa/tab_strip_controller.h

Issue 43137: Add a TabController class to manage a TabView (with corresponding xib). Rewri... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/tab_strip_controller.h
===================================================================
--- chrome/browser/cocoa/tab_strip_controller.h (revision 11538)
+++ chrome/browser/cocoa/tab_strip_controller.h (working copy)
@@ -20,10 +20,11 @@
// TabStripModel. The Obj-C part of this class handles drag and drop and all
// the other Cocoa-y aspects.
//
-// When a new tab is created, it loads the contents, including
-// toolbar, from a separate nib file and replaces the contentView of the
-// window. As tabs are switched, the single child of the contentView is
-// swapped around to hold the contents (toolbar and all) representing that tab.
+// When a new tab is created, we create a TabController which manages loading
+// the contents, including toolbar, from a separate nib file. This controller
+// then handles replacing the contentView of the window. As tabs are switched,
+// the single child of the contentView is swapped around to hold the contents
+// (toolbar and all) representing that tab.
@interface TabStripController : NSObject {
@private
@@ -38,7 +39,10 @@
// for the toolbar and associated tab contents) given an index. This needs
// to be kept in the same order as the tab strip's model as we will be
// using its index from the TabStripModelObserver calls.
- NSMutableArray* tabControllerArray_;
+ NSMutableArray* tabContentsArray_;
+ // an array of TabControllers which manage the actual tab views. As above,
+ // this is kept in the same order as the tab strip model.
+ NSMutableArray* tabArray_;
}
// Initialize the controller with a view, model, and command updater for

Powered by Google App Engine
This is Rietveld 408576698