Chromium Code Reviews| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 // Used for dragging in filesystem from the desktop. | 89 // Used for dragging in filesystem from the desktop. |
| 90 void setFilesystemId(const String& fileSystemId) { m_filesystemId = fileSyst emId; } | 90 void setFilesystemId(const String& fileSystemId) { m_filesystemId = fileSyst emId; } |
| 91 const String& filesystemId() const { ASSERT(!m_filesystemId.isEmpty()); retu rn m_filesystemId; } | 91 const String& filesystemId() const { ASSERT(!m_filesystemId.isEmpty()); retu rn m_filesystemId; } |
| 92 | 92 |
| 93 // Used to handle files (images) being dragged out. | 93 // Used to handle files (images) being dragged out. |
| 94 void addSharedBuffer(const String& name, PassRefPtr<SharedBuffer>); | 94 void addSharedBuffer(const String& name, PassRefPtr<SharedBuffer>); |
| 95 | 95 |
| 96 int modifiers() const { return m_modifiers; } | 96 int modifiers() const { return m_modifiers; } |
| 97 void setModifiers(int modifiers) { m_modifiers = modifiers; } | 97 void setModifiers(int modifiers) { m_modifiers = modifiers; } |
| 98 | 98 |
| 99 bool canReadContent() const { return m_canReadContent; } | |
| 100 | |
| 99 DECLARE_TRACE(); | 101 DECLARE_TRACE(); |
| 100 | 102 |
| 101 WebDragData toWebDragData(); | 103 WebDragData toWebDragData(); |
| 102 | 104 |
| 103 private: | 105 private: |
| 104 DataObject(); | 106 DataObject(); |
| 105 | 107 |
| 106 DataObjectItem* findStringItem(const String& type) const; | 108 DataObjectItem* findStringItem(const String& type) const; |
| 107 bool internalAddStringItem(DataObjectItem*); | 109 bool internalAddStringItem(DataObjectItem*); |
| 108 void internalAddFileItem(DataObjectItem*); | 110 void internalAddFileItem(DataObjectItem*); |
| 109 | 111 |
| 110 HeapVector<Member<DataObjectItem>> m_itemList; | 112 HeapVector<Member<DataObjectItem>> m_itemList; |
| 111 | 113 |
| 112 // State of Shift/Ctrl/Alt/Meta keys and Left/Right/Middle mouse buttons | 114 // State of Shift/Ctrl/Alt/Meta keys and Left/Right/Middle mouse buttons |
| 113 int m_modifiers; | 115 int m_modifiers; |
| 114 String m_filesystemId; | 116 String m_filesystemId; |
| 117 | |
| 118 bool m_canReadContent; | |
|
dcheng
2016/03/30 08:40:02
This shouldn't be necessary, DataTransfer/DataTran
hush (inactive)
2016/04/06 22:47:51
Yeah. Removed.
| |
| 115 }; | 119 }; |
| 116 | 120 |
| 117 } // namespace blink | 121 } // namespace blink |
| 118 | 122 |
| 119 #endif | 123 #endif |
| OLD | NEW |