| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 bool DropEffectIsUninitialized() const { | 80 bool DropEffectIsUninitialized() const { |
| 81 return drop_effect_ == "uninitialized"; | 81 return drop_effect_ == "uninitialized"; |
| 82 } | 82 } |
| 83 String effectAllowed() const { return effect_allowed_; } | 83 String effectAllowed() const { return effect_allowed_; } |
| 84 void setEffectAllowed(const String&); | 84 void setEffectAllowed(const String&); |
| 85 | 85 |
| 86 void clearData(const String& type = String()); | 86 void clearData(const String& type = String()); |
| 87 String getData(const String& type) const; | 87 String getData(const String& type) const; |
| 88 void setData(const String& type, const String& data); | 88 void setData(const String& type, const String& data); |
| 89 | 89 |
| 90 // extensions beyond IE's API | 90 // Used by the bindings code to determine whether to call types() again. |
| 91 bool hasDataStoreItemListChanged(); |
| 92 |
| 91 Vector<String> types() const; | 93 Vector<String> types() const; |
| 92 FileList* files() const; | 94 FileList* files() const; |
| 93 | 95 |
| 94 IntPoint DragLocation() const { return drag_loc_; } | 96 IntPoint DragLocation() const { return drag_loc_; } |
| 95 void setDragImage(Element*, int x, int y); | 97 void setDragImage(Element*, int x, int y); |
| 96 void ClearDragImage(); | 98 void ClearDragImage(); |
| 97 void SetDragImageResource(ImageResourceContent*, const IntPoint&); | 99 void SetDragImageResource(ImageResourceContent*, const IntPoint&); |
| 98 void SetDragImageElement(Node*, const IntPoint&); | 100 void SetDragImageElement(Node*, const IntPoint&); |
| 99 | 101 |
| 100 std::unique_ptr<DragImage> CreateDragImage(IntPoint& drag_location, | 102 std::unique_ptr<DragImage> CreateDragImage(IntPoint& drag_location, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 bool HasStringOfType(const String&) const; | 141 bool HasStringOfType(const String&) const; |
| 140 | 142 |
| 141 // Instead of using this member directly, prefer to use the can*() methods | 143 // Instead of using this member directly, prefer to use the can*() methods |
| 142 // above. | 144 // above. |
| 143 DataTransferAccessPolicy policy_; | 145 DataTransferAccessPolicy policy_; |
| 144 String drop_effect_; | 146 String drop_effect_; |
| 145 String effect_allowed_; | 147 String effect_allowed_; |
| 146 DataTransferType transfer_type_; | 148 DataTransferType transfer_type_; |
| 147 Member<DataObject> data_object_; | 149 Member<DataObject> data_object_; |
| 148 | 150 |
| 151 bool data_store_item_list_changed_; |
| 152 |
| 149 IntPoint drag_loc_; | 153 IntPoint drag_loc_; |
| 150 Member<ImageResourceContent> drag_image_; | 154 Member<ImageResourceContent> drag_image_; |
| 151 Member<Node> drag_image_element_; | 155 Member<Node> drag_image_element_; |
| 152 }; | 156 }; |
| 153 | 157 |
| 154 DragOperation ConvertDropZoneOperationToDragOperation( | 158 DragOperation ConvertDropZoneOperationToDragOperation( |
| 155 const String& drag_operation); | 159 const String& drag_operation); |
| 156 String ConvertDragOperationToDropZoneOperation(DragOperation); | 160 String ConvertDragOperationToDropZoneOperation(DragOperation); |
| 157 | 161 |
| 158 } // namespace blink | 162 } // namespace blink |
| 159 | 163 |
| 160 #endif // DataTransfer_h | 164 #endif // DataTransfer_h |
| OLD | NEW |