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* createFromPlainTextAndHTML(const String& plainText, |
| 60 const String& htmlText); |
59 static DataObject* createFromString(const String&); | 61 static DataObject* createFromString(const String&); |
60 static DataObject* create(); | 62 static DataObject* create(); |
61 static DataObject* create(WebDragData); | 63 static DataObject* create(WebDragData); |
62 | 64 |
63 virtual ~DataObject(); | 65 virtual ~DataObject(); |
64 | 66 |
65 // DataTransferItemList support. | 67 // DataTransferItemList support. |
66 size_t length() const; | 68 size_t length() const; |
67 DataObjectItem* item(unsigned long index); | 69 DataObjectItem* item(unsigned long index); |
68 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get this | 70 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get this |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 HeapVector<Member<DataObjectItem>> m_itemList; | 121 HeapVector<Member<DataObjectItem>> m_itemList; |
120 | 122 |
121 // State of Shift/Ctrl/Alt/Meta keys and Left/Right/Middle mouse buttons | 123 // State of Shift/Ctrl/Alt/Meta keys and Left/Right/Middle mouse buttons |
122 int m_modifiers; | 124 int m_modifiers; |
123 String m_filesystemId; | 125 String m_filesystemId; |
124 }; | 126 }; |
125 | 127 |
126 } // namespace blink | 128 } // namespace blink |
127 | 129 |
128 #endif | 130 #endif |
OLD | NEW |