| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_STRIP_VIEW_H_ | |
| 6 #define CHROME_BROWSER_UI_COCOA_TAB_STRIP_VIEW_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #import <Cocoa/Cocoa.h> | |
| 10 | |
| 11 #include "base/scoped_nsobject.h" | |
| 12 #import "chrome/browser/ui/cocoa/url_drop_target.h" | |
| 13 | |
| 14 @class NewTabButton; | |
| 15 | |
| 16 // A view class that handles rendering the tab strip and drops of URLS with | |
| 17 // a positioning locator for drop feedback. | |
| 18 | |
| 19 @interface TabStripView : NSView<URLDropTarget> { | |
| 20 @private | |
| 21 NSTimeInterval lastMouseUp_; | |
| 22 | |
| 23 // Handles being a drag-and-drop target. | |
| 24 scoped_nsobject<URLDropTargetHandler> dropHandler_; | |
| 25 | |
| 26 // Weak; the following come from the nib. | |
| 27 NewTabButton* newTabButton_; | |
| 28 | |
| 29 // Whether the drop-indicator arrow is shown, and if it is, the coordinate of | |
| 30 // its tip. | |
| 31 BOOL dropArrowShown_; | |
| 32 NSPoint dropArrowPosition_; | |
| 33 } | |
| 34 | |
| 35 @property(assign, nonatomic) IBOutlet NewTabButton* newTabButton; | |
| 36 @property(assign, nonatomic) BOOL dropArrowShown; | |
| 37 @property(assign, nonatomic) NSPoint dropArrowPosition; | |
| 38 | |
| 39 @end | |
| 40 | |
| 41 // Protected methods subclasses can override to alter behavior. Clients should | |
| 42 // not call these directly. | |
| 43 @interface TabStripView(Protected) | |
| 44 - (void)drawBottomBorder:(NSRect)bounds; | |
| 45 - (BOOL)doubleClickMinimizesWindow; | |
| 46 @end | |
| 47 | |
| 48 #endif // CHROME_BROWSER_UI_COCOA_TAB_STRIP_VIEW_H_ | |
| OLD | NEW |