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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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); |
89 | 89 |
| 90 // Used for dragging in filesystem from the desktop. |
| 91 void setFilesystemId(const String& fileSystemId) { m_filesystemId = fileSyst
emId; } |
| 92 const String& filesystemId() const { ASSERT(!m_filesystemId.isEmpty()); retu
rn m_filesystemId; } |
| 93 |
90 // Used to handle files (images) being dragged out. | 94 // Used to handle files (images) being dragged out. |
91 void addSharedBuffer(const String& name, PassRefPtr<SharedBuffer>); | 95 void addSharedBuffer(const String& name, PassRefPtr<SharedBuffer>); |
92 | 96 |
93 int modifierKeyState() const { return m_modifierKeyState; } | 97 int modifierKeyState() const { return m_modifierKeyState; } |
94 void setModifierKeyState(int modifierKeyState) { m_modifierKeyState = modifi
erKeyState; } | 98 void setModifierKeyState(int modifierKeyState) { m_modifierKeyState = modifi
erKeyState; } |
95 | 99 |
96 void trace(Visitor*); | 100 void trace(Visitor*); |
97 | 101 |
98 private: | 102 private: |
99 DataObject(); | 103 DataObject(); |
100 explicit DataObject(const DataObject&); | 104 explicit DataObject(const DataObject&); |
101 | 105 |
102 PassRefPtrWillBeRawPtr<DataObjectItem> findStringItem(const String& type) co
nst; | 106 PassRefPtrWillBeRawPtr<DataObjectItem> findStringItem(const String& type) co
nst; |
103 bool internalAddStringItem(PassRefPtrWillBeRawPtr<DataObjectItem>); | 107 bool internalAddStringItem(PassRefPtrWillBeRawPtr<DataObjectItem>); |
104 void internalAddFileItem(PassRefPtrWillBeRawPtr<DataObjectItem>); | 108 void internalAddFileItem(PassRefPtrWillBeRawPtr<DataObjectItem>); |
105 | 109 |
106 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; | 110 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; |
107 | 111 |
108 // State of Shift/Ctrl/Alt/Meta keys. | 112 // State of Shift/Ctrl/Alt/Meta keys. |
109 int m_modifierKeyState; | 113 int m_modifierKeyState; |
| 114 String m_filesystemId; |
110 }; | 115 }; |
111 | 116 |
112 } // namespace WebCore | 117 } // namespace WebCore |
113 | 118 |
114 #endif | 119 #endif |
OLD | NEW |