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
3 // found in the LICENSE file.
5 #import <Cocoa/Cocoa.h>
7 #include "base/files/file_path.h"
8 #import "chrome/browser/ui/cocoa/draggable_button.h"
10 @
class DownloadItemController
;
12 // 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 @interface DownloadItemButton
: DraggableButton
<NSMenuDelegate
> {
16 base::FilePath downloadPath_
;
17 DownloadItemController
* controller_
; // weak
20 @
property(assign
, nonatomic
) base::FilePath download
;
21 @
property(assign
, nonatomic
) DownloadItemController
* controller
;
23 // Overridden from DraggableButton.
24 - (void)beginDrag
:(NSEvent
*)event
;