Home | History | Annotate | Download | only in download
      1 // Copyright 2013 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 #ifndef CHROME_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_ITEM_H_
      6 #define CHROME_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_ITEM_H_
      7 
      8 #include "ui/gfx/native_widget_types.h"
      9 
     10 namespace content {
     11 class DownloadItem;
     12 }
     13 
     14 namespace gfx {
     15 class Image;
     16 }
     17 
     18 // Helper function for download views to use when acting as a drag source for a
     19 // DownloadItem. If |icon| is NULL, no image will be accompany the drag. |view|
     20 // is only required for Mac OS X, elsewhere it can be NULL.
     21 void DragDownloadItem(const content::DownloadItem* download,
     22                       gfx::Image* icon,
     23                       gfx::NativeView view);
     24 
     25 #endif  // CHROME_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_ITEM_H_
     26