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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 static PassRefPtr<ChromiumDataObject> create(); | 55 static PassRefPtr<ChromiumDataObject> create(); |
56 | 56 |
57 PassRefPtr<ChromiumDataObject> copy() const; | 57 PassRefPtr<ChromiumDataObject> copy() const; |
58 | 58 |
59 // DataTransferItemList support. | 59 // DataTransferItemList support. |
60 size_t length() const; | 60 size_t length() const; |
61 PassRefPtr<ChromiumDataObjectItem> item(unsigned long index); | 61 PassRefPtr<ChromiumDataObjectItem> item(unsigned long index); |
62 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get th
is called. | 62 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get th
is called. |
63 void deleteItem(unsigned long index); | 63 void deleteItem(unsigned long index); |
64 void clearAll(); | 64 void clearAll(); |
65 void add(const String& data, const String& type, ExceptionState&); | 65 PassRefPtr<ChromiumDataObjectItem> add(const String& data, const String& typ
e, ExceptionState&); |
66 void add(PassRefPtr<File>, ScriptExecutionContext*); | 66 PassRefPtr<ChromiumDataObjectItem> add(PassRefPtr<File>, ScriptExecutionCont
ext*); |
67 | 67 |
68 // WebCore helpers. | 68 // WebCore helpers. |
69 void clearData(const String& type); | 69 void clearData(const String& type); |
70 void clearAllExceptFiles(); | 70 void clearAllExceptFiles(); |
71 | 71 |
72 ListHashSet<String> types() const; | 72 ListHashSet<String> types() const; |
73 String getData(const String& type) const; | 73 String getData(const String& type) const; |
74 bool setData(const String& type, const String& data); | 74 bool setData(const String& type, const String& data); |
75 | 75 |
76 void urlAndTitle(String& url, String* title = 0) const; | 76 void urlAndTitle(String& url, String* title = 0) const; |
(...skipping 22 matching lines...) Expand all Loading... |
99 | 99 |
100 Vector<RefPtr<ChromiumDataObjectItem> > m_itemList; | 100 Vector<RefPtr<ChromiumDataObjectItem> > m_itemList; |
101 | 101 |
102 // State of Shift/Ctrl/Alt/Meta keys. | 102 // State of Shift/Ctrl/Alt/Meta keys. |
103 int m_modifierKeyState; | 103 int m_modifierKeyState; |
104 }; | 104 }; |
105 | 105 |
106 } // namespace WebCore | 106 } // namespace WebCore |
107 | 107 |
108 #endif | 108 #endif |
OLD | NEW |