| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 75 |
| 76 ListHashSet<String> types() const; | 76 ListHashSet<String> types() const; |
| 77 String getData(const String& type) const; | 77 String getData(const String& type) const; |
| 78 bool setData(const String& type, const String& data); | 78 void setData(const String& type, const String& data); |
| 79 | 79 |
| 80 void urlAndTitle(String& url, String* title = 0) const; | 80 void urlAndTitle(String& url, String* title = 0) const; |
| 81 void setURLAndTitle(const String& url, const String& title); | 81 void setURLAndTitle(const String& url, const String& title); |
| 82 void htmlAndBaseURL(String& html, KURL& baseURL) const; | 82 void htmlAndBaseURL(String& html, KURL& baseURL) const; |
| 83 void setHTMLAndBaseURL(const String& html, const KURL& baseURL); | 83 void setHTMLAndBaseURL(const String& html, const KURL& baseURL); |
| 84 | 84 |
| 85 // Used for dragging in files from the desktop. | 85 // Used for dragging in files from the desktop. |
| 86 bool containsFilenames() const; | 86 bool containsFilenames() const; |
| 87 Vector<String> filenames() const; | 87 Vector<String> filenames() const; |
| 88 void addFilename(const String& filename, const String& displayName); | 88 void addFilename(const String& filename, const String& displayName); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 110 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; | 110 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; |
| 111 | 111 |
| 112 // State of Shift/Ctrl/Alt/Meta keys. | 112 // State of Shift/Ctrl/Alt/Meta keys. |
| 113 int m_modifierKeyState; | 113 int m_modifierKeyState; |
| 114 String m_filesystemId; | 114 String m_filesystemId; |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 } // namespace WebCore | 117 } // namespace WebCore |
| 118 | 118 |
| 119 #endif | 119 #endif |
| OLD | NEW |