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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 bool containsFilenames() const; | 84 bool containsFilenames() const; |
85 Vector<String> filenames() const; | 85 Vector<String> filenames() const; |
86 void addFilename(const String& filename, const String& displayName); | 86 void addFilename(const String& filename, const String& displayName); |
87 | 87 |
88 // Used to handle files (images) being dragged out. | 88 // Used to handle files (images) being dragged out. |
89 void addSharedBuffer(const String& name, PassRefPtr<SharedBuffer>); | 89 void addSharedBuffer(const String& name, PassRefPtr<SharedBuffer>); |
90 | 90 |
91 int modifierKeyState() const { return m_modifierKeyState; } | 91 int modifierKeyState() const { return m_modifierKeyState; } |
92 void setModifierKeyState(int modifierKeyState) { m_modifierKeyState = modifi
erKeyState; } | 92 void setModifierKeyState(int modifierKeyState) { m_modifierKeyState = modifi
erKeyState; } |
93 | 93 |
| 94 // The accessor should only ever be called by DragData. |
| 95 const String& filenameForNavigation() const { return m_filenameForNavigation
; } |
| 96 void setFilenameForNavigation(const String& filename) { m_filenameForNavigat
ion = filename; } |
| 97 |
94 // FIXME: oilpan: This trace() has to trace Supplementable. | 98 // FIXME: oilpan: This trace() has to trace Supplementable. |
95 void trace(Visitor*); | 99 void trace(Visitor*); |
96 | 100 |
97 private: | 101 private: |
98 DataObject(); | 102 DataObject(); |
99 explicit DataObject(const DataObject&); | 103 explicit DataObject(const DataObject&); |
100 | 104 |
101 PassRefPtrWillBeRawPtr<DataObjectItem> findStringItem(const String& type) co
nst; | 105 PassRefPtrWillBeRawPtr<DataObjectItem> findStringItem(const String& type) co
nst; |
102 bool internalAddStringItem(PassRefPtrWillBeRawPtr<DataObjectItem>); | 106 bool internalAddStringItem(PassRefPtrWillBeRawPtr<DataObjectItem>); |
103 void internalAddFileItem(PassRefPtrWillBeRawPtr<DataObjectItem>); | 107 void internalAddFileItem(PassRefPtrWillBeRawPtr<DataObjectItem>); |
104 | 108 |
105 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; | 109 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; |
106 | 110 |
| 111 String m_filenameForNavigation; |
| 112 |
107 // State of Shift/Ctrl/Alt/Meta keys. | 113 // State of Shift/Ctrl/Alt/Meta keys. |
108 int m_modifierKeyState; | 114 int m_modifierKeyState; |
109 }; | 115 }; |
110 | 116 |
111 } // namespace WebCore | 117 } // namespace WebCore |
112 | 118 |
113 #endif | 119 #endif |
OLD | NEW |