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