OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2009 Google Inc. | 3 * Copyright (C) 2008, 2009 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 12 matching lines...) Expand all Loading... |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 // Modified from DragDataWin.cpp to not directly call any windows methods as | 27 // Modified from DragDataWin.cpp to not directly call any windows methods as |
28 // they may not be available to us in the multiprocess | 28 // they may not be available to us in the multiprocess |
29 | 29 |
30 #include "config.h" | 30 #include "config.h" |
31 #include "core/platform/DragData.h" | 31 #include "core/platform/DragData.h" |
32 | 32 |
33 #include "core/dom/Document.h" | |
34 #include "core/dom/DocumentFragment.h" | 33 #include "core/dom/DocumentFragment.h" |
35 #include "core/dom/Range.h" | |
36 #include "core/editing/markup.h" | 34 #include "core/editing/markup.h" |
37 #include "core/page/Frame.h" | 35 #include "core/page/Frame.h" |
38 #include "core/platform/FileSystem.h" | |
39 #include "core/platform/KURL.h" | |
40 #include "core/platform/NotImplemented.h" | 36 #include "core/platform/NotImplemented.h" |
41 #include "core/platform/chromium/ChromiumDataObject.h" | 37 #include "core/platform/chromium/ChromiumDataObject.h" |
42 #include "core/platform/chromium/ClipboardMimeTypes.h" | 38 #include "core/platform/chromium/ClipboardMimeTypes.h" |
43 #include "modules/filesystem/DraggedIsolatedFileSystem.h" | 39 #include "modules/filesystem/DraggedIsolatedFileSystem.h" |
44 #include <wtf/text/WTFString.h> | 40 #include <wtf/text/WTFString.h> |
45 | 41 |
46 #include <public/Platform.h> | 42 #include <public/Platform.h> |
47 #include <public/WebFileUtilities.h> | 43 #include <public/WebFileUtilities.h> |
48 | 44 |
49 namespace WebCore { | 45 namespace WebCore { |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 162 |
167 String DragData::droppedFileSystemId() const | 163 String DragData::droppedFileSystemId() const |
168 { | 164 { |
169 DraggedIsolatedFileSystem* filesystem = DraggedIsolatedFileSystem::from(m_pl
atformDragData); | 165 DraggedIsolatedFileSystem* filesystem = DraggedIsolatedFileSystem::from(m_pl
atformDragData); |
170 if (!filesystem) | 166 if (!filesystem) |
171 return String(); | 167 return String(); |
172 return filesystem->filesystemId(); | 168 return filesystem->filesystemId(); |
173 } | 169 } |
174 | 170 |
175 } // namespace WebCore | 171 } // namespace WebCore |
OLD | NEW |