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

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

Issue 481012: Mac: implement DnD of URLs onto Omnibox. (Closed)
Patch Set: Stuff. 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
« no previous file with comments | « chrome/browser/cocoa/tab_strip_controller.mm ('k') | chrome/browser/cocoa/tab_strip_view.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" 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_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/tab_strip_controller.mm ('k') | chrome/browser/cocoa/tab_strip_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698