Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
WebKit2: implement platform strategy to access Pasteboard in the UI p…
…rocess. https://bugs.webkit.org/show_bug.cgi?id=79253 <rdar://problem/9971876> Reviewed by Alexey Proskuryakov. Source/WebCore: No new tests. No behavior change. * platform/mac/PlatformPasteboardMac.mm: (WebCore::PlatformPasteboard::bufferForType): There is no need to create a SharedBuffer object if there is no NSData in the pasteboard for the given pasteboard type. Source/WebKit2: * UIProcess/WebContext.h: * UIProcess/WebContext.messages.in: Added messages to access NSPasteboard in the UI process. * UIProcess/mac/WebContextMac.mm: Added methods corresponding to the new messages. (WebKit::WebContext::getPasteboardTypes): (WebKit::WebContext::getPasteboardPathnamesForType): (WebKit::WebContext::getPasteboardStringForType): (WebKit::WebContext::getPasteboardBufferForType): (WebKit::WebContext::pasteboardCopy): (WebKit::WebContext::getPasteboardChangeCount): (WebKit::WebContext::getPasteboardUniqueName): (WebKit::WebContext::getPasteboardColor): (WebKit::WebContext::setPasteboardTypes): (WebKit::WebContext::setPasteboardPathnamesForType): (WebKit::WebContext::setPasteboardStringForType): (WebKit::WebContext::setPasteboardBufferForType): * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: New implementation of the PasteboardStrategy using message exchange with the UI process. (WebKit::WebPlatformStrategies::getTypes): (WebKit::WebPlatformStrategies::bufferForType): (WebKit::WebPlatformStrategies::getPathnamesForType): (WebKit::WebPlatformStrategies::stringForType): (WebKit::WebPlatformStrategies::copy): (WebKit::WebPlatformStrategies::changeCount): (WebKit::WebPlatformStrategies::uniqueName): (WebKit::WebPlatformStrategies::color): (WebKit::WebPlatformStrategies::setTypes): (WebKit::WebPlatformStrategies::setBufferForType): (WebKit::WebPlatformStrategies::setPathnamesForType): (WebKit::WebPlatformStrategies::setStringForType): Canonical link: https://commits.webkit.org/96789@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@109022 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Enrica Casucci
committed
Feb 27, 2012
1 parent
2481c68
commit 7940383
Showing
7 changed files
with
204 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters