OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 class DataObject; | 42 class DataObject; |
43 class DataTransfer; | 43 class DataTransfer; |
44 class DataTransferItem; | 44 class DataTransferItem; |
45 class File; | 45 class File; |
46 | 46 |
47 class ExceptionState; | 47 class ExceptionState; |
48 | 48 |
49 class DataTransferItemList FINAL : public RefCountedWillBeGarbageCollected<DataT
ransferItemList>, public ScriptWrappable { | 49 class DataTransferItemList FINAL : public RefCountedWillBeGarbageCollected<DataT
ransferItemList>, public ScriptWrappable { |
50 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DataTransferItemList); | 50 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DataTransferItemList); |
| 51 DEFINE_WRAPPERTYPEINFO(); |
51 public: | 52 public: |
52 static PassRefPtrWillBeRawPtr<DataTransferItemList> create(PassRefPtrWillBeR
awPtr<DataTransfer>, PassRefPtrWillBeRawPtr<DataObject>); | 53 static PassRefPtrWillBeRawPtr<DataTransferItemList> create(PassRefPtrWillBeR
awPtr<DataTransfer>, PassRefPtrWillBeRawPtr<DataObject>); |
53 | 54 |
54 size_t length() const; | 55 size_t length() const; |
55 PassRefPtrWillBeRawPtr<DataTransferItem> item(unsigned long index); | 56 PassRefPtrWillBeRawPtr<DataTransferItem> item(unsigned long index); |
56 void deleteItem(unsigned long index, ExceptionState&); | 57 void deleteItem(unsigned long index, ExceptionState&); |
57 void clear(); | 58 void clear(); |
58 PassRefPtrWillBeRawPtr<DataTransferItem> add(const String& data, const Strin
g& type, ExceptionState&); | 59 PassRefPtrWillBeRawPtr<DataTransferItem> add(const String& data, const Strin
g& type, ExceptionState&); |
59 PassRefPtrWillBeRawPtr<DataTransferItem> add(PassRefPtrWillBeRawPtr<File>); | 60 PassRefPtrWillBeRawPtr<DataTransferItem> add(PassRefPtrWillBeRawPtr<File>); |
60 | 61 |
61 void trace(Visitor*); | 62 void trace(Visitor*); |
62 | 63 |
63 private: | 64 private: |
64 DataTransferItemList(PassRefPtrWillBeRawPtr<DataTransfer>, PassRefPtrWillBeR
awPtr<DataObject>); | 65 DataTransferItemList(PassRefPtrWillBeRawPtr<DataTransfer>, PassRefPtrWillBeR
awPtr<DataObject>); |
65 | 66 |
66 RefPtrWillBeMember<DataTransfer> m_dataTransfer; | 67 RefPtrWillBeMember<DataTransfer> m_dataTransfer; |
67 RefPtrWillBeMember<DataObject> m_dataObject; | 68 RefPtrWillBeMember<DataObject> m_dataObject; |
68 }; | 69 }; |
69 | 70 |
70 } // namespace blink | 71 } // namespace blink |
71 | 72 |
72 #endif // DataTransferItemList_h | 73 #endif // DataTransferItemList_h |
OLD | NEW |