| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 public: | 57 public: |
| 58 static DataObject* createFromPasteboard(PasteMode); | 58 static DataObject* createFromPasteboard(PasteMode); |
| 59 static DataObject* create(); | 59 static DataObject* create(); |
| 60 static DataObject* create(WebDragData); | 60 static DataObject* create(WebDragData); |
| 61 | 61 |
| 62 virtual ~DataObject(); | 62 virtual ~DataObject(); |
| 63 | 63 |
| 64 // DataTransferItemList support. | 64 // DataTransferItemList support. |
| 65 size_t length() const; | 65 size_t length() const; |
| 66 DataObjectItem* item(unsigned long index); | 66 DataObjectItem* item(unsigned long index); |
| 67 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get this
called. | 67 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get this |
| 68 // called. |
| 68 void deleteItem(unsigned long index); | 69 void deleteItem(unsigned long index); |
| 69 void clearAll(); | 70 void clearAll(); |
| 70 // Returns null if an item already exists with the provided type. | 71 // Returns null if an item already exists with the provided type. |
| 71 DataObjectItem* add(const String& data, const String& type); | 72 DataObjectItem* add(const String& data, const String& type); |
| 72 DataObjectItem* add(File*); | 73 DataObjectItem* add(File*); |
| 73 | 74 |
| 74 // WebCore helpers. | 75 // WebCore helpers. |
| 75 void clearData(const String& type); | 76 void clearData(const String& type); |
| 76 | 77 |
| 77 Vector<String> types() const; | 78 Vector<String> types() const; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 HeapVector<Member<DataObjectItem>> m_itemList; | 118 HeapVector<Member<DataObjectItem>> m_itemList; |
| 118 | 119 |
| 119 // State of Shift/Ctrl/Alt/Meta keys and Left/Right/Middle mouse buttons | 120 // State of Shift/Ctrl/Alt/Meta keys and Left/Right/Middle mouse buttons |
| 120 int m_modifiers; | 121 int m_modifiers; |
| 121 String m_filesystemId; | 122 String m_filesystemId; |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 } // namespace blink | 125 } // namespace blink |
| 125 | 126 |
| 126 #endif | 127 #endif |
| OLD | NEW |