Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / download / download_item_button.h
blobecc2ee3f87d0e3cb8234f83051b5920655d0586d
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> {
15 @private
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;
26 @end