| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_VIEW_H_ | 5 #ifndef CHROME_BROWSER_COCOA_TAB_STRIP_VIEW_H_ |
| 6 #define CHROME_BROWSER_COCOA_TAB_STRIP_VIEW_H_ | 6 #define CHROME_BROWSER_COCOA_TAB_STRIP_VIEW_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/scoped_nsobject.h" | 10 #include "base/scoped_nsobject.h" |
| 11 #import "chrome/browser/cocoa/url_drop_target.h" | 11 #import "chrome/browser/cocoa/url_drop_target.h" |
| 12 | 12 |
| 13 // A view class that handles rendering the tab strip | 13 // A view class that handles rendering the tab strip |
| 14 | 14 |
| 15 @interface TabStripView : NSView { | 15 @interface TabStripView : NSView<URLDropTarget> { |
| 16 @private | 16 @private |
| 17 NSTimeInterval lastMouseUp_; | 17 NSTimeInterval lastMouseUp_; |
| 18 | 18 |
| 19 // Handles being a drag-and-drop target. | 19 // Handles being a drag-and-drop target. |
| 20 scoped_nsobject<URLDropTargetHandler> dropHandler_; | 20 scoped_nsobject<URLDropTargetHandler> dropHandler_; |
| 21 | 21 |
| 22 // Weak; the following come from the nib. | 22 // Weak; the following come from the nib. |
| 23 NSButton* newTabButton_; | 23 NSButton* newTabButton_; |
| 24 | 24 |
| 25 // Whether the drop-indicator arrow is shown, and if it is, the coordinate of | 25 // Whether the drop-indicator arrow is shown, and if it is, the coordinate of |
| 26 // its tip. | 26 // its tip. |
| 27 BOOL dropArrowShown_; | 27 BOOL dropArrowShown_; |
| 28 NSPoint dropArrowPosition_; | 28 NSPoint dropArrowPosition_; |
| 29 } | 29 } |
| 30 | 30 |
| 31 @property(assign, nonatomic) IBOutlet NSButton* newTabButton; | 31 @property(assign, nonatomic) IBOutlet NSButton* newTabButton; |
| 32 @property(assign, nonatomic) BOOL dropArrowShown; | 32 @property(assign, nonatomic) BOOL dropArrowShown; |
| 33 @property(assign, nonatomic) NSPoint dropArrowPosition; | 33 @property(assign, nonatomic) NSPoint dropArrowPosition; |
| 34 | 34 |
| 35 @end | 35 @end |
| 36 | 36 |
| 37 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_VIEW_H_ | 37 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_VIEW_H_ |
| OLD | NEW |