Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: chrome/browser/cocoa/tab_strip_view.h

Issue 337055: Mac: implement drag-and-drop of URLs to tabs/tab strip. (Closed)
Patch Set: Give another line back. Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #import "chrome/browser/cocoa/url_drop_target.h"
12
10 // A view class that handles rendering the tab strip 13 // A view class that handles rendering the tab strip
11 14
12 @interface TabStripView : NSView { 15 @interface TabStripView : NSView {
13 @private 16 @private
14 NSTimeInterval lastMouseUp_; 17 NSTimeInterval lastMouseUp_;
15 18
19 // Handles being a drag-and-drop target.
20 scoped_nsobject<URLDropTargetHandler> dropHandler_;
21
16 // Weak; the following come from the nib. 22 // Weak; the following come from the nib.
17 NSButton* newTabButton_; 23 NSButton* newTabButton_;
18 } 24 }
19 25
20 @property(assign, nonatomic) IBOutlet NSButton* newTabButton; 26 @property(assign, nonatomic) IBOutlet NSButton* newTabButton;
21 27
22 @end 28 @end
23 29
24 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_VIEW_H_ 30 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698