| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 modifiers() const { return m_modifiers; } | 97 int modifiers() const { return m_modifiers; } |
| 98 void setModifiers(int modifiers) { m_modifiers = modifiers; } | 98 void setModifiers(int modifiers) { m_modifiers = modifiers; } |
| 99 | 99 |
| 100 bool canReadContent() const { return m_canReadContent; } |
| 101 |
| 100 DECLARE_TRACE(); | 102 DECLARE_TRACE(); |
| 101 | 103 |
| 102 WebDragData toWebDragData(); | 104 WebDragData toWebDragData(); |
| 103 | 105 |
| 104 private: | 106 private: |
| 105 DataObject(); | 107 DataObject(); |
| 106 | 108 |
| 107 DataObjectItem* findStringItem(const String& type) const; | 109 DataObjectItem* findStringItem(const String& type) const; |
| 108 bool internalAddStringItem(DataObjectItem*); | 110 bool internalAddStringItem(DataObjectItem*); |
| 109 void internalAddFileItem(DataObjectItem*); | 111 void internalAddFileItem(DataObjectItem*); |
| 110 | 112 |
| 111 HeapVector<Member<DataObjectItem>> m_itemList; | 113 HeapVector<Member<DataObjectItem>> m_itemList; |
| 112 | 114 |
| 113 // State of Shift/Ctrl/Alt/Meta keys and Left/Right/Middle mouse buttons | 115 // State of Shift/Ctrl/Alt/Meta keys and Left/Right/Middle mouse buttons |
| 114 int m_modifiers; | 116 int m_modifiers; |
| 115 String m_filesystemId; | 117 String m_filesystemId; |
| 118 |
| 119 bool m_canReadContent; |
| 116 }; | 120 }; |
| 117 | 121 |
| 118 } // namespace blink | 122 } // namespace blink |
| 119 | 123 |
| 120 #endif | 124 #endif |
| OLD | NEW |