Home | History | Annotate | Download | only in download
      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.
      4 
      5 #import <Cocoa/Cocoa.h>
      6 
      7 #include "base/files/file_path.h"
      8 #import "chrome/browser/ui/cocoa/draggable_button.h"
      9 
     10 @class DownloadItemController;
     11 
     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
     18 }
     19 
     20 @property(assign, nonatomic) base::FilePath download;
     21 @property(assign, nonatomic) DownloadItemController* controller;
     22 
     23 // Overridden from DraggableButton.
     24 - (void)beginDrag:(NSEvent*)event;
     25 
     26 @end
     27