OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_COCOA_TAB_STRIP_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ |
6 #define CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 170 |
171 // Drop a given TabContents at the location of the current placeholder. If there | 171 // Drop a given TabContents at the location of the current placeholder. If there |
172 // is no placeholder, it will go at the end. Used when dragging from another | 172 // is no placeholder, it will go at the end. Used when dragging from another |
173 // window when we don't have access to the TabContents as part of our strip. | 173 // window when we don't have access to the TabContents as part of our strip. |
174 // |frame| is in the coordinate system of the tab strip view and represents | 174 // |frame| is in the coordinate system of the tab strip view and represents |
175 // where the user dropped the new tab so it can be animated into its correct | 175 // where the user dropped the new tab so it can be animated into its correct |
176 // location when the tab is added to the model. If the tab was pinned in its | 176 // location when the tab is added to the model. If the tab was pinned in its |
177 // previous window, setting |pinned| to YES will propagate that state to the | 177 // previous window, setting |pinned| to YES will propagate that state to the |
178 // new window. Mini-tabs are either app or pinned tabs; the app state is stored | 178 // new window. Mini-tabs are either app or pinned tabs; the app state is stored |
179 // by the |contents|, but the |pinned| state is the caller's responsibility. | 179 // by the |contents|, but the |pinned| state is the caller's responsibility. |
180 - (void)dropTabContents:(TabContents*)contents | 180 - (void)dropTabContents:(TabContentsWrapper*)contents |
181 withFrame:(NSRect)frame | 181 withFrame:(NSRect)frame |
182 asPinnedTab:(BOOL)pinned; | 182 asPinnedTab:(BOOL)pinned; |
183 | 183 |
184 // Returns the index of the subview |view|. Returns -1 if not present. Takes | 184 // Returns the index of the subview |view|. Returns -1 if not present. Takes |
185 // closing tabs into account such that this index will correctly match the tab | 185 // closing tabs into account such that this index will correctly match the tab |
186 // model. If |view| is in the process of closing, returns -1, as closing tabs | 186 // model. If |view| is in the process of closing, returns -1, as closing tabs |
187 // are no longer in the model. | 187 // are no longer in the model. |
188 - (NSInteger)modelIndexForTabView:(NSView*)view; | 188 - (NSInteger)modelIndexForTabView:(NSView*)view; |
189 | 189 |
190 // Return the view at a given index. | 190 // Return the view at a given index. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; | 250 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; |
251 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; | 251 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; |
252 | 252 |
253 @end | 253 @end |
254 | 254 |
255 // Notification sent when the number of tabs changes. The object will be this | 255 // Notification sent when the number of tabs changes. The object will be this |
256 // controller. | 256 // controller. |
257 extern NSString* const kTabStripNumberOfTabsChanged; | 257 extern NSString* const kTabStripNumberOfTabsChanged; |
258 | 258 |
259 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ | 259 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |