Home
last modified time | relevance | path

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

12345

/external/webkit/Source/WebCore/platform/gtk/
DPasteboardGtk.cpp68 GtkClipboard* clipboard = m_helper->getClipboard(frame); in writeSelection() local
69 DataObjectGtk* dataObject = DataObjectGtk::forClipboard(clipboard); in writeSelection()
72 m_helper->writeClipboardContents(clipboard); in writeSelection()
77 …GtkClipboard* clipboard = gtk_clipboard_get_for_display(gdk_display_get_default(), GDK_SELECTION_C… in writePlainText() local
78 DataObjectGtk* dataObject = DataObjectGtk::forClipboard(clipboard); in writePlainText()
80 m_helper->writeClipboardContents(clipboard); in writePlainText()
88 GtkClipboard* clipboard = m_helper->getClipboard(frame); in writeURL() local
89 DataObjectGtk* dataObject = DataObjectGtk::forClipboard(clipboard); in writeURL()
91 m_helper->writeClipboardContents(clipboard); in writeURL()
96 …GtkClipboard* clipboard = gtk_clipboard_get_for_display(gdk_display_get_default(), GDK_SELECTION_C… in writeImage() local
[all …]
DPasteboardHelper.cpp129 void PasteboardHelper::getClipboardContents(GtkClipboard* clipboard) in getClipboardContents() argument
131 DataObjectGtk* dataObject = DataObjectGtk::forClipboard(clipboard); in getClipboardContents()
134 if (gtk_clipboard_wait_is_text_available(clipboard)) { in getClipboardContents()
135 GOwnPtr<gchar> textData(gtk_clipboard_wait_for_text(clipboard)); in getClipboardContents()
140 if (gtk_clipboard_wait_is_target_available(clipboard, markupAtom)) { in getClipboardContents()
141 if (GtkSelectionData* data = gtk_clipboard_wait_for_contents(clipboard, markupAtom)) { in getClipboardContents()
149 if (gtk_clipboard_wait_is_target_available(clipboard, uriListAtom)) { in getClipboardContents()
150 if (GtkSelectionData* data = gtk_clipboard_wait_for_contents(clipboard, uriListAtom)) { in getClipboardContents()
262 static void getClipboardContentsCallback(GtkClipboard* clipboard, GtkSelectionData *selectionData, … in getClipboardContentsCallback() argument
264 DataObjectGtk* dataObject = DataObjectGtk::forClipboard(clipboard); in getClipboardContentsCallback()
[all …]
DDataObjectGtk.cpp161 DataObjectGtk* DataObjectGtk::forClipboard(GtkClipboard* clipboard) in forClipboard() argument
165 if (!objectMap.contains(clipboard)) { in forClipboard()
167 objectMap.set(clipboard, dataObject); in forClipboard()
171 HashMap<GtkClipboard*, RefPtr<DataObjectGtk> >::iterator it = objectMap.find(clipboard); in forClipboard()
DClipboardGtk.h44 …assRefPtr<ClipboardGtk> create(ClipboardAccessPolicy policy, GtkClipboard* clipboard, Frame* frame) in create() argument
46 return adoptRef(new ClipboardGtk(policy, clipboard, frame)); in create()
/external/chromium/chrome/browser/autocomplete/
Dautocomplete_edit_view_mac_unittest.mm12 #include "ui/base/clipboard/clipboard.h"
13 #include "ui/base/clipboard/scoped_clipboard_writer.h"
19 ui::Clipboard clipboard;
22 // Does an empty clipboard get empty text?
23 clipboard.WriteObjects(ui::Clipboard::ObjectMap());
24 text = AutocompleteEditViewMac::GetClipboardText(&clipboard);
31 // Can we pull straight text off the clipboard?
33 ui::ScopedClipboardWriter clipboard_writer(&clipboard);
37 text = AutocompleteEditViewMac::GetClipboardText(&clipboard);
40 // Can we pull a bookmark off the clipboard?
[all …]
Dautocomplete_edit_view_gtk.cc133 void ClipboardSelectionCleared(GtkClipboard* clipboard, in ClipboardSelectionCleared() argument
1539 GtkClipboard* clipboard = gtk_clipboard_get(GDK_SELECTION_PRIMARY); in HandleMarkSet() local
1540 if (gtk_clipboard_get_owner(clipboard) == G_OBJECT(text_buffer_)) in HandleMarkSet()
1745 GtkClipboard* clipboard = gtk_clipboard_get(GDK_SELECTION_PRIMARY); in HandleCopyOrCutClipboard() local
1746 DCHECK(clipboard); in HandleCopyOrCutClipboard()
1747 if (!clipboard) in HandleCopyOrCutClipboard()
1917 GtkClipboard* clipboard = in StartUpdatingHighlightedText() local
1919 DCHECK(clipboard); in StartUpdatingHighlightedText()
1920 if (clipboard) in StartUpdatingHighlightedText()
1921 gtk_text_buffer_remove_selection_clipboard(text_buffer_, clipboard); in StartUpdatingHighlightedText()
[all …]
/external/webkit/Source/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(ustringToString(exec->argument(0).toString(exec))); in clearData()
90 Clipboard* clipboard = impl(); in getData() local
93 String result = clipboard->getData(ustringToString(exec->argument(0).toString(exec)), success); in getData()
102 Clipboard* clipboard = impl(); in setDragImage() local
104 if (!clipboard->isForDragAndDrop()) in setDragImage()
124clipboard->setDragImage(static_cast<HTMLImageElement*>(node)->cachedImage(), IntPoint(x, y)); in setDragImage()
[all …]
/external/webkit/Source/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 setDragImageCallback() local
104 if (!clipboard->isForDragAndDrop()) in setDragImageCallback()
121clipboard->setDragImage(static_cast<HTMLImageElement*>(node)->cachedImage(), IntPoint(x, y)); in setDragImageCallback()
[all …]
/external/webkit/Source/WebCore/page/
DDragController.cpp174 RefPtr<Clipboard> clipboard = Clipboard::create(policy, dragData, mainFrame); in dragExited() local
175 clipboard->setSourceOperation(dragData->draggingSourceOperationMask()); in dragExited()
176 mainFrame->eventHandler()->cancelDragAndDrop(createMouseEvent(dragData), clipboard.get()); in dragExited()
177 clipboard->setAccessPolicy(ClipboardNumb); // invalidate clipboard here for security in dragExited()
197 … RefPtr<Clipboard> clipboard = Clipboard::create(ClipboardReadable, dragData, mainFrame.get()); in performDrag() local
198 clipboard->setSourceOperation(dragData->draggingSourceOperationMask()); in performDrag()
199 … mainFrame->eventHandler()->performDragAndDrop(createMouseEvent(dragData), clipboard.get()); in performDrag()
200 clipboard->setAccessPolicy(ClipboardNumb); // invalidate clipboard here for security in performDrag()
552 RefPtr<Clipboard> clipboard = Clipboard::create(policy, dragData, mainFrame.get()); in tryDHTMLDrag() local
554 clipboard->setSourceOperation(srcOpMask); in tryDHTMLDrag()
[all …]
/external/webkit/Source/WebCore/platform/qt/
DPasteboardQt.cpp77 …QApplication::clipboard()->setMimeData(md, m_selectionMode ? QClipboard::Selection : QClipboard::C… in writeSelection()
86 …if (QApplication::clipboard()->mimeData()->hasFormat((QLatin1String("application/vnd.qtwebkit.smar… in canSmartReplace()
95 …return QApplication::clipboard()->text(m_selectionMode ? QClipboard::Selection : QClipboard::Clipb… in plainText()
105 const QMimeData* mimeData = QApplication::clipboard()->mimeData( in documentFragment()
136 …QApplication::clipboard()->setMimeData(md, m_selectionMode ? QClipboard::Selection : QClipboard::C… in writePlainText()
149 …QApplication::clipboard()->setMimeData(md, m_selectionMode ? QClipboard::Selection : QClipboard::C… in writeURL()
168 QApplication::clipboard()->setPixmap(*pixmap, QClipboard::Clipboard); in writeImage()
DClipboardQt.cpp96 m_readableData = QApplication::clipboard()->mimeData(); in ClipboardQt()
125 QApplication::clipboard()->setMimeData(m_writableData); in clearData()
136 QApplication::clipboard()->setMimeData(0); in clearAllData()
187 QApplication::clipboard()->setMimeData(m_writableData); in setData()
305 QApplication::clipboard()->setMimeData(m_writableData); in declareAndWriteDragImage()
321 QApplication::clipboard()->setMimeData(m_writableData); in writeURL()
338 QApplication::clipboard()->setMimeData(m_writableData); in writeRange()
351 QApplication::clipboard()->setMimeData(m_writableData); in writePlainText()
/external/webkit/Source/WebKit/gtk/tests/
Dtestcopyandpaste.c85 GtkClipboard* clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); in load_status_cb() local
86 gtk_clipboard_clear(clipboard); in load_status_cb()
90 gchar* text = gtk_clipboard_wait_for_text(clipboard); in load_status_cb()
96 …GtkSelectionData* selectionData = gtk_clipboard_wait_for_contents(clipboard, gdk_atom_intern("text… in load_status_cb()
106 g_assert(!gtk_clipboard_wait_is_uris_available(clipboard)); in load_status_cb()
107 g_assert(!gtk_clipboard_wait_is_image_available(clipboard)); in load_status_cb()
188 static void pasting_test_get_data_callback(GtkClipboard* clipboard, GtkSelectionData* selection_dat… in pasting_test_get_data_callback() argument
193 static void pasting_test_clear_data_callback(GtkClipboard* clipboard, gpointer data) in pasting_test_clear_data_callback() argument
/external/chromium/chrome/browser/net/
Dbrowser_url_util.cc18 ui::Clipboard *clipboard) { in WriteURLToClipboard() argument
19 if (url.is_empty() || !url.is_valid() || !clipboard) in WriteURLToClipboard()
29 ui::ScopedClipboardWriter scw(clipboard); in WriteURLToClipboard()
/external/webkit/Source/WebKit/qt/WebCoreSupport/
DDragClientQt.cpp89 …ag(DragImageRef dragImage, const IntPoint&, const IntPoint&, Clipboard* clipboard, Frame* frame, b… in startDrag() argument
92 QMimeData* clipboardData = static_cast<ClipboardQt*>(clipboard)->clipboardData(); in startDrag()
93 static_cast<ClipboardQt*>(clipboard)->invalidateWritableData(); in startDrag()
101 DragOperation dragOperationMask = clipboard->sourceOperation(); in startDrag()
/external/webkit/Source/WebKit/chromium/src/
DDragClientImpl.cpp76 Clipboard* clipboard, in startDrag() argument
83 WebDragData dragData = static_cast<ClipboardChromium*>(clipboard)->dataObject(); in startDrag()
85 DragOperation dragOperationMask = clipboard->sourceOperation(); in startDrag()
DPlatformBridge.cpp155 return webKitClient()->clipboard()->isFormatAvailable( in clipboardIsFormatAvailable()
163 return webKitClient()->clipboard()->readPlainText( in clipboardReadPlainText()
172 *htmlText = webKitClient()->clipboard()->readHTML( in clipboardReadHTML()
180 return webKitClient()->clipboard()->readImage(static_cast<WebClipboard::Buffer>(buffer)); in clipboardReadImage()
188 webKitClient()->clipboard()->writeHTML( in clipboardWriteSelection()
194 webKitClient()->clipboard()->writePlainText(plainText); in clipboardWritePlainText()
199 webKitClient()->clipboard()->writeURL(url, title); in clipboardWriteURL()
211 webKitClient()->clipboard()->writeImage(webImage, sourceURL, title); in clipboardWriteImage()
218 webKitClient()->clipboard()->writeData(type, data, metadata); in clipboardWriteData()
224 WebVector<WebString> result = webKitClient()->clipboard()->readAvailableTypes( in clipboardReadAvailableTypes()
[all …]
/external/webkit/Source/WebCore/dom/
DMouseEvent.h45 …PassRefPtr<EventTarget> relatedTarget, PassRefPtr<Clipboard> clipboard = 0, bool isSimulated = fal…
48 ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget, clipboard, isSimulated));
66 Clipboard* clipboard() const { return m_clipboard.get(); } in clipboard() function
81 … 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()
/external/webkit/Source/WebKit/win/WebCoreSupport/
DWebDragClient.cpp96 …illPerformDragSourceAction(DragSourceAction action, const IntPoint& intPoint, Clipboard* clipboard) in willPerformDragSourceAction() argument
103 COMPtr<IDataObject> dataObject = static_cast<ClipboardWin*>(clipboard)->dataObject(); in willPerformDragSourceAction()
108 static_cast<ClipboardWin*>(clipboard)->setExternalDataObject(newDataObject.get()); in willPerformDragSourceAction()
111 …age, const IntPoint& imageOrigin, const IntPoint& dragPoint, Clipboard* clipboard, Frame* frame, b… in startDrag() argument
124 dataObject = static_cast<ClipboardWin*>(clipboard)->dataObject(); in startDrag()
/external/webkit/Source/WebCore/platform/haiku/
DPasteboardHaiku.cpp64 AutoClipboardLocker(BClipboard* clipboard) in AutoClipboardLocker() argument
65 : m_clipboard(clipboard) in AutoClipboardLocker()
66 , m_isLocked(clipboard && clipboard->Lock()) in AutoClipboardLocker()
/external/webkit/Source/WebKit/mac/WebCoreSupport/
DWebDragClient.mm83 …e::DragSourceAction action, const WebCore::IntPoint& mouseDownPoint, WebCore::Clipboard* clipboard)
85 ASSERT(clipboard);
86 …mPoint:mouseDownPoint withPasteboard:static_cast<WebCore::ClipboardMac*>(clipboard)->pasteboard()];
89 …Ref dragImage, const IntPoint& at, const IntPoint& eventPos, Clipboard* clipboard, Frame* frame, b…
93 ASSERT(clipboard);
103 NSPasteboard *pasteboard = static_cast<ClipboardMac*>(clipboard)->pasteboard();
/external/chromium/chrome/browser/bookmarks/
Dbookmark_node_data.cc143 ui::ScopedClipboardWriter scw(g_browser_process->clipboard()); in WriteToClipboard()
169 ui::Clipboard* clipboard = g_browser_process->clipboard(); in ReadFromClipboard() local
170 clipboard->ReadData(kClipboardFormatString, &data); in ReadFromClipboard()
180 clipboard->ReadBookmark(&title, &url); in ReadFromClipboard()
196 return g_browser_process->clipboard()->IsFormatAvailableByString( in ClipboardContainsBookmarks()
/external/chromium/webkit/glue/
Dscoped_clipboard_writer_glue.h18 ScopedClipboardWriterGlue(ui::Clipboard* clipboard) in ScopedClipboardWriterGlue() argument
19 : ui::ScopedClipboardWriter(clipboard), in ScopedClipboardWriterGlue()
/external/chromium/chrome/browser/ui/cocoa/applescript/examples/
Dtab_manipulation.applescript26 cut selection -- Cut a piece of text and place it on the system clipboard.
28 copy selection -- Copy a piece of text and place it on the system clipboard.
30 paste selection -- Paste a text from the system clipboard.
/external/webkit/Source/WebKit/gtk/WebCoreSupport/
DDragClientGtk.cpp100 …, const IntPoint& dragImageOrigin, const IntPoint& eventPos, Clipboard* clipboard, Frame* frame, b… in startDrag() argument
102 ClipboardGtk* clipboardGtk = reinterpret_cast<ClipboardGtk*>(clipboard); in startDrag()
109 …(GTK_WIDGET(m_webView), targetList.get(), dragOperationToGdkDragActions(clipboard->sourceOperation… in startDrag()

12345