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 void trace(Visitor*); | 100 void trace(Visitor*); |
101 | 101 |
102 private: | 102 private: |
103 DataObject(); | 103 DataObject(); |
104 explicit DataObject(const DataObject&); | 104 explicit DataObject(const DataObject&); |
105 | 105 |
106 PassRefPtrWillBeRawPtr<DataObjectItem> findStringItem(const String& type) co
nst; | 106 PassRefPtrWillBeRawPtr<DataObjectItem> findStringItem(const String& type) co
nst; |
107 bool internalAddStringItem(PassRefPtrWillBeRawPtr<DataObjectItem>); | 107 bool internalAddStringItem(PassRefPtrWillBeRawPtr<DataObjectItem>); |
108 void internalAddFileItem(PassRefPtrWillBeRawPtr<DataObjectItem>); | 108 void internalAddFileItem(PassRefPtrWillBeRawPtr<DataObjectItem>); |
109 | 109 |
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 and Left/Right/Middle mouse buttons |
113 int m_modifierKeyState; | 113 int m_modifiers; |
114 String m_filesystemId; | 114 String m_filesystemId; |
115 }; | 115 }; |
116 | 116 |
117 } // namespace blink | 117 } // namespace blink |
118 | 118 |
119 #endif | 119 #endif |
OLD | NEW |