Home
last modified time | relevance | path

Searched refs:pasteboard (Results 1 – 25 of 107) sorted by relevance

12345

/external/webkit/Source/WebKit2/WebProcess/WebCoreSupport/mac/
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 *…
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] onPaste…
161 [URL writeToPasteboard:pasteboard];
163 … [pasteboard setString:[URL _web_originalDataAsString] forType:PasteboardTypes::WebURLPboardType];
165 [pasteboard setString:title forType:PasteboardTypes::WebURLNamePboardType];
[all …]
/external/webkit/Source/WebKit/mac/WebCoreSupport/
DWebDragClient.mm86 …mPoint: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 …webView dragImage:dragNSImage at:at offset:NSZeroSize event:event pasteboard:pasteboard source:sou…
118 …webView dragImage:dragNSImage at:at offset:NSZeroSize event:event pasteboard:pasteboard source:sou…
120 …TMLView dragImage:dragNSImage at:at offset:NSZeroSize event:event pasteboard:pasteboard source:sou…
123 void WebDragClient::declareAndWriteDragImage(NSPasteboard* pasteboard, DOMElement* element, NSURL* …
125 ASSERT(pasteboard);
130 …[pasteboard _web_declareAndWriteDragImageForElement:element URL:URL title:title archive:archive so…
/external/chromium/chrome/browser/ui/cocoa/download/
Ddownload_util_mac_unittest.mm28 NSPasteboard* const pasteboard() { return pasteboard_; }
34 // Ensure adding files to the pasteboard methods works as expected.
36 // Get a download test file for addition to the pasteboard.
42 // Add a test file to the pasteboard via the download_util method.
43 download_util::AddFileToPasteboard(pasteboard(), testPath);
47 NSString* available = [pasteboard() availableTypeFromArray:types];
51 NSArray* files = [pasteboard() propertyListForType:NSFilenamesPboardType];
Ddownload_util_mac.mm18 void AddFileToPasteboard(NSPasteboard* pasteboard, const FilePath& path) {
19 // Write information about the file being dragged to the pasteboard.
22 [pasteboard declareTypes:[NSArray arrayWithObject:NSFilenamesPboardType]
24 [pasteboard setPropertyList:fileList forType:NSFilenamesPboardType];
43 NSPasteboard* pasteboard = [NSPasteboard pasteboardWithName:NSDragPboard];
44 AddFileToPasteboard(pasteboard, download->full_path());
65 pasteboard:pasteboard
/external/webkit/Source/WebCore/platform/mac/
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 attachment…
117 static Pasteboard* pasteboard = new Pasteboard([NSPasteboard generalPasteboard]);
118 return pasteboard;
131 void Pasteboard::writeSelection(NSPasteboard* pasteboard, NSArray* pasteboardTypes, Range* selected…
134 Pasteboard::generalPasteboard(); // Initializes pasteboard types.
162 … 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 declareTypes:types owner:nil];
[all …]
DClipboardMac.h49 …static PassRefPtr<ClipboardMac> create(ClipboardType clipboardType, NSPasteboard *pasteboard, Clip… in create() argument
51 return adoptRef(new ClipboardMac(clipboardType, pasteboard, policy, frame)); in create()
80 NSPasteboard *pasteboard() { return m_pasteboard.get(); } in pasteboard() function
DClipboardMac.mm52 return ClipboardMac::create(DragAndDrop, dragData->pasteboard(), policy, frame);
55 ClipboardMac::ClipboardMac(ClipboardType clipboardType, NSPasteboard *pasteboard, ClipboardAccessPo…
57 , m_pasteboard(pasteboard)
113 …boardTypesForCocoaType(HashSet<String>& resultTypes, NSString *cocoaType, NSPasteboard *pasteboard)
128 NSArray *fileList = [pasteboard propertyListForType:NSFilenamesPboardType];
167 static NSArray *absoluteURLsFromPasteboardFilenames(NSPasteboard* pasteboard, bool onlyFirstURL = f…
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 data
[all …]
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);
/external/webkit/Source/WebKit/mac/History/
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];
DWebURLsWithTitles.h43 …void)writeURLs:(NSArray *)URLs andTitles:(NSArray *)titles toPasteboard:(NSPasteboard *)pasteboard;
48 + (NSArray *)URLsFromPasteboard:(NSPasteboard *)pasteboard;
53 + (NSArray *)titlesFromPasteboard:(NSPasteboard *)pasteboard;
/external/webkit/Tools/DumpRenderTree/mac/
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:self provideDataForType:setType];
DDumpRenderTreeDraggingInfo.h39 - (id)initWithImage:(NSImage *)image offset:(NSSize)offset pasteboard:(NSPasteboard *)pasteboard so…
/external/webkit/Source/WebCore/editing/mac/
DEditorMac.mm64 void Editor::pasteWithPasteboard(Pasteboard* pasteboard, bool allowPlainText)
71 …RefPtr<DocumentFragment> fragment = pasteboard->documentFragment(m_frame, range, allowPlainText, c…
73 pasteAsFragment(fragment, canSmartReplaceWithPasteboard(pasteboard), false);
79 …RefPtr<DocumentFragment> fragment = pasteboard->documentFragment(m_frame, range, allowPlainText, c…
81 pasteAsFragment(fragment, canSmartReplaceWithPasteboard(pasteboard), false);
84 …RefPtr<DocumentFragment>fragment = pasteboard->documentFragment(m_frame, range, allowPlainText, ch…
86 pasteAsFragment(fragment, canSmartReplaceWithPasteboard(pasteboard), false);
221 Pasteboard pasteboard([NSPasteboard pasteboardWithName:pasteboardName]);
223 pasteWithPasteboard(&pasteboard, true);
225 pasteAsPlainTextWithPasteboard(&pasteboard);
/external/webkit/Source/WebCore/platform/qt/
DPasteboardQt.cpp54 static Pasteboard* pasteboard = 0; in generalPasteboard() local
55 if (!pasteboard) in generalPasteboard()
56 pasteboard = new Pasteboard(); in generalPasteboard()
57 return pasteboard; in generalPasteboard()
/external/webkit/Source/WebKit/mac/WebView/
DWebEditingDelegatePrivate.h35 - (void)webView:(WebView *)webView didWriteSelectionToPasteboard:(NSPasteboard *)pasteboard;
36 - (void)webView:(WebView *)webView didSetSelectionTypesForPasteboard:(NSPasteboard *)pasteboard;
DWebHTMLViewPrivate.h76 - (void)_writeSelectionToPasteboard:(NSPasteboard *)pasteboard;
116 - (DOMDocumentFragment *)_documentFragmentFromPasteboard:(NSPasteboard *)pasteboard forType:(NSStri…
142 - (BOOL)_canSmartReplaceWithPasteboard:(NSPasteboard *)pasteboard;
DWebView.h161 + (NSURL *)URLFromPasteboard:(NSPasteboard *)pasteboard;
171 + (NSString *)URLTitleFromPasteboard:(NSPasteboard *)pasteboard;
574 - (void)writeSelectionWithPasteboardTypes:(NSArray *)types toPasteboard:(NSPasteboard *)pasteboard;
590 …SDictionary *)element withPasteboardTypes:(NSArray *)types toPasteboard:(NSPasteboard *)pasteboard;
DWebViewInternal.h140 …SDictionary *)element withPasteboardTypes:(NSArray *)types toPasteboard:(NSPasteboard *)pasteboard;
141 …SDictionary *)element withPasteboardTypes:(NSArray *)types toPasteboard:(NSPasteboard *)pasteboard;
184 - (void)_setInsertionPasteboard:(NSPasteboard *)pasteboard;
/external/webkit/Source/WebKit/win/Interfaces/
DIWebView.idl194 @abstract Returns a URL from a pasteboard
195 @param pasteboard The pasteboard with a URL
196 @result A URL if the pasteboard has one. Nil if it does not.
197 …his method differs than NSURL's URLFromPasteboard method in that it tries multiple pasteboard types
198 including NSURLPboardType to find a URL on the pasteboard.
199 + (NSURL *)URLFromPasteboard:(NSPasteboard *)pasteboard;
201 HRESULT URLFromPasteboard([in] IDataObject* pasteboard, [out, retval] BSTR* url);
205 @abstract Returns a URL title from a pasteboard
206 @param pasteboard The pasteboard with a URL title
207 @result A URL title if the pasteboard has one. Nil if it does not.
[all …]
/external/webkit/Source/WebCore/platform/efl/
DPasteboardEfl.cpp40 static Pasteboard* pasteboard = new Pasteboard(); in generalPasteboard() local
41 return pasteboard; in generalPasteboard()
/external/webkit/Source/WebCore/platform/brew/
DPasteboardBrew.cpp41 static Pasteboard* pasteboard = new Pasteboard; in generalPasteboard() local
42 return pasteboard; in generalPasteboard()
/external/webkit/Source/WebKit/mac/Misc/
DWebNSViewExtras.h65 pasteboard:(NSPasteboard *)pasteboard
/external/webkit/Source/WebCore/platform/wx/
DPasteboardWx.cpp49 static Pasteboard* pasteboard = new Pasteboard(); in generalPasteboard() local
50 return pasteboard; in generalPasteboard()
/external/chromium/chrome/browser/ui/cocoa/bookmarks/
Dbookmark_drag_source.mm17 pasteboard:(NSPasteboard*)pboard
20 pasteboard:pboard
/external/webkit/Source/WebCore/platform/
DPasteboard.h90 …static void writeURL(NSPasteboard* pasteboard, NSArray* types, const KURL& url, const String& titl…
91 static void writePlainText(NSPasteboard* pasteboard, const String& text);

12345