Skip to content
  • enrica@apple.com's avatar
    Upstream changes to Pasteboard implementation for iOS. · 38848efa
    enrica@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=121818
    
    Reviewed by Benjamin Poulain.
    
    Source/WebCore: 
    
    * WebCore.exp.in:
    * editing/Editor.cpp:
    (WebCore::Editor::dispatchCPPEvent):
    * editing/ios/EditorIOS.mm:
    (WebCore::Editor::WebContentReader::addFragment):
    (WebCore::Editor::WebContentReader::readWebArchive):
    (WebCore::Editor::WebContentReader::readFilenames):
    (WebCore::Editor::WebContentReader::readHTML):
    (WebCore::Editor::WebContentReader::readRTFD):
    (WebCore::Editor::WebContentReader::readRTF):
    (WebCore::uniqueURLWithRelativePart):
    (WebCore::Editor::WebContentReader::readImage):
    (WebCore::Editor::WebContentReader::readURL):
    (WebCore::Editor::WebContentReader::readPlainText):
    (WebCore::Editor::webContentFromPasteboard):
    (WebCore::Editor::pasteWithPasteboard):
    (WebCore::Editor::createFragmentAndAddResources):
    (WebCore::Editor::createFragmentForImageResourceAndAddResource):
    * platform/Pasteboard.h:
    * platform/PasteboardStrategy.h:
    * platform/PlatformPasteboard.h:
    * platform/ios/PasteboardIOS.mm:
    (WebCore::PasteboardWebContent::PasteboardWebContent):
    (WebCore::PasteboardWebContent::~PasteboardWebContent):
    (WebCore::PasteboardImage::PasteboardImage):
    (WebCore::PasteboardImage::~PasteboardImage):
    (WebCore::Pasteboard::Pasteboard):
    (WebCore::Pasteboard::clear):
    (WebCore::Pasteboard::readString):
    (WebCore::Pasteboard::writeString):
    (WebCore::Pasteboard::types):
    * platform/ios/PlatformPasteboardIOS.mm:
    (WebCore::PlatformPasteboard::changeCount):
    (WebCore::PlatformPasteboard::write):
    (WebCore::PlatformPasteboard::count):
    (WebCore::PlatformPasteboard::readBuffer):
    (WebCore::PlatformPasteboard::readString):
    (WebCore::PlatformPasteboard::readURL):
    * platform/mac/PasteboardMac.mm:
    (WebCore::PasteboardWebContent::PasteboardWebContent):
    (WebCore::PasteboardWebContent::~PasteboardWebContent):
    (WebCore::PasteboardImage::PasteboardImage):
    (WebCore::PasteboardImage::~PasteboardImage):
    * platform/mac/PlatformPasteboardMac.mm:
    
    Source/WebKit/mac: 
    
    * WebCoreSupport/WebPlatformStrategies.h:
    * WebCoreSupport/WebPlatformStrategies.mm:
    (WebPlatformStrategies::writeToPasteboard):
    (WebPlatformStrategies::getPasteboardItemsCount):
    (WebPlatformStrategies::readBufferFromPasteboard):
    (WebPlatformStrategies::readURLFromPasteboard):
    (WebPlatformStrategies::readStringFromPasteboard):
    (WebPlatformStrategies::changeCount):
    
    Source/WebKit2: 
    
    * Shared/WebCoreArgumentCoders.cpp:
    (CoreIPC::decodeSharedBuffer):
    * Shared/WebCoreArgumentCoders.h:
    * UIProcess/WebContext.h:
    * UIProcess/WebContext.messages.in:
    * UIProcess/mac/WebContextMac.mm:
    (WebKit::WebContext::writeWebContentToPasteboard):
    (WebKit::WebContext::writeImageToPasteboard):
    (WebKit::WebContext::writeStringToPasteboard):
    (WebKit::WebContext::readStringFromPasteboard):
    (WebKit::WebContext::readURLFromPasteboard):
    (WebKit::WebContext::readBufferFromPasteboard):
    (WebKit::WebContext::getPasteboardItemsCount):
    * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
    (WebKit::WebPlatformStrategies::writeToPasteboard):
    (WebKit::WebPlatformStrategies::getPasteboardItemsCount):
    (WebKit::WebPlatformStrategies::readBufferFromPasteboard):
    (WebKit::WebPlatformStrategies::readURLFromPasteboard):
    (WebKit::WebPlatformStrategies::readStringFromPasteboard):
    (WebKit::WebPlatformStrategies::changeCount):
    * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156588 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    38848efa