Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Issue 2695593006: Initial stub version of Async Clipboard API (Closed)

Created:
3 years, 10 months ago by garykac
Modified:
3 years, 5 months ago
Reviewers:
dcheng1, foolip, dcheng
CC:
chromium-reviews, blink-reviews, kinuko+watch, dcheng
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Initial version of Async Clipboard API 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} Committed: https://chromium.googlesource.com/chromium/src/+/ac319a7ed300e2d8b7de3e6dcdfce2acf3363122

Patch Set 1 #

Total comments: 8

Patch Set 2 : WTF_MAKE_NONCOPYABLE #

Patch Set 3 : Add WPTs; Update naming conventions; Review comments #

Total comments: 40

Patch Set 4 : Address review comments; improve tests #

Total comments: 10

Patch Set 5 : Address review comments #

Total comments: 7

Patch Set 6 : Fix names (review comments) #

Patch Set 7 : Sync/merge #

Patch Set 8 : Update Blink layout tests #

Patch Set 9 : Expected layout tests results for mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+628 lines, -0 lines) Patch
M third_party/WebKit/LayoutTests/W3CImportExpectations View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/clipboard-apis/async-interfaces.https.html View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/clipboard-apis/async-navigator-clipboard-basics.https.html View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/clipboard-apis/async-write-dttext-read-dttext-manual.https.html View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/clipboard-apis/async-write-dttext-read-text-manual.https.html View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/clipboard-apis/async-write-text-read-dttext-manual.https.html View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/clipboard-apis/async-write-text-read-text-manual.https.html View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/interfaces/clipboard.idl View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/clipboard/BUILD.gn View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/clipboard/Clipboard.h View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/clipboard/Clipboard.cpp View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/clipboard/Clipboard.idl View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/clipboard/ClipboardPromise.h View 1 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/clipboard/ClipboardPromise.cpp View 1 2 3 4 5 1 chunk +115 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core_idl_files.gni View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTargetFactory.json5 View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/frame/NavigatorClipboard.h View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/frame/NavigatorClipboard.cpp View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/frame/NavigatorClipboard.idl View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 56 (24 generated)
garykac
3 years, 10 months ago (2017-02-18 00:00:56 UTC) #3
foolip
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md#Writing-tests has some suggestions for how to create a new top-level directory in web-platform-tests. Upstream ...
3 years, 10 months ago (2017-02-21 11:07:22 UTC) #4
foolip
When it comes to the tests, it turns out there's already an empty https://github.com/w3c/web-platform-tests/tree/master/clipboard that ...
3 years, 10 months ago (2017-02-21 11:13:18 UTC) #5
garykac
https://codereview.chromium.org/2695593006/diff/1/third_party/WebKit/Source/core/clipboard/Clipboard.idl File third_party/WebKit/Source/core/clipboard/Clipboard.idl (right): https://codereview.chromium.org/2695593006/diff/1/third_party/WebKit/Source/core/clipboard/Clipboard.idl#newcode5 third_party/WebKit/Source/core/clipboard/Clipboard.idl:5: [SecureContext] On 2017/02/21 11:13:18, foolip_UTC9_OOO wrote: > Can you ...
3 years, 7 months ago (2017-05-12 21:16:39 UTC) #7
dcheng
https://codereview.chromium.org/2695593006/diff/40001/third_party/WebKit/Source/core/clipboard/ClipboardAsync.cpp File third_party/WebKit/Source/core/clipboard/ClipboardAsync.cpp (right): https://codereview.chromium.org/2695593006/diff/40001/third_party/WebKit/Source/core/clipboard/ClipboardAsync.cpp#newcode25 third_party/WebKit/Source/core/clipboard/ClipboardAsync.cpp:25: m_buffer(WebClipboard::kBufferStandard) {} Out of curiosity, do you see this ...
3 years, 7 months ago (2017-05-13 22:18:32 UTC) #8
foolip
On 2017/02/21 11:07:22, foolip wrote: > https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md#Writing-tests > has some suggestions for how to create ...
3 years, 7 months ago (2017-05-15 15:13:59 UTC) #9
foolip
I've reviewed the tests and the IDL files. dcheng@, can you review everything else? https://codereview.chromium.org/2695593006/diff/40001/third_party/WebKit/LayoutTests/external/wpt/clipboard/async-001.html ...
3 years, 7 months ago (2017-05-15 15:33:28 UTC) #10
foolip
https://codereview.chromium.org/2695593006/diff/40001/third_party/WebKit/LayoutTests/external/wpt/clipboard/async-001.html File third_party/WebKit/LayoutTests/external/wpt/clipboard/async-001.html (right): https://codereview.chromium.org/2695593006/diff/40001/third_party/WebKit/LayoutTests/external/wpt/clipboard/async-001.html#newcode8 third_party/WebKit/LayoutTests/external/wpt/clipboard/async-001.html:8: assert_not_equals(navigator.clipboard, undefined); On 2017/05/15 15:33:27, foolip wrote: > Can ...
3 years, 7 months ago (2017-05-15 15:42:08 UTC) #11
garykac
https://codereview.chromium.org/2695593006/diff/40001/third_party/WebKit/LayoutTests/external/wpt/clipboard/async-001.html File third_party/WebKit/LayoutTests/external/wpt/clipboard/async-001.html (right): https://codereview.chromium.org/2695593006/diff/40001/third_party/WebKit/LayoutTests/external/wpt/clipboard/async-001.html#newcode3 third_party/WebKit/LayoutTests/external/wpt/clipboard/async-001.html:3: <title>Async Clipboard basic tests</title> On 2017/05/15 15:33:27, foolip wrote: ...
3 years, 7 months ago (2017-05-17 23:51:15 UTC) #12
foolip
I'll be OOO for a while, if necessary please ask another reviewer.
3 years, 7 months ago (2017-05-24 11:47:13 UTC) #14
garykac
Ping?
3 years, 6 months ago (2017-06-06 18:32:58 UTC) #15
dcheng
Sorry I some drafts but forgot to publish them. https://codereview.chromium.org/2695593006/diff/40001/third_party/WebKit/Source/core/clipboard/ClipboardAsync.cpp File third_party/WebKit/Source/core/clipboard/ClipboardAsync.cpp (right): https://codereview.chromium.org/2695593006/diff/40001/third_party/WebKit/Source/core/clipboard/ClipboardAsync.cpp#newcode103 third_party/WebKit/Source/core/clipboard/ClipboardAsync.cpp:103: ...
3 years, 6 months ago (2017-06-06 23:33:38 UTC) #16
garykac
https://codereview.chromium.org/2695593006/diff/40001/third_party/WebKit/Source/core/clipboard/ClipboardAsync.cpp File third_party/WebKit/Source/core/clipboard/ClipboardAsync.cpp (right): https://codereview.chromium.org/2695593006/diff/40001/third_party/WebKit/Source/core/clipboard/ClipboardAsync.cpp#newcode103 third_party/WebKit/Source/core/clipboard/ClipboardAsync.cpp:103: m_scriptPromiseResolver.Clear(); On 2017/06/06 23:33:38, dcheng wrote: > On 2017/05/17 ...
3 years, 6 months ago (2017-06-09 20:39:00 UTC) #17
garykac
ping.
3 years, 6 months ago (2017-06-14 17:54:18 UTC) #18
dcheng
LGTM with comments addressed. https://codereview.chromium.org/2695593006/diff/80001/third_party/WebKit/Source/core/clipboard/ClipboardPromise.cpp File third_party/WebKit/Source/core/clipboard/ClipboardPromise.cpp (right): https://codereview.chromium.org/2695593006/diff/80001/third_party/WebKit/Source/core/clipboard/ClipboardPromise.cpp#newcode69 third_party/WebKit/Source/core/clipboard/ClipboardPromise.cpp:69: String plainText = Platform::Current()->Clipboard()->ReadPlainText(buffer_); Nit: ...
3 years, 6 months ago (2017-06-14 18:56:22 UTC) #19
garykac
foolip@, could you take a look at RuntimeEnabledFeatures.json5? https://codereview.chromium.org/2695593006/diff/80001/third_party/WebKit/Source/core/clipboard/ClipboardPromise.cpp File third_party/WebKit/Source/core/clipboard/ClipboardPromise.cpp (right): https://codereview.chromium.org/2695593006/diff/80001/third_party/WebKit/Source/core/clipboard/ClipboardPromise.cpp#newcode69 third_party/WebKit/Source/core/clipboard/ClipboardPromise.cpp:69: String ...
3 years, 5 months ago (2017-06-29 01:37:26 UTC) #20
dcheng1
https://codereview.chromium.org/2695593006/diff/80001/third_party/WebKit/Source/core/frame/NavigatorClipboard.cpp File third_party/WebKit/Source/core/frame/NavigatorClipboard.cpp (right): https://codereview.chromium.org/2695593006/diff/80001/third_party/WebKit/Source/core/frame/NavigatorClipboard.cpp#newcode35 third_party/WebKit/Source/core/frame/NavigatorClipboard.cpp:35: : nullptr); On 2017/06/29 01:37:26, garykac wrote: > On ...
3 years, 5 months ago (2017-06-29 05:08:17 UTC) #22
foolip
RuntimeEnabledFeatures.json5 lgtm
3 years, 5 months ago (2017-06-30 11:11:33 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2695593006/100001
3 years, 5 months ago (2017-06-30 20:41:58 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/129555)
3 years, 5 months ago (2017-06-30 21:37:13 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2695593006/100001
3 years, 5 months ago (2017-07-06 00:44:04 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/252033)
3 years, 5 months ago (2017-07-06 00:47:04 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2695593006/120001
3 years, 5 months ago (2017-07-06 21:20:41 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/304251)
3 years, 5 months ago (2017-07-06 22:23:54 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2695593006/120001
3 years, 5 months ago (2017-07-06 23:42:36 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/495278)
3 years, 5 months ago (2017-07-07 01:25:23 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2695593006/140001
3 years, 5 months ago (2017-07-07 17:57:16 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/494622)
3 years, 5 months ago (2017-07-07 20:01:16 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2695593006/140001
3 years, 5 months ago (2017-07-07 20:21:03 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/494851)
3 years, 5 months ago (2017-07-07 22:31:32 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2695593006/160001
3 years, 5 months ago (2017-07-07 22:51:22 UTC) #53
commit-bot: I haz the power
3 years, 5 months ago (2017-07-08 00:53:34 UTC) #56
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/ac319a7ed300e2d8b7de3e6dcdfc...

Powered by Google App Engine
This is Rietveld 408576698