| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef DragData_h | 26 #ifndef DragData_h |
| 27 #define DragData_h | 27 #define DragData_h |
| 28 | 28 |
| 29 #include "core/page/DragActions.h" | 29 #include "core/page/DragActions.h" |
| 30 #include "platform/geometry/IntPoint.h" | 30 #include "platform/geometry/IntPoint.h" |
| 31 | 31 #include "platform/heap/Handle.h" |
| 32 #include "wtf/Forward.h" | 32 #include "wtf/Forward.h" |
| 33 #include "wtf/HashMap.h" | 33 #include "wtf/HashMap.h" |
| 34 #include "wtf/Vector.h" | 34 #include "wtf/Vector.h" |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 class DataObject; | 38 class DataObject; |
| 39 class DocumentFragment; | 39 class DocumentFragment; |
| 40 class LocalFrame; | 40 class LocalFrame; |
| 41 class KURL; | 41 class KURL; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 60 const IntPoint& globalPosition() const { return m_globalPosition; } | 60 const IntPoint& globalPosition() const { return m_globalPosition; } |
| 61 DragApplicationFlags flags() const { return m_applicationFlags; } | 61 DragApplicationFlags flags() const { return m_applicationFlags; } |
| 62 DataObject* platformData() const { return m_platformDragData; } | 62 DataObject* platformData() const { return m_platformDragData; } |
| 63 DragOperation draggingSourceOperationMask() const { return m_draggingSourceO
perationMask; } | 63 DragOperation draggingSourceOperationMask() const { return m_draggingSourceO
perationMask; } |
| 64 bool containsURL(FilenameConversionPolicy filenamePolicy = ConvertFilenames)
const; | 64 bool containsURL(FilenameConversionPolicy filenamePolicy = ConvertFilenames)
const; |
| 65 bool containsPlainText() const; | 65 bool containsPlainText() const; |
| 66 bool containsCompatibleContent() const; | 66 bool containsCompatibleContent() const; |
| 67 String asURL(FilenameConversionPolicy filenamePolicy = ConvertFilenames, Str
ing* title = 0) const; | 67 String asURL(FilenameConversionPolicy filenamePolicy = ConvertFilenames, Str
ing* title = 0) const; |
| 68 String asPlainText() const; | 68 String asPlainText() const; |
| 69 void asFilenames(Vector<String>&) const; | 69 void asFilenames(Vector<String>&) const; |
| 70 PassRefPtr<DocumentFragment> asFragment(LocalFrame*, PassRefPtr<Range> conte
xt, bool allowPlainText, bool& chosePlainText) const; | 70 PassRefPtr<DocumentFragment> asFragment(LocalFrame*, PassRefPtrWillBeRawPtr<
Range> context, bool allowPlainText, bool& chosePlainText) const; |
| 71 bool canSmartReplace() const; | 71 bool canSmartReplace() const; |
| 72 bool containsFiles() const; | 72 bool containsFiles() const; |
| 73 unsigned numberOfFiles() const; | 73 unsigned numberOfFiles() const; |
| 74 int modifierKeyState() const; | 74 int modifierKeyState() const; |
| 75 | 75 |
| 76 String droppedFileSystemId() const; | 76 String droppedFileSystemId() const; |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 IntPoint m_clientPosition; | 79 IntPoint m_clientPosition; |
| 80 IntPoint m_globalPosition; | 80 IntPoint m_globalPosition; |
| 81 DataObject* m_platformDragData; | 81 DataObject* m_platformDragData; |
| 82 DragOperation m_draggingSourceOperationMask; | 82 DragOperation m_draggingSourceOperationMask; |
| 83 DragApplicationFlags m_applicationFlags; | 83 DragApplicationFlags m_applicationFlags; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } | 86 } |
| 87 | 87 |
| 88 #endif // !DragData_h | 88 #endif // !DragData_h |
| OLD | NEW |