| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 else if (filenamePolicy == ConvertFilenames && containsFiles()) | 68 else if (filenamePolicy == ConvertFilenames && containsFiles()) |
| 69 url = filePathToURL(m_platformDragData->filenames()[0]); | 69 url = filePathToURL(m_platformDragData->filenames()[0]); |
| 70 return url; | 70 return url; |
| 71 } | 71 } |
| 72 | 72 |
| 73 bool DragData::containsFiles() const | 73 bool DragData::containsFiles() const |
| 74 { | 74 { |
| 75 return m_platformDragData->containsFilenames(); | 75 return m_platformDragData->containsFilenames(); |
| 76 } | 76 } |
| 77 | 77 |
| 78 int DragData::modifierKeyState() const | 78 int DragData::modifiers() const |
| 79 { | 79 { |
| 80 return m_platformDragData->modifierKeyState(); | 80 return m_platformDragData->modifiers(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 void DragData::asFilePaths(Vector<String>& result) const | 83 void DragData::asFilePaths(Vector<String>& result) const |
| 84 { | 84 { |
| 85 const Vector<String>& filenames = m_platformDragData->filenames(); | 85 const Vector<String>& filenames = m_platformDragData->filenames(); |
| 86 for (size_t i = 0; i < filenames.size(); ++i) { | 86 for (size_t i = 0; i < filenames.size(); ++i) { |
| 87 if (!filenames[i].isEmpty()) | 87 if (!filenames[i].isEmpty()) |
| 88 result.append(filenames[i]); | 88 result.append(filenames[i]); |
| 89 } | 89 } |
| 90 } | 90 } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 return nullptr; | 146 return nullptr; |
| 147 } | 147 } |
| 148 | 148 |
| 149 String DragData::droppedFileSystemId() const | 149 String DragData::droppedFileSystemId() const |
| 150 { | 150 { |
| 151 return m_platformDragData->filesystemId(); | 151 return m_platformDragData->filesystemId(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 } // namespace blink | 154 } // namespace blink |
| OLD | NEW |