Searched refs:pasteboard (Results 1 - 25 of 53) sorted by relevance

123

/external/webkit/Source/WebKit/mac/History/
H A DWebURLsWithTitles.h37 // Writes parallel arrays of URLs and titles to the pasteboard. These items can be retrieved by
42 // for pasteboard before invoking this method, or it will return without doing anything.
43 + (void)writeURLs:(NSArray *)URLs andTitles:(NSArray *)titles toPasteboard:(NSPasteboard *)pasteboard;
45 // Reads an array of NSURLs off the pasteboard. Returns nil if pasteboard does not contain
48 + (NSArray *)URLsFromPasteboard:(NSPasteboard *)pasteboard;
50 // Reads an array of NSStrings off the pasteboard. Returns nil if pasteboard does not contain
53 + (NSArray *)titlesFromPasteboard:(NSPasteboard *)pasteboard;
H A DWebURLsWithTitles.m48 +(void)writeURLs:(NSArray *)URLs andTitles:(NSArray *)titles toPasteboard:(NSPasteboard *)pasteboard
59 if ([pasteboard availableTypeFromArray:[self arrayWithIFURLsWithTitlesPboardType]] == nil) {
74 [pasteboard setPropertyList:[NSArray arrayWithObjects:URLStrings, titlesOrEmptyStrings, nil]
78 +(NSArray *)titlesFromPasteboard:(NSPasteboard *)pasteboard
80 if ([pasteboard availableTypeFromArray:[self arrayWithIFURLsWithTitlesPboardType]] == nil) {
84 return [[pasteboard propertyListForType:WebURLsWithTitlesPboardType] objectAtIndex:1];
87 +(NSArray *)URLsFromPasteboard:(NSPasteboard *)pasteboard
93 if ([pasteboard availableTypeFromArray:[self arrayWithIFURLsWithTitlesPboardType]] == nil) {
97 URLStrings = [[pasteboard propertyListForType:WebURLsWithTitlesPboardType] objectAtIndex:0];
/external/chromium/chrome/browser/ui/cocoa/download/
H A Ddownload_util_mac.h17 void AddFileToPasteboard(NSPasteboard* pasteboard, const FilePath& path);
/external/webkit/Source/WebKit/mac/WebView/
H A DWebEditingDelegatePrivate.h35 - (void)webView:(WebView *)webView didWriteSelectionToPasteboard:(NSPasteboard *)pasteboard;
36 - (void)webView:(WebView *)webView didSetSelectionTypesForPasteboard:(NSPasteboard *)pasteboard;
H A DWebHTMLViewPrivate.h76 - (void)_writeSelectionToPasteboard:(NSPasteboard *)pasteboard;
116 - (DOMDocumentFragment *)_documentFragmentFromPasteboard:(NSPasteboard *)pasteboard forType:(NSString *)pboardType inContext:(DOMRange *)context subresources:(NSArray **)subresources;
142 - (BOOL)_canSmartReplaceWithPasteboard:(NSPasteboard *)pasteboard;
H A DWebHTMLViewInternal.h53 - (DOMDocumentFragment *)_documentFragmentFromPasteboard:(NSPasteboard *)pasteboard;
H A DWebDocumentPrivate.h47 - (void)writeSelectionWithPasteboardTypes:(NSArray *)types toPasteboard:(NSPasteboard *)pasteboard;
/external/webkit/Source/WebKit/mac/WebCoreSupport/
H A DWebDragClient.mm86 [[m_webView _UIDelegateForwarder] webView:m_webView willPerformDragSourceAction:(WebDragSourceAction)action fromPoint:mouseDownPoint withPasteboard:static_cast<WebCore::ClipboardMac*>(clipboard)->pasteboard()];
103 NSPasteboard *pasteboard = static_cast<ClipboardMac*>(clipboard)->pasteboard();
109 SEL selector = @selector(webView:dragImage:at:offset:event:pasteboard:source:slideBack:forView:);
113 [delegate webView:m_webView dragImage:dragNSImage at:at offset:NSZeroSize event:event pasteboard:pasteboard source:sourceHTMLView slideBack:YES forView:topHTMLView];
118 [delegate webView:m_webView dragImage:dragNSImage at:at offset:NSZeroSize event:event pasteboard:pasteboard source:sourceHTMLView slideBack:YES forView:topHTMLView];
120 [topHTMLView dragImage:dragNSImage at:at offset:NSZeroSize event:event pasteboard:pasteboard sourc
[all...]
/external/webkit/Tools/DumpRenderTree/mac/
H A DDumpRenderTreeDraggingInfo.h39 - (id)initWithImage:(NSImage *)image offset:(NSSize)offset pasteboard:(NSPasteboard *)pasteboard source:(id)source;
H A DDumpRenderTreePasteboard.m50 // Return a local pasteboard so we don't disturb the real pasteboards when running tests.
58 LocalPasteboard *pasteboard = [localPasteboards objectForKey:name];
59 if (pasteboard)
60 return pasteboard;
61 pasteboard = [[LocalPasteboard alloc] init];
62 [localPasteboards setObject:pasteboard forKey:name];
63 [pasteboard release];
64 return pasteboard;
135 if (newOwner && [newOwner respondsToSelector:@selector(pasteboard:provideDataForType:)])
136 [newOwner pasteboard
[all...]
/external/webkit/Source/WebKit2/WebProcess/WebCoreSupport/mac/
H A DWebDragClientMac.mm55 // Internal AppKit class. If the pasteboard handling was in the same process
63 - (void)setTypes:(NSArray *)types onPasteboard:(NSPasteboard *)pasteboard;
123 void WebDragClient::declareAndWriteDragImage(NSPasteboard *pasteboard, DOMElement *element, NSURL *URL, NSString *title, WebCore::Frame*)
126 ASSERT(pasteboard && pasteboard == [NSPasteboard pasteboardWithName:NSDragPboard]);
155 [pasteboard declareTypes:types.get() owner:pasteboardOwner.leakRef()];
157 [pasteboard setPropertyList:[NSArray arrayWithObject:extension] forType:NSFilesPromisePboardType];
159 [filePromiseOwner.get() setTypes:[pasteboard propertyListForType:NSFilesPromisePboardType] onPasteboard:pasteboard];
161 [URL writeToPasteboard:pasteboard];
[all...]
/external/webkit/Source/WebCore/platform/brew/
H A DPasteboardBrew.cpp41 static Pasteboard* pasteboard = new Pasteboard; local
42 return pasteboard;
/external/webkit/Source/WebCore/platform/efl/
H A DPasteboardEfl.cpp40 static Pasteboard* pasteboard = new Pasteboard(); local
41 return pasteboard;
/external/webkit/Source/WebKit/mac/Misc/
H A DWebNSViewExtras.h65 pasteboard:(NSPasteboard *)pasteboard
/external/chromium/chrome/browser/ui/cocoa/bookmarks/
H A Dbookmark_drag_source.h21 // contentsView and with the given dropData and pboard). Fill the pasteboard
27 pasteboard:(NSPasteboard*)pboard
/external/webkit/Source/WebCore/editing/mac/
H A DEditorMac.mm64 void Editor::pasteWithPasteboard(Pasteboard* pasteboard, bool allowPlainText)
71 RefPtr<DocumentFragment> fragment = pasteboard->documentFragment(m_frame, range, allowPlainText, choosePlainText);
73 pasteAsFragment(fragment, canSmartReplaceWithPasteboard(pasteboard), false);
79 RefPtr<DocumentFragment> fragment = pasteboard->documentFragment(m_frame, range, allowPlainText, choosePlainText);
81 pasteAsFragment(fragment, canSmartReplaceWithPasteboard(pasteboard), false);
84 RefPtr<DocumentFragment>fragment = pasteboard->documentFragment(m_frame, range, allowPlainText, choosePlainText);
86 pasteAsFragment(fragment, canSmartReplaceWithPasteboard(pasteboard), false);
221 Pasteboard pasteboard([NSPasteboard pasteboardWithName:pasteboardName]);
223 pasteWithPasteboard(&pasteboard, true);
225 pasteAsPlainTextWithPasteboard(&pasteboard);
[all...]
/external/webkit/Source/WebCore/platform/mac/
H A DClipboardMac.h49 static PassRefPtr<ClipboardMac> create(ClipboardType clipboardType, NSPasteboard *pasteboard, ClipboardAccessPolicy policy, Frame* frame) argument
51 return adoptRef(new ClipboardMac(clipboardType, pasteboard, policy, frame));
80 NSPasteboard *pasteboard() { return m_pasteboard.get(); } function in class:WebCore::ClipboardMac
H A DDragDataMac.mm101 Pasteboard pasteboard(m_pasteboard.get());
102 return pasteboard.plainText(frame);
147 Pasteboard pasteboard(m_pasteboard.get());
148 return pasteboard.asURL(frame);
153 Pasteboard pasteboard(m_pasteboard.get());
155 return pasteboard.documentFragment(frame, range, allowPlainText, chosePlainText);
H A DPasteboardMac.mm66 NSString *WebArchivePboardType = @"Apple Web Archive pasteboard type";
67 NSString *WebSmartPastePboardType = @"NeXT smart paste pasteboard type";
80 } else { // Don't write RTFD to the pasteboard when the copied attributed string has no attachments.
117 static Pasteboard* pasteboard = new Pasteboard([NSPasteboard generalPasteboard]);
118 return pasteboard;
131 void Pasteboard::writeSelection(NSPasteboard* pasteboard, NSArray* pasteboardTypes, Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame)
134 Pasteboard::generalPasteboard(); // Initializes pasteboard types.
162 // 4930197: Mail overrides [WebHTMLView pasteboardTypesForSelection] in order to add another type to the pasteboard
168 // Don't write RTFD to the pasteboard when the copied attributed string has no attachments.
175 [pasteboard declareType
[all...]
H A DClipboardMac.mm52 return ClipboardMac::create(DragAndDrop, dragData->pasteboard(), policy, frame);
55 ClipboardMac::ClipboardMac(ClipboardType clipboardType, NSPasteboard *pasteboard, ClipboardAccessPolicy policy, Frame *frame)
57 , m_pasteboard(pasteboard)
113 static void addHTMLClipboardTypesForCocoaType(HashSet<String>& resultTypes, NSString *cocoaType, NSPasteboard *pasteboard)
128 NSArray *fileList = [pasteboard propertyListForType:NSFilenamesPboardType];
167 static NSArray *absoluteURLsFromPasteboardFilenames(NSPasteboard* pasteboard, bool onlyFirstURL = false)
169 NSArray *fileList = [pasteboard propertyListForType:NSFilenamesPboardType];
171 // FIXME: Why does this code need to guard against bad values on the pasteboard?
191 static NSArray *absoluteURLsFromPasteboard(NSPasteboard* pasteboard, bool onlyFirstURL = false)
193 // NOTE: We must always check [availableTypes containsObject:] before accessing pasteboard dat
[all...]
/external/chromium/chrome/browser/ui/cocoa/tab_contents/
H A Dweb_contents_drag_source.h24 // Our pasteboard.
32 // contentsView and with the given dropData and pboard). Fill the pasteboard
35 pasteboard:(NSPasteboard*)pboard
41 // Put the data being dragged onto the pasteboard. Implemented by the
52 // End the drag and clear the pasteboard; hook up to
H A Dweb_drag_source.h31 // Our pasteboard.
45 // contentsView and with the given dropData and pboard). Fill the pasteboard
51 pasteboard:(NSPasteboard*)pboard
57 // Call when asked to do a lazy write to the pasteboard; hook up to
58 // -pasteboard:provideDataForType: (on the contentsView).
66 // End the drag and clear the pasteboard; hook up to
/external/webkit/Source/WebCore/platform/wx/
H A DPasteboardWx.cpp49 static Pasteboard* pasteboard = new Pasteboard(); local
50 return pasteboard;
/external/webkit/Source/WebCore/platform/qt/
H A DPasteboardQt.cpp54 static Pasteboard* pasteboard = 0; local
55 if (!pasteboard)
56 pasteboard = new Pasteboard();
57 return pasteboard;
/external/webkit/Source/WebCore/platform/
H A DPasteboard.h90 static void writeURL(NSPasteboard* pasteboard, NSArray* types, const KURL& url, const String& titleStr, Frame* frame);
91 static void writePlainText(NSPasteboard* pasteboard, const String& text);

Completed in 314 milliseconds

123