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 24 matching lines...) Expand all Loading... |
35 // http://www.chromium.org/developers/design-documents/tab-strip-mac | 35 // http://www.chromium.org/developers/design-documents/tab-strip-mac |
36 @interface TabStripController : | 36 @interface TabStripController : |
37 NSObject<TabControllerTarget, | 37 NSObject<TabControllerTarget, |
38 URLDropTargetController, | 38 URLDropTargetController, |
39 GTMWindowSheetControllerDelegate> { | 39 GTMWindowSheetControllerDelegate> { |
40 @protected | 40 @protected |
41 // YES if tabs are to be laid out vertically instead of horizontally. | 41 // YES if tabs are to be laid out vertically instead of horizontally. |
42 BOOL verticalLayout_; | 42 BOOL verticalLayout_; |
43 | 43 |
44 @private | 44 @private |
45 TabContents* currentTab_; // weak, tab for which we're showing state | |
46 scoped_nsobject<TabStripView> tabStripView_; | 45 scoped_nsobject<TabStripView> tabStripView_; |
47 NSView* switchView_; // weak | 46 NSView* switchView_; // weak |
48 scoped_nsobject<NSView> dragBlockingView_; // avoid bad window server drags | 47 scoped_nsobject<NSView> dragBlockingView_; // avoid bad window server drags |
49 NewTabButton* newTabButton_; // weak, obtained from the nib. | 48 NewTabButton* newTabButton_; // weak, obtained from the nib. |
50 | 49 |
51 // Tracks the newTabButton_ for rollovers. | 50 // Tracks the newTabButton_ for rollovers. |
52 scoped_nsobject<NSTrackingArea> newTabTrackingArea_; | 51 scoped_nsobject<NSTrackingArea> newTabTrackingArea_; |
53 scoped_ptr<TabStripModelObserverBridge> bridge_; | 52 scoped_ptr<TabStripModelObserverBridge> bridge_; |
54 Browser* browser_; // weak | 53 Browser* browser_; // weak |
55 TabStripModel* tabStripModel_; // weak | 54 TabStripModel* tabStripModel_; // weak |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; | 223 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; |
225 - (void)updateDevToolsForContents:(TabContents*)contents; | 224 - (void)updateDevToolsForContents:(TabContents*)contents; |
226 | 225 |
227 @end | 226 @end |
228 | 227 |
229 // Notification sent when the number of tabs changes. The object will be this | 228 // Notification sent when the number of tabs changes. The object will be this |
230 // controller. | 229 // controller. |
231 extern NSString* const kTabStripNumberOfTabsChanged; | 230 extern NSString* const kTabStripNumberOfTabsChanged; |
232 | 231 |
233 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ | 232 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |