OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #import "chrome/browser/ui/cocoa/draggable_button.h" | 8 #import "chrome/browser/ui/cocoa/draggable_button.h" |
| 9 #import "chrome/browser/ui/cocoa/themed_window.h" |
9 | 10 |
10 @class DownloadItemController; | 11 @class DownloadItemController; |
11 | 12 |
12 // A button that is a drag source for a file and that displays a context menu | 13 // A button that is a drag source for a file and that displays a context menu |
13 // instead of firing an action when clicked in a certain area. | 14 // instead of firing an action when clicked in a certain area. |
14 @interface DownloadItemButton : DraggableButton<NSMenuDelegate> { | 15 @interface DownloadItemButton |
| 16 : DraggableButton<NSMenuDelegate, ThemedWindowDrawing> { |
15 @private | 17 @private |
16 base::FilePath downloadPath_; | 18 base::FilePath downloadPath_; |
17 DownloadItemController* controller_; // weak | 19 DownloadItemController* controller_; // weak |
18 } | 20 } |
19 | 21 |
20 @property(assign, nonatomic) base::FilePath download; | 22 @property(assign, nonatomic) base::FilePath download; |
21 @property(assign, nonatomic) DownloadItemController* controller; | 23 @property(assign, nonatomic) DownloadItemController* controller; |
22 | 24 |
23 // Overridden from DraggableButton. | 25 // Overridden from DraggableButton. |
24 - (void)beginDrag:(NSEvent*)event; | 26 - (void)beginDrag:(NSEvent*)event; |
25 | 27 |
26 @end | 28 @end |
OLD | NEW |