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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 namespace WebCore { | 45 namespace WebCore { |
46 | 46 |
47 class KURL; | 47 class KURL; |
48 class SharedBuffer; | 48 class SharedBuffer; |
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 DataObject : public RefCountedWillBeGarbageCollectedFinalized<DataObject>,
public Supplementable<DataObject> { | 53 class DataObject : public RefCountedWillBeGarbageCollectedFinalized<DataObject>,
public Supplementable<DataObject> { |
54 DECLARE_GC_INFO; | |
55 public: | 54 public: |
56 static PassRefPtrWillBeRawPtr<DataObject> createFromPasteboard(PasteMode); | 55 static PassRefPtrWillBeRawPtr<DataObject> createFromPasteboard(PasteMode); |
57 static PassRefPtrWillBeRawPtr<DataObject> create(); | 56 static PassRefPtrWillBeRawPtr<DataObject> create(); |
58 | 57 |
59 PassRefPtrWillBeRawPtr<DataObject> copy() const; | 58 PassRefPtrWillBeRawPtr<DataObject> copy() const; |
60 | 59 |
61 // DataTransferItemList support. | 60 // DataTransferItemList support. |
62 size_t length() const; | 61 size_t length() const; |
63 PassRefPtrWillBeRawPtr<DataObjectItem> item(unsigned long index); | 62 PassRefPtrWillBeRawPtr<DataObjectItem> item(unsigned long index); |
64 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get th
is called. | 63 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get th
is called. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 104 |
106 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; | 105 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; |
107 | 106 |
108 // State of Shift/Ctrl/Alt/Meta keys. | 107 // State of Shift/Ctrl/Alt/Meta keys. |
109 int m_modifierKeyState; | 108 int m_modifierKeyState; |
110 }; | 109 }; |
111 | 110 |
112 } // namespace WebCore | 111 } // namespace WebCore |
113 | 112 |
114 #endif | 113 #endif |
OLD | NEW |