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) 2013 Google Inc. | 3 * Copyright (C) 2013 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 18 matching lines...) Expand all Loading... |
29 | 29 |
30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
31 #include "core/dom/DocumentFragment.h" | 31 #include "core/dom/DocumentFragment.h" |
32 #include "core/dom/Range.h" | 32 #include "core/dom/Range.h" |
33 #include "core/editing/markup.h" | 33 #include "core/editing/markup.h" |
34 #include "core/frame/Frame.h" | 34 #include "core/frame/Frame.h" |
35 #include "core/platform/chromium/ChromiumDataObject.h" | 35 #include "core/platform/chromium/ChromiumDataObject.h" |
36 #include "modules/filesystem/DraggedIsolatedFileSystem.h" | 36 #include "modules/filesystem/DraggedIsolatedFileSystem.h" |
37 #include "platform/FileMetadata.h" | 37 #include "platform/FileMetadata.h" |
38 #include "platform/clipboard/ClipboardMimeTypes.h" | 38 #include "platform/clipboard/ClipboardMimeTypes.h" |
39 #include "weborigin/KURL.h" | 39 #include "platform/weborigin/KURL.h" |
40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
41 | 41 |
42 #include "public/platform/Platform.h" | 42 #include "public/platform/Platform.h" |
43 #include "public/platform/WebFileUtilities.h" | 43 #include "public/platform/WebFileUtilities.h" |
44 | 44 |
45 namespace WebCore { | 45 namespace WebCore { |
46 | 46 |
47 DragData::DragData(ChromiumDataObject* data, const IntPoint& clientPosition, con
st IntPoint& globalPosition, | 47 DragData::DragData(ChromiumDataObject* data, const IntPoint& clientPosition, con
st IntPoint& globalPosition, |
48 DragOperation sourceOperationMask, DragApplicationFlags flags) | 48 DragOperation sourceOperationMask, DragApplicationFlags flags) |
49 : m_clientPosition(clientPosition) | 49 : m_clientPosition(clientPosition) |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 166 |
167 String DragData::droppedFileSystemId() const | 167 String DragData::droppedFileSystemId() const |
168 { | 168 { |
169 DraggedIsolatedFileSystem* filesystem = DraggedIsolatedFileSystem::from(m_pl
atformDragData); | 169 DraggedIsolatedFileSystem* filesystem = DraggedIsolatedFileSystem::from(m_pl
atformDragData); |
170 if (!filesystem) | 170 if (!filesystem) |
171 return String(); | 171 return String(); |
172 return filesystem->filesystemId(); | 172 return filesystem->filesystemId(); |
173 } | 173 } |
174 | 174 |
175 } // namespace WebCore | 175 } // namespace WebCore |
OLD | NEW |