• Stuart Langley's avatar
    Onion Soup WebClipboard - move clipboard.mojom to WebKit/common/clipboard. · fdd23bac
    Stuart Langley authored
    This continues the work to onion soup WebClipboard.
    
    - The mojo definition for ClipboardHost is moved from content/common to
      WebKit/common/clipboard.
    - The implementation of WebClipboard, content/renderer/webclipboard_impl.* is
      moved to WebKit/Source/platform/expored/WebClipboardImpl.*.
    - Fixed the implementation of WebClipboardImpl to use the blink types (
      WTF::String etc) directly rather than WebString.
    - Plagiarized parts of DropDataBuilder and URLToImageMarkup as we need to keep
      implementations in content for MockWebClipboardImpl.
    - Removed the interface binding from renderer_blink_platform_impl to
      WebClipboardImpl and render_frame_impl (for MACOSX only).
    - Instantiate WebClipboardImpl in Platform.cpp (temporary until we can remove
      Clipboard() from platform.)
    
    
    We cannot remove Platform::Clipboard yet because it is used by
    pepper_webplugin_impl, will need see if we can move pepper to use mojo instead.
    
    Next steps;
    
    - Remove MockWebClipboardImpl and mock out at the mojo level instead of
      Platform.
    - Provide typemap for blink::mojo::ClipboardBuffer to ui::Clipboard for browser.
    - Remove Clipboard() from Platform by fixing pepper.
    - Delete public/platform/WebClipboard definition.
    
    Note: Gerrit is not showing which files are renames + modifications, the list is
    
    content/renderer/webclipboard_impl* : Source/platform/exported/WebClipboardImpl*
    content/common/clipboard.mojom : WebKit/common/clipboard/clipboard.mojom
    
    Bug: 775830
    Change-Id: Ife7121886fe133cc7577cd1ce8f1d90262d97102
    Reviewed-on: https://chromium-review.googlesource.com/809824
    Commit-Queue: Stuart Langley <slangley@chromium.org>
    Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
    Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
    Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#523640}
    fdd23bac
mock_webclipboard_impl.h 2.68 KB