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

Side by Side Diff: Source/core/clipboard/DataObject.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) 2008, 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (c) 2008, 2009, 2012 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 { 213 {
214 internalAddFileItem(DataObjectItem::createFromFile(File::createForUserProvid edFile(filename, displayName))); 214 internalAddFileItem(DataObjectItem::createFromFile(File::createForUserProvid edFile(filename, displayName)));
215 } 215 }
216 216
217 void DataObject::addSharedBuffer(const String& name, PassRefPtr<SharedBuffer> bu ffer) 217 void DataObject::addSharedBuffer(const String& name, PassRefPtr<SharedBuffer> bu ffer)
218 { 218 {
219 internalAddFileItem(DataObjectItem::createFromSharedBuffer(name, buffer)); 219 internalAddFileItem(DataObjectItem::createFromSharedBuffer(name, buffer));
220 } 220 }
221 221
222 DataObject::DataObject() 222 DataObject::DataObject()
223 : m_modifierKeyState(0) 223 : m_modifiers(0)
224 { 224 {
225 } 225 }
226 226
227 DataObject::DataObject(const DataObject& other) 227 DataObject::DataObject(const DataObject& other)
228 : m_itemList(other.m_itemList) 228 : m_itemList(other.m_itemList)
229 , m_modifierKeyState(0) 229 , m_modifiers(0)
230 { 230 {
231 } 231 }
232 232
233 PassRefPtrWillBeRawPtr<DataObjectItem> DataObject::findStringItem(const String& type) const 233 PassRefPtrWillBeRawPtr<DataObjectItem> DataObject::findStringItem(const String& type) const
234 { 234 {
235 for (size_t i = 0; i < m_itemList.size(); ++i) { 235 for (size_t i = 0; i < m_itemList.size(); ++i) {
236 if (m_itemList[i]->kind() == DataObjectItem::StringKind && m_itemList[i] ->type() == type) 236 if (m_itemList[i]->kind() == DataObjectItem::StringKind && m_itemList[i] ->type() == type)
237 return m_itemList[i]; 237 return m_itemList[i];
238 } 238 }
239 return nullptr; 239 return nullptr;
(...skipping 19 matching lines...) Expand all
259 259
260 void DataObject::trace(Visitor* visitor) 260 void DataObject::trace(Visitor* visitor)
261 { 261 {
262 #if ENABLE(OILPAN) 262 #if ENABLE(OILPAN)
263 visitor->trace(m_itemList); 263 visitor->trace(m_itemList);
264 HeapSupplementable<DataObject>::trace(visitor); 264 HeapSupplementable<DataObject>::trace(visitor);
265 #endif 265 #endif
266 } 266 }
267 267
268 } // namespace blink 268 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698