| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // "switched" every time the user switches tabs. The children of this view | 159 // "switched" every time the user switches tabs. The children of this view |
| 160 // will be released, so if you want them to stay around, make sure | 160 // will be released, so if you want them to stay around, make sure |
| 161 // you have retained them. | 161 // you have retained them. |
| 162 // |delegate| is the one listening to filtered TabStripModelObserverBridge's | 162 // |delegate| is the one listening to filtered TabStripModelObserverBridge's |
| 163 // events (see TabStripControllerDelegate for more details). | 163 // events (see TabStripControllerDelegate for more details). |
| 164 - (id)initWithView:(TabStripView*)view | 164 - (id)initWithView:(TabStripView*)view |
| 165 switchView:(NSView*)switchView | 165 switchView:(NSView*)switchView |
| 166 browser:(Browser*)browser | 166 browser:(Browser*)browser |
| 167 delegate:(id<TabStripControllerDelegate>)delegate; | 167 delegate:(id<TabStripControllerDelegate>)delegate; |
| 168 | 168 |
| 169 // Called by BrowserWindowController when the Browser is being destroyed. |
| 170 - (void)browserWillBeDestroyed; |
| 171 |
| 169 // Returns the model behind this controller. | 172 // Returns the model behind this controller. |
| 170 - (TabStripModel*)tabStripModel; | 173 - (TabStripModel*)tabStripModel; |
| 171 | 174 |
| 172 // Returns all tab views. | 175 // Returns all tab views. |
| 173 - (NSArray*)tabViews; | 176 - (NSArray*)tabViews; |
| 174 | 177 |
| 175 // Return the view for the currently active tab. | 178 // Return the view for the currently active tab. |
| 176 - (NSView*)activeTabView; | 179 - (NSView*)activeTabView; |
| 177 | 180 |
| 178 // Find the model index based on the x coordinate of the placeholder. If there | 181 // Find the model index based on the x coordinate of the placeholder. If there |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 - (void)removeCustomWindowControls; | 268 - (void)removeCustomWindowControls; |
| 266 | 269 |
| 267 @end | 270 @end |
| 268 | 271 |
| 269 @interface TabStripController(TestingAPI) | 272 @interface TabStripController(TestingAPI) |
| 270 - (void)setTabTitle:(TabController*)tab | 273 - (void)setTabTitle:(TabController*)tab |
| 271 withContents:(content::WebContents*)contents; | 274 withContents:(content::WebContents*)contents; |
| 272 @end | 275 @end |
| 273 | 276 |
| 274 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ | 277 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
| OLD | NEW |