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 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 DragData::DragData(ChromiumDataObject* data, const IntPoint& clientPosition, con
st IntPoint& globalPosition, | 44 DragData::DragData(ChromiumDataObject* data, const IntPoint& clientPosition, con
st IntPoint& globalPosition, |
45 DragOperation sourceOperationMask, DragApplicationFlags flags) | 45 DragOperation sourceOperationMask, DragApplicationFlags flags) |
46 : m_clientPosition(clientPosition) | 46 : m_clientPosition(clientPosition) |
47 , m_globalPosition(globalPosition) | 47 , m_globalPosition(globalPosition) |
48 , m_platformDragData(data) | 48 , m_platformDragData(data) |
49 , m_draggingSourceOperationMask(sourceOperationMask) | 49 , m_draggingSourceOperationMask(sourceOperationMask) |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 String DragData::droppedFileSystemId() const | 164 String DragData::droppedFileSystemId() const |
165 { | 165 { |
166 DraggedIsolatedFileSystem* filesystem = DraggedIsolatedFileSystem::from(m_pl
atformDragData); | 166 DraggedIsolatedFileSystem* filesystem = DraggedIsolatedFileSystem::from(m_pl
atformDragData); |
167 if (!filesystem) | 167 if (!filesystem) |
168 return String(); | 168 return String(); |
169 return filesystem->filesystemId(); | 169 return filesystem->filesystemId(); |
170 } | 170 } |
171 | 171 |
172 } // namespace WebCore | 172 } // namespace WebCore |
OLD | NEW |