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