| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "chrome/browser/ui/cocoa/tab_contents/web_drag_source.h" | 5 #import "chrome/browser/ui/cocoa/tab_contents/web_drag_source.h" |
| 6 | 6 |
| 7 #include "app/mac/nsimage_cache.h" | 7 #include "app/mac/nsimage_cache.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/sys_string_conversions.h" | 10 #include "base/sys_string_conversions.h" |
| 11 #include "base/task.h" | 11 #include "base/task.h" |
| 12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 15 #include "chrome/browser/download/download_manager.h" | 15 #include "chrome/browser/download/download_manager.h" |
| 16 #include "chrome/browser/download/download_util.h" | 16 #include "chrome/browser/download/download_util.h" |
| 17 #include "chrome/browser/download/drag_download_file.h" | 17 #include "chrome/browser/download/drag_download_file.h" |
| 18 #include "chrome/browser/download/drag_download_util.h" | 18 #include "chrome/browser/download/drag_download_util.h" |
| 19 #include "chrome/browser/renderer_host/render_view_host.h" | |
| 20 #include "chrome/browser/tab_contents/tab_contents.h" | |
| 21 #include "chrome/browser/tab_contents/tab_contents_view_mac.h" | 19 #include "chrome/browser/tab_contents/tab_contents_view_mac.h" |
| 20 #include "content/browser/renderer_host/render_view_host.h" |
| 21 #include "content/browser/tab_contents/tab_contents.h" |
| 22 #include "net/base/file_stream.h" | 22 #include "net/base/file_stream.h" |
| 23 #include "net/base/net_util.h" | 23 #include "net/base/net_util.h" |
| 24 #import "third_party/mozilla/NSPasteboard+Utils.h" | 24 #import "third_party/mozilla/NSPasteboard+Utils.h" |
| 25 #include "webkit/glue/webdropdata.h" | 25 #include "webkit/glue/webdropdata.h" |
| 26 | 26 |
| 27 using base::SysNSStringToUTF8; | 27 using base::SysNSStringToUTF8; |
| 28 using base::SysUTF8ToNSString; | 28 using base::SysUTF8ToNSString; |
| 29 using base::SysUTF16ToNSString; | 29 using base::SysUTF16ToNSString; |
| 30 using net::FileStream; | 30 using net::FileStream; |
| 31 | 31 |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 | 410 |
| 411 - (NSImage*)dragImage { | 411 - (NSImage*)dragImage { |
| 412 if (dragImage_) | 412 if (dragImage_) |
| 413 return dragImage_; | 413 return dragImage_; |
| 414 | 414 |
| 415 // Default to returning a generic image. | 415 // Default to returning a generic image. |
| 416 return app::mac::GetCachedImageWithName(@"nav.pdf"); | 416 return app::mac::GetCachedImageWithName(@"nav.pdf"); |
| 417 } | 417 } |
| 418 | 418 |
| 419 @end // @implementation WebDragSource (Private) | 419 @end // @implementation WebDragSource (Private) |
| OLD | NEW |