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

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: rebase Created 5 years, 9 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
« no previous file with comments | « Source/core/page/DragData.h ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/page/DragData.h ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698