Home | History | Annotate | Download | only in mac

Lines Matching refs:pasteboard

38 #import "Pasteboard.h"
49 ClipboardMac::ClipboardMac(bool forDragging, NSPasteboard *pasteboard, ClipboardAccessPolicy policy, Frame *frame)
51 , m_pasteboard(pasteboard)
107 static void addHTMLClipboardTypesForCocoaType(HashSet<String>& resultTypes, NSString *cocoaType, NSPasteboard *pasteboard)
122 NSArray *fileList = [pasteboard propertyListForType:NSFilenamesPboardType];
162 static NSArray *absoluteURLsFromPasteboardFilenames(NSPasteboard* pasteboard, bool onlyFirstURL = false)
164 NSArray *fileList = [pasteboard propertyListForType:NSFilenamesPboardType];
166 // FIXME: Why does this code need to guard against bad values on the pasteboard?
186 static NSArray *absoluteURLsFromPasteboard(NSPasteboard* pasteboard, bool onlyFirstURL = false)
188 // NOTE: We must always check [availableTypes containsObject:] before accessing pasteboard data
190 NSArray *availableTypes = [pasteboard types];
194 if (NSArray* absoluteURLs = absoluteURLsFromPasteboardFilenames(pasteboard, onlyFirstURL))
200 if (NSURL *url = [NSURL URLFromPasteboard:pasteboard])
204 // No file paths on the pasteboard, return nil
217 // Grab the value off the pasteboard corresponding to the cocoaType
289 if ([pbType isEqualToString:@"NeXT plain ascii pasteboard type"])
368 Pasteboard::writeSelection(m_pasteboard.get(), range, frame->editor()->smartInsertDeleteEnabled() && frame->selectionGranularity() == WordGranularity, frame);
373 Pasteboard::writePlainText(m_pasteboard.get(), text);
380 Pasteboard::writeURL(m_pasteboard.get(), nil, url, title, frame);