| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
| 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) | 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) |
| 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 public: | 58 public: |
| 59 // Whether this transfer is serving a drag-drop, copy-paste, spellcheck, | 59 // Whether this transfer is serving a drag-drop, copy-paste, spellcheck, |
| 60 // auto-correct or similar request. | 60 // auto-correct or similar request. |
| 61 enum DataTransferType { | 61 enum DataTransferType { |
| 62 CopyAndPaste, | 62 CopyAndPaste, |
| 63 DragAndDrop, | 63 DragAndDrop, |
| 64 InsertReplacementText, | 64 InsertReplacementText, |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 static DataTransfer* create(); |
| 67 static DataTransfer* create(DataTransferType, | 68 static DataTransfer* create(DataTransferType, |
| 68 DataTransferAccessPolicy, | 69 DataTransferAccessPolicy, |
| 69 DataObject*); | 70 DataObject*); |
| 70 ~DataTransfer(); | 71 ~DataTransfer(); |
| 71 | 72 |
| 72 bool isForCopyAndPaste() const { return m_transferType == CopyAndPaste; } | 73 bool isForCopyAndPaste() const { return m_transferType == CopyAndPaste; } |
| 73 bool isForDragAndDrop() const { return m_transferType == DragAndDrop; } | 74 bool isForDragAndDrop() const { return m_transferType == DragAndDrop; } |
| 74 | 75 |
| 75 String dropEffect() const { | 76 String dropEffect() const { |
| 76 return dropEffectIsUninitialized() ? "none" : m_dropEffect; | 77 return dropEffectIsUninitialized() ? "none" : m_dropEffect; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 Member<Node> m_dragImageElement; | 151 Member<Node> m_dragImageElement; |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 DragOperation convertDropZoneOperationToDragOperation( | 154 DragOperation convertDropZoneOperationToDragOperation( |
| 154 const String& dragOperation); | 155 const String& dragOperation); |
| 155 String convertDragOperationToDropZoneOperation(DragOperation); | 156 String convertDragOperationToDropZoneOperation(DragOperation); |
| 156 | 157 |
| 157 } // namespace blink | 158 } // namespace blink |
| 158 | 159 |
| 159 #endif // DataTransfer_h | 160 #endif // DataTransfer_h |
| OLD | NEW |