| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. | 3 * Copyright (C) 2013 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 DragData::DragData(DataObject* data, const IntPoint& clientPosition, const IntPo
int& globalPosition, | 42 DragData::DragData(DataObject* data, const IntPoint& clientPosition, const IntPo
int& globalPosition, |
| 43 DragOperation sourceOperationMask, DragApplicationFlags flags) | 43 DragOperation sourceOperationMask, DragApplicationFlags flags) |
| 44 : m_clientPosition(clientPosition) | 44 : m_clientPosition(clientPosition) |
| 45 , m_globalPosition(globalPosition) | 45 , m_globalPosition(globalPosition) |
| 46 , m_platformDragData(data) | 46 , m_platformDragData(data) |
| 47 , m_draggingSourceOperationMask(sourceOperationMask) | 47 , m_draggingSourceOperationMask(sourceOperationMask) |
| 48 , m_applicationFlags(flags) | 48 , m_applicationFlags(flags) |
| 49 { | 49 { |
| 50 } | 50 } |
| 51 | 51 |
| 52 DragData::DragData(const String&, const IntPoint& clientPosition, const IntPoint
& globalPosition, | |
| 53 DragOperation sourceOperationMask, DragApplicationFlags flags) | |
| 54 : m_clientPosition(clientPosition) | |
| 55 , m_globalPosition(globalPosition) | |
| 56 , m_platformDragData(nullptr) | |
| 57 , m_draggingSourceOperationMask(sourceOperationMask) | |
| 58 , m_applicationFlags(flags) | |
| 59 { | |
| 60 } | |
| 61 | |
| 62 static bool containsHTML(const DataObject* dropData) | 52 static bool containsHTML(const DataObject* dropData) |
| 63 { | 53 { |
| 64 return dropData->types().contains(mimeTypeTextHTML); | 54 return dropData->types().contains(mimeTypeTextHTML); |
| 65 } | 55 } |
| 66 | 56 |
| 67 bool DragData::containsURL(FilenameConversionPolicy filenamePolicy) const | 57 bool DragData::containsURL(FilenameConversionPolicy filenamePolicy) const |
| 68 { | 58 { |
| 69 return m_platformDragData->types().contains(mimeTypeTextURIList) | 59 return m_platformDragData->types().contains(mimeTypeTextURIList) |
| 70 || (filenamePolicy == ConvertFilenames && m_platformDragData->containsFi
lenames()); | 60 || (filenamePolicy == ConvertFilenames && m_platformDragData->containsFi
lenames()); |
| 71 } | 61 } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 145 |
| 156 return nullptr; | 146 return nullptr; |
| 157 } | 147 } |
| 158 | 148 |
| 159 String DragData::droppedFileSystemId() const | 149 String DragData::droppedFileSystemId() const |
| 160 { | 150 { |
| 161 return m_platformDragData->filesystemId(); | 151 return m_platformDragData->filesystemId(); |
| 162 } | 152 } |
| 163 | 153 |
| 164 } // namespace blink | 154 } // namespace blink |
| OLD | NEW |