Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(806)

Side by Side Diff: Source/core/page/DragData.cpp

Issue 879333002: Support buttons attribute for drag event (blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 else if (filenamePolicy == ConvertFilenames && containsFiles()) 78 else if (filenamePolicy == ConvertFilenames && containsFiles())
79 url = filePathToURL(m_platformDragData->filenames()[0]); 79 url = filePathToURL(m_platformDragData->filenames()[0]);
80 return url; 80 return url;
81 } 81 }
82 82
83 bool DragData::containsFiles() const 83 bool DragData::containsFiles() const
84 { 84 {
85 return m_platformDragData->containsFilenames(); 85 return m_platformDragData->containsFilenames();
86 } 86 }
87 87
88 int DragData::modifierKeyState() const 88 int DragData::modifiers() const
89 { 89 {
90 return m_platformDragData->modifierKeyState(); 90 return m_platformDragData->modifiers();
91 } 91 }
92 92
93 void DragData::asFilePaths(Vector<String>& result) const 93 void DragData::asFilePaths(Vector<String>& result) const
94 { 94 {
95 const Vector<String>& filenames = m_platformDragData->filenames(); 95 const Vector<String>& filenames = m_platformDragData->filenames();
96 for (size_t i = 0; i < filenames.size(); ++i) { 96 for (size_t i = 0; i < filenames.size(); ++i) {
97 if (!filenames[i].isEmpty()) 97 if (!filenames[i].isEmpty())
98 result.append(filenames[i]); 98 result.append(filenames[i]);
99 } 99 }
100 } 100 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 return nullptr; 156 return nullptr;
157 } 157 }
158 158
159 String DragData::droppedFileSystemId() const 159 String DragData::droppedFileSystemId() const
160 { 160 {
161 return m_platformDragData->filesystemId(); 161 return m_platformDragData->filesystemId();
162 } 162 }
163 163
164 } // namespace blink 164 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698