Initial version of Async Clipboard API

Desktop / Chromium - garykac [chromium.org] - 7 July 2017 20:53 EDT

Includes basic support for plaintext read/write.

See https://w3c.github.io/clipboard-apis/

BUG=677564

Review-Url: https://codereview.chromium.org/2695593006 Cr-Commit-Position: refs/heads/master@{#485121}

ac319a7 Initial version of Async Clipboard API
.../WebKit/LayoutTests/W3CImportExpectations | 2 +
.../wpt/clipboard-apis/async-interfaces.https.html | 34 ++++++
.../async-navigator-clipboard-basics.https.html | 69 +++++++++++++
...sync-write-dttext-read-dttext-manual.https.html | 30 ++++++
.../async-write-dttext-read-text-manual.https.html | 27 +++++
.../async-write-text-read-dttext-manual.https.html | 27 +++++
.../async-write-text-read-text-manual.https.html | 24 +++++
.../external/wpt/interfaces/clipboard.idl | 13 +++
.../global-interface-listing-expected.txt | 7 ++
.../global-interface-listing-expected.txt | 7 ++
.../global-interface-listing-expected.txt | 8 ++
.../global-interface-listing-expected.txt | 8 ++
third_party/WebKit/Source/core/clipboard/BUILD.gn | 4 +
.../WebKit/Source/core/clipboard/Clipboard.cpp | 45 ++++++++
.../WebKit/Source/core/clipboard/Clipboard.h | 42 ++++++++
.../WebKit/Source/core/clipboard/Clipboard.idl | 14 +++
.../Source/core/clipboard/ClipboardPromise.cpp | 115 +++++++++++++++++++++
.../Source/core/clipboard/ClipboardPromise.h | 52 ++++++++++
third_party/WebKit/Source/core/core_idl_files.gni | 2 +
.../Source/core/events/EventTargetFactory.json5 | 1 +
third_party/WebKit/Source/core/frame/BUILD.gn | 2 +
.../Source/core/frame/NavigatorClipboard.cpp | 42 ++++++++
.../WebKit/Source/core/frame/NavigatorClipboard.h | 38 +++++++
.../Source/core/frame/NavigatorClipboard.idl | 11 ++
.../Source/platform/RuntimeEnabledFeatures.json5 | 4 +
25 files changed, 628 insertions(+)

Upstream: git.chromium.org


  • Share