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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 PassRefPtrWillBeRawPtr<DataObject> copy() const; | 59 PassRefPtrWillBeRawPtr<DataObject> copy() const; |
60 | 60 |
61 // DataTransferItemList support. | 61 // DataTransferItemList support. |
62 size_t length() const; | 62 size_t length() const; |
63 PassRefPtrWillBeRawPtr<DataObjectItem> item(unsigned long index); | 63 PassRefPtrWillBeRawPtr<DataObjectItem> item(unsigned long index); |
64 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get th
is called. | 64 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get th
is called. |
65 void deleteItem(unsigned long index); | 65 void deleteItem(unsigned long index); |
66 void clearAll(); | 66 void clearAll(); |
67 // Returns null if an item already exists with the provided type. | 67 // Returns null if an item already exists with the provided type. |
68 PassRefPtrWillBeRawPtr<DataObjectItem> add(const String& data, const String&
type); | 68 PassRefPtrWillBeRawPtr<DataObjectItem> add(const String& data, const String&
type); |
69 PassRefPtrWillBeRawPtr<DataObjectItem> add(PassRefPtr<File>); | 69 PassRefPtrWillBeRawPtr<DataObjectItem> add(PassRefPtrWillBeRawPtr<File>); |
70 | 70 |
71 // WebCore helpers. | 71 // WebCore helpers. |
72 void clearData(const String& type); | 72 void clearData(const String& type); |
73 void clearAllExceptFiles(); | 73 void clearAllExceptFiles(); |
74 | 74 |
75 ListHashSet<String> types() const; | 75 ListHashSet<String> types() const; |
76 String getData(const String& type) const; | 76 String getData(const String& type) const; |
77 bool setData(const String& type, const String& data); | 77 bool setData(const String& type, const String& data); |
78 | 78 |
79 void urlAndTitle(String& url, String* title = 0) const; | 79 void urlAndTitle(String& url, String* title = 0) const; |
(...skipping 25 matching lines...) Expand all Loading... |
105 | 105 |
106 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; | 106 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; |
107 | 107 |
108 // State of Shift/Ctrl/Alt/Meta keys. | 108 // State of Shift/Ctrl/Alt/Meta keys. |
109 int m_modifierKeyState; | 109 int m_modifierKeyState; |
110 }; | 110 }; |
111 | 111 |
112 } // namespace WebCore | 112 } // namespace WebCore |
113 | 113 |
114 #endif | 114 #endif |
OLD | NEW |