OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/tab_contents/web_drag_source_mac.h" | 5 #import "content/browser/tab_contents/web_drag_source_mac.h" |
6 | 6 |
7 #include <sys/param.h> | 7 #include <sys/param.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/pickle.h" | 11 #include "base/pickle.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/sys_string_conversions.h" | 13 #include "base/sys_string_conversions.h" |
14 #include "base/task.h" | |
15 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
16 #include "base/threading/thread_restrictions.h" | 15 #include "base/threading/thread_restrictions.h" |
17 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
18 #include "content/browser/browser_thread_impl.h" | 17 #include "content/browser/browser_thread_impl.h" |
19 #include "content/browser/download/drag_download_file.h" | 18 #include "content/browser/download/drag_download_file.h" |
20 #include "content/browser/download/drag_download_util.h" | 19 #include "content/browser/download/drag_download_util.h" |
21 #include "content/browser/renderer_host/render_view_host.h" | 20 #include "content/browser/renderer_host/render_view_host.h" |
22 #include "content/browser/tab_contents/tab_contents.h" | 21 #include "content/browser/tab_contents/tab_contents.h" |
23 #include "content/public/browser/content_browser_client.h" | 22 #include "content/public/browser/content_browser_client.h" |
24 #include "content/public/common/url_constants.h" | 23 #include "content/public/common/url_constants.h" |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 | 436 |
438 - (NSImage*)dragImage { | 437 - (NSImage*)dragImage { |
439 if (dragImage_) | 438 if (dragImage_) |
440 return dragImage_; | 439 return dragImage_; |
441 | 440 |
442 // Default to returning a generic image. | 441 // Default to returning a generic image. |
443 return gfx::GetCachedImageWithName(@"nav.pdf"); | 442 return gfx::GetCachedImageWithName(@"nav.pdf"); |
444 } | 443 } |
445 | 444 |
446 @end // @implementation WebDragSource (Private) | 445 @end // @implementation WebDragSource (Private) |
OLD | NEW |