| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/cocoa/web_drag_source.h" | 5 #import "chrome/browser/cocoa/web_drag_source.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/nsimage_cache_mac.h" | 8 #include "base/nsimage_cache_mac.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/thread.h" | 12 #include "base/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/drag_download_file.h" | 16 #include "chrome/browser/download/drag_download_file.h" |
| 17 #include "chrome/browser/download/drag_download_util.h" | 17 #include "chrome/browser/download/drag_download_util.h" |
| 18 #include "chrome/browser/renderer_host/render_view_host.h" | 18 #include "chrome/browser/renderer_host/render_view_host.h" |
| 19 #include "chrome/browser/tab_contents/tab_contents.h" | 19 #include "chrome/browser/tab_contents/tab_contents.h" |
| 20 #include "chrome/browser/tab_contents/tab_contents_view_mac.h" | 20 #include "chrome/browser/tab_contents/tab_contents_view_mac.h" |
| 21 #include "net/base/file_stream.h" | 21 #include "net/base/file_stream.h" |
| 22 #include "net/base/net_util.h" | 22 #include "net/base/net_util.h" |
| 23 #import "third_party/mozilla/include/NSPasteboard+Utils.h" | 23 #import "third_party/mozilla/NSPasteboard+Utils.h" |
| 24 #include "webkit/glue/webdropdata.h" | 24 #include "webkit/glue/webdropdata.h" |
| 25 | 25 |
| 26 using base::SysNSStringToUTF8; | 26 using base::SysNSStringToUTF8; |
| 27 using base::SysUTF8ToNSString; | 27 using base::SysUTF8ToNSString; |
| 28 using base::SysUTF16ToNSString; | 28 using base::SysUTF16ToNSString; |
| 29 using net::FileStream; | 29 using net::FileStream; |
| 30 | 30 |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| 33 | 33 |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 389 |
| 390 - (NSImage*)dragImage { | 390 - (NSImage*)dragImage { |
| 391 if (dragImage_) | 391 if (dragImage_) |
| 392 return dragImage_; | 392 return dragImage_; |
| 393 | 393 |
| 394 // Default to returning a generic image. | 394 // Default to returning a generic image. |
| 395 return nsimage_cache::ImageNamed(@"nav.pdf"); | 395 return nsimage_cache::ImageNamed(@"nav.pdf"); |
| 396 } | 396 } |
| 397 | 397 |
| 398 @end // @implementation WebDragSource (Private) | 398 @end // @implementation WebDragSource (Private) |
| OLD | NEW |