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