summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/download_item_button.h
blob: b421e3bf4a41b5baebd286ca84f07b5773248fcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Cocoa/Cocoa.h>

#include "base/file_path.h"
#import "chrome/browser/cocoa/draggable_button.h"

@class DownloadItemController;

// A button that is a drag source for a file and that displays a context menu
// instead of firing an action when clicked in a certain area.
@interface DownloadItemButton : DraggableButton {
 @private
  FilePath downloadPath_;
  DownloadItemController* controller_;  // weak
}

@property(assign, nonatomic) FilePath download;
@property(assign, nonatomic) DownloadItemController* controller;

// Overridden from DraggableButton.
- (void)beginDrag:(NSEvent*)event;

@end