Home
last modified time | relevance | path

Searched refs:dataTransfer (Results 1 – 25 of 40) sorted by relevance

12

/external/chromium_org/ui/file_manager/file_manager/foreground/js/
Dfile_transfer_controller.js182 cutOrCopy_: function(dataTransfer, effectAllowed) { argument
187 dataTransfer.setData('fs/tag', 'filemanager-data');
188 dataTransfer.setData('fs/sourceRootURL',
191 dataTransfer.setData('fs/sources', sourceURLs.join('\n'));
192 dataTransfer.effectAllowed = effectAllowed;
193 dataTransfer.setData('fs/effectallowed', effectAllowed);
194 dataTransfer.setData('fs/missingFileContents',
198 dataTransfer.items.add(this.selectedFileObjects_[i]);
226 getSourceRootURL_: function(dataTransfer) { argument
227 var sourceRootURL = dataTransfer.getData('fs/sourceRootURL');
[all …]
/external/chromium_org/third_party/WebKit/Source/core/page/
DDragController.cpp221 … RefPtrWillBeRawPtr<DataTransfer> dataTransfer = createDraggingDataTransfer(policy, dragData); in dragExited() local
222 dataTransfer->setSourceOperation(dragData->draggingSourceOperationMask()); in dragExited()
223 mainFrame->eventHandler().cancelDragAndDrop(createMouseEvent(dragData), dataTransfer.get()); in dragExited()
224 dataTransfer->setAccessPolicy(DataTransferNumb); // invalidate clipboard here for security in dragExited()
246 …RefPtrWillBeRawPtr<DataTransfer> dataTransfer = createDraggingDataTransfer(DataTransferReadable, d… in performDrag() local
247 dataTransfer->setSourceOperation(dragData->draggingSourceOperationMask()); in performDrag()
248 …ult = mainFrame->eventHandler().performDragAndDrop(createMouseEvent(dragData), dataTransfer.get()); in performDrag()
249dataTransfer->setAccessPolicy(DataTransferNumb); // Invalidate clipboard here for security in performDrag()
599 RefPtrWillBeRawPtr<DataTransfer> dataTransfer = createDraggingDataTransfer(policy, dragData); in tryDHTMLDrag() local
601 dataTransfer->setSourceOperation(srcOpMask); in tryDHTMLDrag()
[all …]
DEventHandler.cpp1612 …icString& eventType, Node* dragTarget, const PlatformMouseEvent& event, DataTransfer* dataTransfer) in dispatchDragEvent() argument
1625 0, nullptr, dataTransfer); in dispatchDragEvent()
1644 static bool findDropZone(Node* target, DataTransfer* dataTransfer) in findDropZone() argument
1669 matched = matched || dataTransfer->hasDropZoneType(keywords[i].string()); in findDropZone()
1676 dataTransfer->setDropEffect(convertDragOperationToDropZoneOperation(dragOperation)); in findDropZone()
1683 bool EventHandler::updateDragAndDrop(const PlatformMouseEvent& event, DataTransfer* dataTransfer) in updateDragAndDrop() argument
1710 accept = targetFrame->eventHandler().updateDragAndDrop(event, dataTransfer); in updateDragAndDrop()
1717 … accept = dispatchDragEvent(EventTypeNames::dragenter, newTarget.get(), event, dataTransfer); in updateDragAndDrop()
1719 accept = findDropZone(newTarget.get(), dataTransfer); in updateDragAndDrop()
1724 accept = targetFrame->eventHandler().updateDragAndDrop(event, dataTransfer); in updateDragAndDrop()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/clipboard/
DDataTransferItem.cpp44 …erItem> DataTransferItem::create(PassRefPtrWillBeRawPtr<DataTransfer> dataTransfer, PassRefPtrWill… in create() argument
46 return adoptRefWillBeNoop(new DataTransferItem(dataTransfer, item)); in create()
90 DataTransferItem::DataTransferItem(PassRefPtrWillBeRawPtr<DataTransfer> dataTransfer, PassRefPtrWil… in DataTransferItem() argument
91 : m_dataTransfer(dataTransfer) in DataTransferItem()
DDataTransferItemList.cpp40 …st> DataTransferItemList::create(PassRefPtrWillBeRawPtr<DataTransfer> dataTransfer, PassRefPtrWill… in create() argument
42 return adoptRefWillBeNoop(new DataTransferItemList(dataTransfer, list)); in create()
101 DataTransferItemList::DataTransferItemList(PassRefPtrWillBeRawPtr<DataTransfer> dataTransfer, PassR… in DataTransferItemList() argument
102 : m_dataTransfer(dataTransfer) in DataTransferItemList()
DDataTransferItem.h61 DataTransfer* dataTransfer() { return m_dataTransfer.get(); } in dataTransfer() function
/external/chromium_org/chrome/browser/resources/ntp4/
Dapps_page.js515 setDragData: function(dataTransfer) { argument
516 dataTransfer.setData('Text', this.appData_.title);
517 dataTransfer.setData('URL', this.appData_.url);
642 this.setDropEffect(e.dataTransfer);
650 if (!e.dataTransfer || !e.dataTransfer.types)
652 return Array.prototype.indexOf.call(e.dataTransfer.types,
657 addDragData: function(dataTransfer, index) { argument
679 this.addOutsideData_(dataTransfer);
694 addOutsideData_: function(dataTransfer) { argument
695 var url = dataTransfer.getData('url');
[all …]
Dtile_page.js29 function setCurrentDropEffect(dataTransfer, effect) { argument
30 dataTransfer.dropEffect = effect;
32 currentlyDraggingTile.lastDropEffect = dataTransfer.dropEffect;
113 e.dataTransfer.effectAllowed = 'copyMove';
114 this.firstChild.setDragData(e.dataTransfer);
1254 this.setDropEffect(e.dataTransfer);
1282 this.addDragData(e.dataTransfer, adjustedIndex);
1374 addDragData: function(dataTransfer, index) { argument
1392 setDropEffect: function(dataTransfer) { argument
Dnav_dot.js220 ntp.setCurrentDropEffect(e.dataTransfer, 'none');
222 this.page_.setDropEffect(e.dataTransfer);
Dsuggestions_page.js245 setDragData: function(dataTransfer) { argument
246 dataTransfer.setData('Text', this.data_.title);
247 dataTransfer.setData('URL', this.data_.url);
Dmost_visited_page.js265 setDragData: function(dataTransfer) { argument
266 dataTransfer.setData('Text', this.data_.title);
267 dataTransfer.setData('URL', this.data_.url);
Dtrash.js46 ntp.setCurrentDropEffect(e.dataTransfer, 'move');
/external/chromium_org/chrome/browser/resources/net_internals/
Dimport_view.js84 return indexOf.call(event.dataTransfer.types, 'Files') == -1 ||
85 event.dataTransfer.files.length > 1;
94 if (indexOf.call(event.dataTransfer.types, 'Files') == -1 ||
95 event.dataTransfer.files.length != 1) {
104 this.loadLogFile(event.dataTransfer.files[0]);
/external/chromium_org/native_client_sdk/src/examples/api/var_array_buffer/
Dexample.js24 if (!dropEvent.dataTransfer || !dropEvent.dataTransfer.files)
28 var files = dropEvent.dataTransfer.files;
/external/chromium_org/third_party/WebKit/Source/web/
DDragClientImpl.cpp61 …st IntPoint& dragImageOrigin, const IntPoint& eventPos, DataTransfer* dataTransfer, LocalFrame* fr… in startDrag() argument
66 WebDragData dragData(dataTransfer->dataObject()); in startDrag()
67 …WebDragOperationsMask dragOperationMask = static_cast<WebDragOperationsMask>(dataTransfer->sourceO… in startDrag()
/external/chromium_org/chrome/browser/resources/extensions/
Dextensions.js47 return (e.dataTransfer.types &&
48 e.dataTransfer.types.indexOf('Files') > -1);
68 if (e.dataTransfer.files.length != 1)
74 for (var i = 0; i < e.dataTransfer.items.length; ++i) {
75 if (e.dataTransfer.items[i].kind == 'file' &&
76 e.dataTransfer.items[i].webkitGetAsEntry().isDirectory) {
84 /\.(crx|user\.js|zip)$/i.test(e.dataTransfer.files[0].name)) {
/external/chromium_org/third_party/WebKit/Source/core/events/
DClipboardEvent.h37 …icString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<DataTransfer> dataTransfer) in create() argument
39 return adoptRefWillBeNoop(new ClipboardEvent(type, canBubble, cancelable, dataTransfer)); in create()
DMouseEvent.cpp72 …wPtr<EventTarget> relatedTarget, PassRefPtrWillBeRawPtr<DataTransfer> dataTransfer, bool isSimulat… in create() argument
77 …ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget, dataTransfer, isSimulated, syntheticEve… in create()
91 …PassRefPtrWillBeRawPtr<DataTransfer> dataTransfer, bool isSimulated, PlatformMouseEvent::Synthetic… in MouseEvent() argument
99 , m_dataTransfer(dataTransfer) in MouseEvent()
/external/chromium_org/chrome/browser/resources/options/
Dbrowser_options_startup_page_list.js187 e.dataTransfer.effectAllowed = 'move';
191 e.dataTransfer.setData('text/plain', target.urlField_.value);
257 var url = e.dataTransfer.getData('url');
Dlanguage_list.js246 e.dataTransfer.effectAllowed = 'move';
250 e.dataTransfer.setData('text/plain', target.title);
/external/chromium_org/chrome/browser/resources/bookmark_manager/js/
Ddnd.js342 e.dataTransfer.effectAllowed = draggedNodes.length == 1 &&
367 e.dataTransfer.dropEffect = 'none';
389 e.dataTransfer.dropEffect = 'none';
393 e.dataTransfer.dropEffect = dragInfo.isSameProfile() ? 'move' : 'copy';
/external/chromium_org/chrome/browser/resources/about_sys/
Dabout_sys.js21 e.dataTransfer.dropEffect = 'copy';
26 var file = e.dataTransfer.files[0];
/external/chromium_org/third_party/WebKit/Source/modules/filesystem/
DDataTransferItemFileSystem.cpp63 …DOMFileSystem* domFileSystem = DraggedIsolatedFileSystem::getDOMFileSystem(item.dataTransfer()->da… in webkitGetAsEntry()
/external/chromium_org/chrome/browser/ui/webui/options/
Dstartup_page_list_browsertest.js129 mockDropEvent.dataTransfer.setData('url', NEW_PAGE);
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ui/
DViewportControl.js172 event.dataTransfer.clearData();
173 event.dataTransfer.setData("text/plain", text);
174 event.dataTransfer.effectAllowed = "copy";

12