Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: chrome/browser/ui/cocoa/tab_contents/web_drag_source.mm

Issue 8276022: Move url_constants.h to content/public/common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/cocoa/drag_util.mm ('k') | chrome/browser/ui/omnibox/omnibox_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "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 <sys/param.h> 7 #include <sys/param.h>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/mac/crash_logging.h" 10 #include "base/mac/crash_logging.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/sys_string_conversions.h" 12 #include "base/sys_string_conversions.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "base/threading/thread_restrictions.h" 15 #include "base/threading/thread_restrictions.h"
16 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
17 #import "chrome/app/breakpad_mac.h" 17 #import "chrome/app/breakpad_mac.h"
18 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
19 #include "chrome/browser/download/download_util.h" 19 #include "chrome/browser/download/download_util.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 "content/browser/download/download_manager.h" 21 #include "content/browser/download/download_manager.h"
22 #include "content/browser/download/drag_download_file.h" 22 #include "content/browser/download/drag_download_file.h"
23 #include "content/browser/download/drag_download_util.h" 23 #include "content/browser/download/drag_download_util.h"
24 #include "content/browser/renderer_host/render_view_host.h" 24 #include "content/browser/renderer_host/render_view_host.h"
25 #include "content/browser/tab_contents/tab_contents.h" 25 #include "content/browser/tab_contents/tab_contents.h"
26 #include "content/common/url_constants.h" 26 #include "content/public/common/url_constants.h"
27 #include "net/base/file_stream.h" 27 #include "net/base/file_stream.h"
28 #include "net/base/net_util.h" 28 #include "net/base/net_util.h"
29 #import "third_party/mozilla/NSPasteboard+Utils.h" 29 #import "third_party/mozilla/NSPasteboard+Utils.h"
30 #include "ui/gfx/mac/nsimage_cache.h" 30 #include "ui/gfx/mac/nsimage_cache.h"
31 #include "webkit/glue/webdropdata.h" 31 #include "webkit/glue/webdropdata.h"
32 32
33 using base::SysNSStringToUTF8; 33 using base::SysNSStringToUTF8;
34 using base::SysUTF8ToNSString; 34 using base::SysUTF8ToNSString;
35 using base::SysUTF16ToNSString; 35 using base::SysUTF16ToNSString;
36 using net::FileStream; 36 using net::FileStream;
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 448
449 - (NSImage*)dragImage { 449 - (NSImage*)dragImage {
450 if (dragImage_) 450 if (dragImage_)
451 return dragImage_; 451 return dragImage_;
452 452
453 // Default to returning a generic image. 453 // Default to returning a generic image.
454 return gfx::GetCachedImageWithName(@"nav.pdf"); 454 return gfx::GetCachedImageWithName(@"nav.pdf");
455 } 455 }
456 456
457 @end // @implementation WebDragSource (Private) 457 @end // @implementation WebDragSource (Private)
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/drag_util.mm ('k') | chrome/browser/ui/omnibox/omnibox_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698