| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2008, 2009, Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 // A data object for holding data that would be in a clipboard or moved | 50 // A data object for holding data that would be in a clipboard or moved |
| 51 // during a drag-n-drop operation. This is the data that WebCore is aware | 51 // during a drag-n-drop operation. This is the data that WebCore is aware |
| 52 // of and is not specific to a platform. | 52 // of and is not specific to a platform. |
| 53 class CORE_EXPORT DataObject : public GarbageCollectedFinalized<DataObject>, | 53 class CORE_EXPORT DataObject : public GarbageCollectedFinalized<DataObject>, |
| 54 public Supplementable<DataObject> { | 54 public Supplementable<DataObject> { |
| 55 USING_GARBAGE_COLLECTED_MIXIN(DataObject); | 55 USING_GARBAGE_COLLECTED_MIXIN(DataObject); |
| 56 | 56 |
| 57 public: | 57 public: |
| 58 static DataObject* createFromPasteboard(PasteMode); | 58 static DataObject* createFromPasteboard(PasteMode); |
| 59 static DataObject* createFromString(const String&); |
| 59 static DataObject* create(); | 60 static DataObject* create(); |
| 60 static DataObject* create(WebDragData); | 61 static DataObject* create(WebDragData); |
| 61 | 62 |
| 62 virtual ~DataObject(); | 63 virtual ~DataObject(); |
| 63 | 64 |
| 64 // DataTransferItemList support. | 65 // DataTransferItemList support. |
| 65 size_t length() const; | 66 size_t length() const; |
| 66 DataObjectItem* item(unsigned long index); | 67 DataObjectItem* item(unsigned long index); |
| 67 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get this | 68 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get this |
| 68 // called. | 69 // called. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 HeapVector<Member<DataObjectItem>> m_itemList; | 119 HeapVector<Member<DataObjectItem>> m_itemList; |
| 119 | 120 |
| 120 // State of Shift/Ctrl/Alt/Meta keys and Left/Right/Middle mouse buttons | 121 // State of Shift/Ctrl/Alt/Meta keys and Left/Right/Middle mouse buttons |
| 121 int m_modifiers; | 122 int m_modifiers; |
| 122 String m_filesystemId; | 123 String m_filesystemId; |
| 123 }; | 124 }; |
| 124 | 125 |
| 125 } // namespace blink | 126 } // namespace blink |
| 126 | 127 |
| 127 #endif | 128 #endif |
| OLD | NEW |