Home
last modified time | relevance | path

Searched refs:clipboard (Results 1 – 25 of 63) sorted by relevance

123

/external/webkit/WebCore/platform/haiku/
DPasteboardHaiku.cpp56 BClipboard clipboard("WebKit"); in writeSelection() local
57 if (!clipboard.Lock()) in writeSelection()
60 clipboard.Clear(); in writeSelection()
61 BMessage* data = clipboard.Data(); in writeSelection()
66 clipboard.Commit(); in writeSelection()
68 clipboard.Unlock(); in writeSelection()
73 BClipboard clipboard("WebKit"); in writePlainText() local
74 if (!clipboard.Lock()) in writePlainText()
77 clipboard.Clear(); in writePlainText()
78 BMessage* data = clipboard.Data(); in writePlainText()
[all …]
/external/webkit/WebCore/bindings/js/
DJSClipboardCustom.cpp53 Clipboard* clipboard = impl(); in types() local
55 HashSet<String> types = clipboard->types(); in types()
68 Clipboard* clipboard = impl(); in clearData() local
71 clipboard->clearAllData(); in clearData()
76 clipboard->clearData(args.at(0).toString(exec)); in clearData()
90 Clipboard* clipboard = impl(); in getData() local
93 String result = clipboard->getData(args.at(0).toString(exec), success); in getData()
102 Clipboard* clipboard = impl(); in setData() local
108 return jsBoolean(clipboard->setData(args.at(0).toString(exec), args.at(1).toString(exec))); in setData()
113 Clipboard* clipboard = impl(); in setDragImage() local
[all …]
/external/webkit/WebCore/platform/gtk/
DPasteboardGtk.cpp57 static void clipboard_get_contents_cb(GtkClipboard *clipboard, GtkSelectionData *selection_data, in clipboard_get_contents_cb() argument
69 static void clipboard_clear_contents_cb(GtkClipboard *clipboard, gpointer data) { in clipboard_clear_contents_cb() argument
99 GtkClipboard* clipboard = m_helper->getClipboard(frame); in writeSelection() local
106 gtk_clipboard_set_with_data(clipboard, targets, n_targets, in writeSelection()
114 …GtkClipboard* clipboard = gtk_clipboard_get_for_display(gdk_display_get_default(), GDK_SELECTION_C… in writePlainText() local
115 gtk_clipboard_set_text(clipboard, utf8.data(), utf8.length()); in writePlainText()
123 GtkClipboard* clipboard = m_helper->getClipboard(frame); in writeURL() local
126 gtk_clipboard_set_text(clipboard, utf8.data(), utf8.length()); in writeURL()
132 …GtkClipboard* clipboard = gtk_clipboard_get_for_display(gdk_display_get_default(), GDK_SELECTION_C… in writeImage() local
142 gtk_clipboard_set_image(clipboard, pixbuf); in writeImage()
[all …]
DDataObjectGtk.cpp106 DataObjectGtk* DataObjectGtk::forClipboard(GtkClipboard* clipboard) in forClipboard() argument
110 if (!objectMap.contains(clipboard)) { in forClipboard()
112 objectMap.set(clipboard, dataObject); in forClipboard()
116 HashMap<GtkClipboard*, RefPtr<DataObjectGtk> >::iterator it = objectMap.find(clipboard); in forClipboard()
/external/webkit/WebCore/bindings/v8/custom/
DV8ClipboardCustom.cpp50 Clipboard* clipboard = V8Clipboard::toNative(info.Holder()); in typesAccessorGetter() local
52 HashSet<String> types = clipboard->types(); in typesAccessorGetter()
68 Clipboard* clipboard = V8Clipboard::toNative(args.Holder()); in clearDataCallback() local
71 clipboard->clearAllData(); in clearDataCallback()
79 clipboard->clearData(type); in clearDataCallback()
86 Clipboard* clipboard = V8Clipboard::toNative(args.Holder()); in getDataCallback() local
92 String result = clipboard->getData(toWebCoreString(args[0]), success); in getDataCallback()
102 Clipboard* clipboard = V8Clipboard::toNative(args.Holder()); in setDataCallback() local
109 return v8Boolean(clipboard->setData(type, data)); in setDataCallback()
115 Clipboard* clipboard = V8Clipboard::toNative(args.Holder()); in setDragImageCallback() local
[all …]
DV8EventCustom.cpp74 return toV8(static_cast<MouseEvent*>(event)->clipboard()); in dataTransferAccessorGetter()
84 return toV8(static_cast<ClipboardEvent*>(event)->clipboard()); in clipboardDataAccessorGetter()
/external/webkit/WebCore/page/
DDragController.cpp162 RefPtr<Clipboard> clipboard = dragData->createClipboard(policy); in dragExited() local
163 clipboard->setSourceOperation(dragData->draggingSourceOperationMask()); in dragExited()
164 mainFrame->eventHandler()->cancelDragAndDrop(createMouseEvent(dragData), clipboard.get()); in dragExited()
165 clipboard->setAccessPolicy(ClipboardNumb); // invalidate clipboard here for security in dragExited()
185 RefPtr<Clipboard> clipboard = dragData->createClipboard(ClipboardReadable); in performDrag() local
186 clipboard->setSourceOperation(dragData->draggingSourceOperationMask()); in performDrag()
187 … mainFrame->eventHandler()->performDragAndDrop(createMouseEvent(dragData), clipboard.get()); in performDrag()
188 clipboard->setAccessPolicy(ClipboardNumb); // invalidate clipboard here for security in performDrag()
495 RefPtr<Clipboard> clipboard = dragData->createClipboard(policy); in tryDHTMLDrag() local
497 clipboard->setSourceOperation(srcOpMask); in tryDHTMLDrag()
[all …]
DEventHandler.cpp1493 …t AtomicString& eventType, Node* dragTarget, const PlatformMouseEvent& event, Clipboard* clipboard) in dispatchDragEvent() argument
1508 0, 0, clipboard); in dispatchDragEvent()
1515 …ndleType type, Node* target, const PlatformMouseEvent& event, Clipboard* clipboard, bool* accepted) in canHandleDragAndDropForTarget() argument
1525 wasAccepted = frame->eventHandler()->updateDragAndDrop(event, clipboard); in canHandleDragAndDropForTarget()
1528 frame->eventHandler()->cancelDragAndDrop(event, clipboard); in canHandleDragAndDropForTarget()
1531 wasAccepted = frame->eventHandler()->performDragAndDrop(event, clipboard); in canHandleDragAndDropForTarget()
1544 bool EventHandler::updateDragAndDrop(const PlatformMouseEvent& event, Clipboard* clipboard) in updateDragAndDrop() argument
1567 …Target && canHandleDragAndDropForTarget(UpdateDragAndDrop, newTarget, event, clipboard, &accept)) { in updateDragAndDrop()
1573 accept = dispatchDragEvent(eventNames().dragenterEvent, newTarget, event, clipboard); in updateDragAndDrop()
1576 …&& canHandleDragAndDropForTarget(UpdateDragAndDrop, m_dragTarget.get(), event, clipboard, &accept)) in updateDragAndDrop()
[all …]
/external/webkit/WebKit/gtk/WebCoreSupport/
DPasteboardHelperGtk.cpp110 static void getClipboardContentsCallback(GtkClipboard* clipboard, GtkSelectionData *selectionData, … in getClipboardContentsCallback() argument
112 DataObjectGtk* dataObject = DataObjectGtk::forClipboard(clipboard); in getClipboardContentsCallback()
117 static void clearClipboardContentsCallback(GtkClipboard* clipboard, gpointer data) in clearClipboardContentsCallback() argument
119 DataObjectGtk* dataObject = DataObjectGtk::forClipboard(clipboard); in clearClipboardContentsCallback()
148 void PasteboardHelperGtk::writeClipboardContents(GtkClipboard* clipboard, gpointer data) in writeClipboardContents() argument
150 DataObjectGtk* dataObject = DataObjectGtk::forClipboard(clipboard); in writeClipboardContents()
166 gboolean succeeded = gtk_clipboard_set_with_data(clipboard, table, numberOfTargets, in writeClipboardContents()
175 gtk_clipboard_clear(clipboard); in writeClipboardContents()
DPasteboardHelperGtk.h50 void writeClipboardContents(GtkClipboard* clipboard, gpointer data = 0);
/external/webkit/WebCore/platform/qt/
DClipboardQt.cpp78 m_readableData = QApplication::clipboard()->mimeData(); in ClipboardQt()
107 QApplication::clipboard()->setMimeData(m_writableData); in clearData()
118 QApplication::clipboard()->setMimeData(0); in clearAllData()
151 QApplication::clipboard()->setMimeData(m_writableData); in setData()
256 QApplication::clipboard()->setMimeData(m_writableData); in declareAndWriteDragImage()
272 QApplication::clipboard()->setMimeData(m_writableData); in writeURL()
289 QApplication::clipboard()->setMimeData(m_writableData); in writeRange()
302 QApplication::clipboard()->setMimeData(m_writableData); in writePlainText()
DPasteboardQt.cpp74 QApplication::clipboard()->setMimeData(md, m_selectionMode ? in writeSelection()
87 return QApplication::clipboard()->text(m_selectionMode ? in plainText()
98 const QMimeData* mimeData = QApplication::clipboard()->mimeData( in documentFragment()
129 QApplication::clipboard()->setMimeData(md, m_selectionMode ? in writePlainText()
143 QApplication::clipboard()->setMimeData(md, m_selectionMode ? in writeURL()
162 QApplication::clipboard()->setPixmap(*pixmap, QClipboard::Clipboard); in writeImage()
/external/webkit/WebCore/dom/
DMouseEvent.h42 …PassRefPtr<EventTarget> relatedTarget, PassRefPtr<Clipboard> clipboard = 0, bool isSimulated = fal…
45 ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget, clipboard, isSimulated));
60 Clipboard* clipboard() const { return m_clipboard.get(); } in clipboard() function
76 … PassRefPtr<EventTarget> relatedTarget, PassRefPtr<Clipboard> clipboard, bool isSimulated);
DClipboardEvent.cpp32 …nt(const AtomicString& eventType, bool canBubble, bool cancelable, PassRefPtr<Clipboard> clipboard) in ClipboardEvent() argument
33 : Event(eventType, canBubble, cancelable), m_clipboard(clipboard) in ClipboardEvent()
DMouseEvent.cpp40 PassRefPtr<Clipboard> clipboard, bool isSimulated) in MouseEvent() argument
46 , m_clipboard(clipboard) in MouseEvent()
DEvent.h99 Clipboard* clipboardData() const { return isClipboardEvent() ? clipboard() : 0; } in clipboardData()
152 virtual Clipboard* clipboard() const { return 0; } in clipboard() function
DClipboardEvent.h43 Clipboard* clipboard() const { return m_clipboard.get(); } in clipboard() function
/external/webkit/WebKit/qt/WebCoreSupport/
DDragClientQt.cpp89 void DragClientQt::startDrag(DragImageRef, const IntPoint&, const IntPoint&, Clipboard* clipboard, … in startDrag() argument
92 QMimeData* clipboardData = static_cast<ClipboardQt*>(clipboard)->clipboardData(); in startDrag()
93 static_cast<ClipboardQt*>(clipboard)->invalidateWritableData(); in startDrag()
99 DragOperation dragOperationMask = clipboard->sourceOperation(); in startDrag()
/external/webkit/WebKit/chromium/src/
DDragClientImpl.cpp73 Clipboard* clipboard, in startDrag() argument
80 WebDragData dragData = static_cast<ClipboardChromium*>(clipboard)->dataObject(); in startDrag()
82 DragOperation dragOperationMask = clipboard->sourceOperation(); in startDrag()
DChromiumBridge.cpp121 return webKitClient()->clipboard()->isFormatAvailable( in clipboardIsFormatAvailable()
129 return webKitClient()->clipboard()->readPlainText( in clipboardReadPlainText()
138 *htmlText = webKitClient()->clipboard()->readHTML( in clipboardReadHTML()
148 webKitClient()->clipboard()->writeHTML( in clipboardWriteSelection()
154 webKitClient()->clipboard()->writePlainText(plainText); in clipboardWritePlainText()
159 webKitClient()->clipboard()->writeURL(url, title); in clipboardWriteURL()
171 webKitClient()->clipboard()->writeImage(webImage, sourceURL, title); in clipboardWriteImage()
DWebBindings.cpp266 Clipboard* clipboard = me->clipboard(); in getDragDataImpl() local
267 if (!clipboard) in getDragDataImpl()
271 ClipboardChromium* chrome = static_cast<ClipboardChromium*>(clipboard); in getDragDataImpl()
DDragClientImpl.h62 WebCore::Clipboard* clipboard,
/external/webkit/WebKit/mac/WebCoreSupport/
DWebDragClient.mm79 …e::DragSourceAction action, const WebCore::IntPoint& mouseDownPoint, WebCore::Clipboard* clipboard)
81 ASSERT(clipboard);
82 …mPoint:mouseDownPoint withPasteboard:static_cast<WebCore::ClipboardMac*>(clipboard)->pasteboard()];
85 …Ref dragImage, const IntPoint& at, const IntPoint& eventPos, Clipboard* clipboard, Frame* frame, b…
89 ASSERT(clipboard);
99 NSPasteboard *pasteboard = static_cast<ClipboardMac*>(clipboard)->pasteboard();
/external/webkit/WebKit/win/WebCoreSupport/
DWebDragClient.cpp125 …illPerformDragSourceAction(DragSourceAction action, const IntPoint& intPoint, Clipboard* clipboard) in willPerformDragSourceAction() argument
132 COMPtr<IDataObject> dataObject = static_cast<ClipboardWin*>(clipboard)->dataObject(); in willPerformDragSourceAction()
137 static_cast<ClipboardWin*>(clipboard)->setExternalDataObject(newDataObject.get()); in willPerformDragSourceAction()
140 …age, const IntPoint& imageOrigin, const IntPoint& dragPoint, Clipboard* clipboard, Frame* frame, b… in startDrag() argument
153 dataObject = static_cast<ClipboardWin*>(clipboard)->dataObject(); in startDrag()
/external/webkit/WebCore/platform/chromium/
DDragDataChromium.cpp53 RefPtr<ClipboardChromium> clipboard = ClipboardChromium::create(true, in createClipboard() local
56 return clipboard.release(); in createClipboard()

123