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