| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 DataObject : public RefCountedWillBeGarbageCollectedFinalized<DataObject>,
public WillBeHeapSupplementable<DataObject> { | 53 class DataObject : public RefCountedWillBeGarbageCollectedFinalized<DataObject>,
public WillBeHeapSupplementable<DataObject> { |
| 54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DataObject); | 54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DataObject); |
| 55 public: | 55 public: |
| 56 static PassRefPtrWillBeRawPtr<DataObject> createFromPasteboard(PasteMode); | 56 static PassRefPtrWillBeRawPtr<DataObject> createFromPasteboard(PasteMode); |
| 57 static PassRefPtrWillBeRawPtr<DataObject> create(); | 57 static PassRefPtrWillBeRawPtr<DataObject> create(); |
| 58 | 58 |
| 59 PassRefPtrWillBeRawPtr<DataObject> copy() const; | 59 PassRefPtrWillBeRawPtr<DataObject> copy() const; |
| 60 | 60 |
| 61 virtual ~DataObject(); |
| 62 |
| 61 // DataTransferItemList support. | 63 // DataTransferItemList support. |
| 62 size_t length() const; | 64 size_t length() const; |
| 63 PassRefPtrWillBeRawPtr<DataObjectItem> item(unsigned long index); | 65 PassRefPtrWillBeRawPtr<DataObjectItem> item(unsigned long index); |
| 64 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get th
is called. | 66 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get th
is called. |
| 65 void deleteItem(unsigned long index); | 67 void deleteItem(unsigned long index); |
| 66 void clearAll(); | 68 void clearAll(); |
| 67 // Returns null if an item already exists with the provided type. | 69 // Returns null if an item already exists with the provided type. |
| 68 PassRefPtrWillBeRawPtr<DataObjectItem> add(const String& data, const String&
type); | 70 PassRefPtrWillBeRawPtr<DataObjectItem> add(const String& data, const String&
type); |
| 69 PassRefPtrWillBeRawPtr<DataObjectItem> add(PassRefPtrWillBeRawPtr<File>); | 71 PassRefPtrWillBeRawPtr<DataObjectItem> add(PassRefPtrWillBeRawPtr<File>); |
| 70 | 72 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 106 |
| 105 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; | 107 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; |
| 106 | 108 |
| 107 // State of Shift/Ctrl/Alt/Meta keys. | 109 // State of Shift/Ctrl/Alt/Meta keys. |
| 108 int m_modifierKeyState; | 110 int m_modifierKeyState; |
| 109 }; | 111 }; |
| 110 | 112 |
| 111 } // namespace WebCore | 113 } // namespace WebCore |
| 112 | 114 |
| 113 #endif | 115 #endif |
| OLD | NEW |