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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 PassRefPtrWillBeRawPtr<DataObjectItem> item(unsigned long index); | 65 PassRefPtrWillBeRawPtr<DataObjectItem> item(unsigned long index); |
66 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get th
is called. | 66 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get th
is called. |
67 void deleteItem(unsigned long index); | 67 void deleteItem(unsigned long index); |
68 void clearAll(); | 68 void clearAll(); |
69 // Returns null if an item already exists with the provided type. | 69 // Returns null if an item already exists with the provided type. |
70 PassRefPtrWillBeRawPtr<DataObjectItem> add(const String& data, const String&
type); | 70 PassRefPtrWillBeRawPtr<DataObjectItem> add(const String& data, const String&
type); |
71 PassRefPtrWillBeRawPtr<DataObjectItem> add(PassRefPtrWillBeRawPtr<File>); | 71 PassRefPtrWillBeRawPtr<DataObjectItem> add(PassRefPtrWillBeRawPtr<File>); |
72 | 72 |
73 // WebCore helpers. | 73 // WebCore helpers. |
74 void clearData(const String& type); | 74 void clearData(const String& type); |
75 void clearAllExceptFiles(); | |
76 | 75 |
77 ListHashSet<String> types() const; | 76 ListHashSet<String> types() const; |
78 String getData(const String& type) const; | 77 String getData(const String& type) const; |
79 bool setData(const String& type, const String& data); | 78 bool setData(const String& type, const String& data); |
80 | 79 |
81 void urlAndTitle(String& url, String* title = 0) const; | 80 void urlAndTitle(String& url, String* title = 0) const; |
82 void setURLAndTitle(const String& url, const String& title); | 81 void setURLAndTitle(const String& url, const String& title); |
83 void htmlAndBaseURL(String& html, KURL& baseURL) const; | 82 void htmlAndBaseURL(String& html, KURL& baseURL) const; |
84 void setHTMLAndBaseURL(const String& html, const KURL& baseURL); | 83 void setHTMLAndBaseURL(const String& html, const KURL& baseURL); |
85 | 84 |
(...skipping 20 matching lines...) Expand all Loading... |
106 | 105 |
107 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; | 106 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; |
108 | 107 |
109 // State of Shift/Ctrl/Alt/Meta keys. | 108 // State of Shift/Ctrl/Alt/Meta keys. |
110 int m_modifierKeyState; | 109 int m_modifierKeyState; |
111 }; | 110 }; |
112 | 111 |
113 } // namespace WebCore | 112 } // namespace WebCore |
114 | 113 |
115 #endif | 114 #endif |
OLD | NEW |