OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
162 // "switched" every time the user switches tabs. The children of this view | 162 // "switched" every time the user switches tabs. The children of this view |
163 // will be released, so if you want them to stay around, make sure | 163 // will be released, so if you want them to stay around, make sure |
164 // you have retained them. | 164 // you have retained them. |
165 // |delegate| is the one listening to filtered TabStripModelObserverBridge's | 165 // |delegate| is the one listening to filtered TabStripModelObserverBridge's |
166 // events (see TabStripControllerDelegate for more details). | 166 // events (see TabStripControllerDelegate for more details). |
167 - (id)initWithView:(TabStripView*)view | 167 - (id)initWithView:(TabStripView*)view |
168 switchView:(NSView*)switchView | 168 switchView:(NSView*)switchView |
169 browser:(Browser*)browser | 169 browser:(Browser*)browser |
170 delegate:(id<TabStripControllerDelegate>)delegate; | 170 delegate:(id<TabStripControllerDelegate>)delegate; |
171 | 171 |
172 // Return the view for the currently selected tab. | 172 // Return the view for the currently selected tab. |
Avi (use Gerrit)
2011/04/09 16:32:30
update comment: selected>active
Robert Sesek
2011/04/19 21:03:38
Done.
| |
173 - (NSView*)selectedTabView; | 173 - (NSView*)activeTabView; |
174 | 174 |
175 // Set the frame of the selected tab, also updates the internal frame dict. | 175 // Set the frame of the selected tab, also updates the internal frame dict. |
Avi (use Gerrit)
2011/04/09 16:32:30
update comment: selected>active
Robert Sesek
2011/04/19 21:03:38
Done.
| |
176 - (void)setFrameOfSelectedTab:(NSRect)frame; | 176 - (void)setFrameOfActiveTab:(NSRect)frame; |
177 | 177 |
178 // Move the given tab at index |from| in this window to the location of the | 178 // Move the given tab at index |from| in this window to the location of the |
179 // current placeholder. | 179 // current placeholder. |
180 - (void)moveTabFromIndex:(NSInteger)from; | 180 - (void)moveTabFromIndex:(NSInteger)from; |
181 | 181 |
182 // Drop a given TabContents at the location of the current placeholder. If there | 182 // Drop a given TabContents at the location of the current placeholder. If there |
183 // is no placeholder, it will go at the end. Used when dragging from another | 183 // is no placeholder, it will go at the end. Used when dragging from another |
184 // window when we don't have access to the TabContents as part of our strip. | 184 // window when we don't have access to the TabContents as part of our strip. |
185 // |frame| is in the coordinate system of the tab strip view and represents | 185 // |frame| is in the coordinate system of the tab strip view and represents |
186 // where the user dropped the new tab so it can be animated into its correct | 186 // where the user dropped the new tab so it can be animated into its correct |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
264 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; | 264 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; |
265 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; | 265 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; |
266 | 266 |
267 @end | 267 @end |
268 | 268 |
269 // Notification sent when the number of tabs changes. The object will be this | 269 // Notification sent when the number of tabs changes. The object will be this |
270 // controller. | 270 // controller. |
271 extern NSString* const kTabStripNumberOfTabsChanged; | 271 extern NSString* const kTabStripNumberOfTabsChanged; |
272 | 272 |
273 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ | 273 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |