| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #import "chrome/browser/ui/cocoa/background_gradient_view.h" | |
| 12 #import "chrome/browser/ui/cocoa/url_drop_target.h" | 11 #import "chrome/browser/ui/cocoa/url_drop_target.h" |
| 13 | 12 |
| 14 @class NewTabButton; | 13 @class NewTabButton; |
| 15 @class TabStripController; | 14 @class TabStripController; |
| 16 | 15 |
| 17 // A view class that handles rendering the tab strip and drops of URLS with | 16 // A view class that handles rendering the tab strip and drops of URLS with |
| 18 // a positioning locator for drop feedback. | 17 // a positioning locator for drop feedback. |
| 19 | 18 |
| 20 @interface TabStripView : BackgroundGradientView<URLDropTarget> { | 19 @interface TabStripView : NSView<URLDropTarget> { |
| 21 @private | 20 @private |
| 22 TabStripController* controller_; // Weak; owns us. | 21 TabStripController* controller_; // Weak; owns us. |
| 23 | 22 |
| 24 NSTimeInterval lastMouseUp_; | 23 NSTimeInterval lastMouseUp_; |
| 25 | 24 |
| 26 // Handles being a drag-and-drop target. | 25 // Handles being a drag-and-drop target. |
| 27 base::scoped_nsobject<URLDropTargetHandler> dropHandler_; | 26 base::scoped_nsobject<URLDropTargetHandler> dropHandler_; |
| 28 | 27 |
| 29 base::scoped_nsobject<NewTabButton> newTabButton_; | 28 base::scoped_nsobject<NewTabButton> newTabButton_; |
| 30 | 29 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 53 @interface TabStripView (Protected) | 52 @interface TabStripView (Protected) |
| 54 - (void)drawBottomBorder:(NSRect)bounds; | 53 - (void)drawBottomBorder:(NSRect)bounds; |
| 55 - (BOOL)doubleClickMinimizesWindow; | 54 - (BOOL)doubleClickMinimizesWindow; |
| 56 @end | 55 @end |
| 57 | 56 |
| 58 @interface TabStripView (TestingAPI) | 57 @interface TabStripView (TestingAPI) |
| 59 - (void)setNewTabButton:(NewTabButton*)button; | 58 - (void)setNewTabButton:(NewTabButton*)button; |
| 60 @end | 59 @end |
| 61 | 60 |
| 62 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ | 61 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ |
| OLD | NEW |