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

12

/external/webkit/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/webkit/WebKit/mac/WebCoreSupport/
H A DWebPasteboardHelper.mm40 String WebPasteboardHelper::urlFromPasteboard(const NSPasteboard* pasteboard, String* title) const
42 NSURL *URL = [pasteboard _web_bestURL];
44 if (NSString *URLTitleString = [pasteboard stringForType:WebURLNamePboardType])
51 String WebPasteboardHelper::plainTextFromPasteboard(const NSPasteboard *pasteboard) const
53 NSArray *types = [pasteboard types];
56 return [[pasteboard stringForType:NSStringPboardType] precomposedStringWithCanonicalMapping];
62 attributedString = [[NSAttributedString alloc] initWithRTFD:[pasteboard dataForType:NSRTFDPboardType] documentAttributes:nil];
64 attributedString = [[NSAttributedString alloc] initWithRTF:[pasteboard dataForType:NSRTFPboardType] documentAttributes:nil];
72 string = [[pasteboard propertyListForType:NSFilenamesPboardType] componentsJoinedByString:@"\n"];
79 if ((URL = [NSURL URLFromPasteboard:pasteboard])) {
[all...]
H A DWebDragClient.mm82 [[m_webView _UIDelegateForwarder] webView:m_webView willPerformDragSourceAction:(WebDragSourceAction)action fromPoint:mouseDownPoint withPasteboard:static_cast<WebCore::ClipboardMac*>(clipboard)->pasteboard()];
99 NSPasteboard *pasteboard = static_cast<ClipboardMac*>(clipboard)->pasteboard();
105 SEL selector = @selector(webView:dragImage:at:offset:event:pasteboard:source:slideBack:forView:);
109 [delegate webView:m_webView dragImage:dragNSImage at:at offset:NSZeroSize event:event pasteboard:pasteboard source:sourceHTMLView slideBack:YES forView:topHTMLView];
114 [delegate webView:m_webView dragImage:dragNSImage at:at offset:NSZeroSize event:event pasteboard:pasteboard source:sourceHTMLView slideBack:YES forView:topHTMLView];
116 [topHTMLView dragImage:dragNSImage at:at offset:NSZeroSize event:event pasteboard:pasteboard sourc
[all...]
/external/webkit/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.h71 - (void)_writeSelectionToPasteboard:(NSPasteboard *)pasteboard;
113 - (DOMDocumentFragment *)_documentFragmentFromPasteboard:(NSPasteboard *)pasteboard forType:(NSString *)pboardType inContext:(DOMRange *)context subresources:(NSArray **)subresources;
128 - (BOOL)_canSmartReplaceWithPasteboard:(NSPasteboard *)pasteboard;
H A DWebHTMLViewInternal.h53 - (DOMDocumentFragment *)_documentFragmentFromPasteboard:(NSPasteboard *)pasteboard;
H A DWebDocumentPrivate.h46 - (void)writeSelectionWithPasteboardTypes:(NSArray *)types toPasteboard:(NSPasteboard *)pasteboard;
H A DWebView.h155 @abstract Returns a URL from a pasteboard
156 @param pasteboard The pasteboard with a URL
157 @result A URL if the pasteboard has one. Nil if it does not.
158 @discussion This method differs than NSURL's URLFromPasteboard method in that it tries multiple pasteboard types
159 including NSURLPboardType to find a URL on the pasteboard.
161 + (NSURL *)URLFromPasteboard:(NSPasteboard *)pasteboard;
165 @abstract Returns a URL title from a pasteboard
166 @param pasteboard The pasteboard wit
[all...]
/external/webkit/WebKitTools/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...]
H A DDumpRenderTreeDraggingInfo.mm38 - (id)initWithImage:(NSImage *)anImage offset:(NSSize)o pasteboard:(NSPasteboard *)pboard source:(id)source
H A DUIDelegate.mm98 - (void)webView:(WebView *)sender dragImage:(NSImage *)anImage at:(NSPoint)viewLocation offset:(NSSize)initialOffset event:(NSEvent *)event pasteboard:(NSPasteboard *)pboard source:(id)sourceObj slideBack:(BOOL)slideFlag forView:(NSView *)view
101 draggingInfo = [[DumpRenderTreeDraggingInfo alloc] initWithImage:anImage offset:initialOffset pasteboard:pboard source:sourceObj];
/external/webkit/WebKit/mac/Misc/
H A DWebNSViewExtras.h65 pasteboard:(NSPasteboard *)pasteboard
H A DWebNSViewExtras.m157 pasteboard:(NSPasteboard *)pasteboard
201 [self dragImage:dragImage at:origin offset:NSZeroSize event:event pasteboard:pasteboard source:source slideBack:YES];
/external/webkit/WebCore/platform/mac/
H A DClipboardMac.h48 static PassRefPtr<ClipboardMac> create(bool forDragging, NSPasteboard *pasteboard, ClipboardAccessPolicy policy, Frame* frame) argument
50 return adoptRef(new ClipboardMac(forDragging, pasteboard, policy, frame));
79 NSPasteboard *pasteboard() { return m_pasteboard.get(); } function in class:WebCore::ClipboardMac
H A DPasteboardMac.mm58 NSString *WebArchivePboardType = @"Apple Web Archive pasteboard type";
59 NSString *WebSmartPastePboardType = @"NeXT smart paste pasteboard type";
72 } else { // Don't write RTFD to the pasteboard when the copied attributed string has no attachments.
109 static Pasteboard* pasteboard = new Pasteboard([NSPasteboard generalPasteboard]);
110 return pasteboard;
136 void Pasteboard::writeSelection(NSPasteboard* pasteboard, Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame)
139 Pasteboard::generalPasteboard(); // Initializes pasteboard types.
144 // 4930197: Mail overrides [WebHTMLView pasteboardTypesForSelection] in order to add another type to the pasteboard
150 // Don't write RTFD to the pasteboard when the copied attributed string has no attachments.
157 [pasteboard declareType
[all...]
H A DDragDataMac.mm81 NSPasteboard *pasteboard = [m_platformDragData draggingPasteboard];
82 NSArray *types = [pasteboard types];
88 || [NSURL URLFromPasteboard:pasteboard];
110 NSPasteboard *pasteboard = [m_platformDragData draggingPasteboard];
111 NSMutableSet *types = [NSMutableSet setWithArray:[pasteboard types]];
H A DClipboardMac.mm49 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 type
[all...]
/external/webkit/WebCore/platform/
H A DPasteboard.h83 static void writeSelection(NSPasteboard* pasteboard, Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame);
84 static void writeURL(NSPasteboard* pasteboard, NSArray* types, const KURL& url, const String& titleStr, Frame* frame);
85 static void writePlainText(NSPasteboard* pasteboard, const String& text);
/external/webkit/WebCore/platform/wx/
H A DPasteboardWx.cpp49 static Pasteboard* pasteboard = new Pasteboard(); local
50 return pasteboard;
/external/webkit/WebCore/platform/qt/
H A DPasteboardQt.cpp55 static Pasteboard* pasteboard = 0; local
56 if (!pasteboard)
57 pasteboard = new Pasteboard();
58 return pasteboard;
/external/webkit/WebCore/platform/haiku/
H A DPasteboardHaiku.cpp50 static Pasteboard* pasteboard = new Pasteboard(); local
51 return pasteboard;
/external/webkit/WebKit/mac/DefaultDelegates/
H A DWebDefaultEditingDelegate.m105 - (void)webView:(WebView *)webView didWriteSelectionToPasteboard:(NSPasteboard *)pasteboard
109 - (void)webView:(WebView *)webView didSetSelectionTypesForPasteboard:(NSPasteboard *)pasteboard
/external/webkit/WebCore/platform/chromium/
H A DPasteboardChromium.cpp57 static Pasteboard* pasteboard = new Pasteboard; local
58 return pasteboard;

Completed in 188 milliseconds

12