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

Issue 562483002: mojo: Create a basic clipboard. (Closed)

Created:
6 years, 3 months ago by Elliot Glaysher
Modified:
6 years, 3 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

mojo: Create a basic clipboard. This creates a basic clipboard interface and uses it from html_viewer. This is a minimal implementation and does not actually interact with the system clipboard. BUG=411039 First Committed: https://crrev.com/757286d8a2c778fe4622890140c9b9d2afd21063 Committed: https://crrev.com/b69fbca034e3c2181e0a12cf02baec4de526bf25 Cr-Commit-Position: refs/heads/master@{#295182}

Patch Set 1 #

Patch Set 2 : Ooops. Adding DEPS file. #

Patch Set 3 : Fix msvc #

Patch Set 4 : Maybe this will fix the red #

Patch Set 5 : Add unit tests and add suite to buildbots #

Patch Set 6 : Rebase to ToT #

Patch Set 7 : Maybe this will help... #

Patch Set 8 : Temporarily removing linux buildbot configuration for debug #

Patch Set 9 : OK, readding the linux trybot modifications after a sync #

Patch Set 10 : Maybe dos2unix will help. #

Patch Set 11 : Reduced to one line. #

Patch Set 12 : Attempt adding a bogus line somewhere else in chromium.linux.json to figure out why this keeps fail… #

Patch Set 13 : Rebased on top of dos2unix fix patch. #

Patch Set 14 : Minimize patch. #

Patch Set 15 : git cl format #

Patch Set 16 : Fix gn build. #

Patch Set 17 : Maybe fix the gn build? #

Patch Set 18 : ;_; #

Total comments: 6

Patch Set 19 : Fixes for sky; commenting. #

Total comments: 4

Patch Set 20 : Redo the clipboard interface. #

Patch Set 21 : Rebase to ToT to fix patch apply. #

Total comments: 5

Patch Set 22 : Rebase to ToT #

Patch Set 23 : Rework with Array<uint8_t>. #

Patch Set 24 : Fix gn build. #

Patch Set 25 : Maybe fix windows and gn builds. #

Total comments: 8

Patch Set 26 : sky nits #

Patch Set 27 : Fix one of the converters. The other still needs to be changed. #

Patch Set 28 : Get the conversion right and add unit tests to make sure it doesn't regress. #

Patch Set 29 : Remove clangism to fix compile. #

Total comments: 3

Patch Set 30 : Rebase to ToT to pick up jamesr's change. #

Patch Set 31 : Changes to the gn files. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+871 lines, -24 lines) Patch
M mojo/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -0 lines 0 comments Download
M mojo/common/common_type_converters.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +15 lines, -0 lines 0 comments Download
M mojo/common/common_type_converters.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +16 lines, -0 lines 0 comments Download
M mojo/common/common_type_converters_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +21 lines, -0 lines 0 comments Download
M mojo/mojo.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/mojo_services.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +56 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/array.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/services/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
A mojo/services/clipboard/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +42 lines, -0 lines 0 comments Download
A + mojo/services/clipboard/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -1 line 0 comments Download
A mojo/services/clipboard/clipboard_standalone_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +61 lines, -0 lines 0 comments Download
A mojo/services/clipboard/clipboard_standalone_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +100 lines, -0 lines 0 comments Download
A mojo/services/clipboard/clipboard_standalone_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +185 lines, -0 lines 0 comments Download
A + mojo/services/clipboard/main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +8 lines, -19 lines 0 comments Download
M mojo/services/html_viewer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/services/html_viewer/blink_basic_type_converters.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/services/html_viewer/blink_basic_type_converters.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +10 lines, -0 lines 0 comments Download
M mojo/services/html_viewer/blink_platform_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +3 lines, -0 lines 0 comments Download
M mojo/services/html_viewer/blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +9 lines, -0 lines 0 comments Download
A mojo/services/html_viewer/webclipboard_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +48 lines, -0 lines 0 comments Download
A mojo/services/html_viewer/webclipboard_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +222 lines, -0 lines 0 comments Download
A + mojo/services/public/interfaces/clipboard/BUILD.gn View 1 chunk +3 lines, -4 lines 0 comments Download
A mojo/services/public/interfaces/clipboard/clipboard.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +52 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.fyi.json View 1 2 3 4 5 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (8 generated)
Elliot Glaysher
Finally ready for review
6 years, 3 months ago (2014-09-11 19:10:04 UTC) #2
sky
+darin as hew knows the blink side https://codereview.chromium.org/562483002/diff/320001/mojo/mojo_services.gypi File mojo/mojo_services.gypi (right): https://codereview.chromium.org/562483002/diff/320001/mojo/mojo_services.gypi#newcode48 mojo/mojo_services.gypi:48: '../skia/skia.gyp:skia', skia? ...
6 years, 3 months ago (2014-09-11 19:52:39 UTC) #4
dcheng
https://codereview.chromium.org/562483002/diff/320001/mojo/services/public/interfaces/clipboard/clipboard.mojom File mojo/services/public/interfaces/clipboard/clipboard.mojom (right): https://codereview.chromium.org/562483002/diff/320001/mojo/services/public/interfaces/clipboard/clipboard.mojom#newcode19 mojo/services/public/interfaces/clipboard/clipboard.mojom:19: GetSequenceNumber(Type clipboard_type) => (uint64 sequence); On 2014/09/11 19:52:39, sky ...
6 years, 3 months ago (2014-09-11 20:06:22 UTC) #6
sky
Does it need to be in mojo then? Could it be isolated in blink? If ...
6 years, 3 months ago (2014-09-11 20:15:15 UTC) #7
dcheng
On 2014/09/11 20:15:15, sky wrote: > Does it need to be in mojo then? Could ...
6 years, 3 months ago (2014-09-11 20:26:22 UTC) #8
sky
The long term plan is to make many of these interfaces used by third party ...
6 years, 3 months ago (2014-09-11 21:03:29 UTC) #9
Elliot Glaysher
ptal https://codereview.chromium.org/562483002/diff/320001/mojo/services/public/interfaces/clipboard/clipboard.mojom File mojo/services/public/interfaces/clipboard/clipboard.mojom (right): https://codereview.chromium.org/562483002/diff/320001/mojo/services/public/interfaces/clipboard/clipboard.mojom#newcode19 mojo/services/public/interfaces/clipboard/clipboard.mojom:19: GetSequenceNumber(Type clipboard_type) => (uint64 sequence); On 2014/09/11 20:06:21, ...
6 years, 3 months ago (2014-09-11 21:42:28 UTC) #10
sky
https://codereview.chromium.org/562483002/diff/340001/mojo/services/public/interfaces/clipboard/clipboard.mojom File mojo/services/public/interfaces/clipboard/clipboard.mojom (right): https://codereview.chromium.org/562483002/diff/340001/mojo/services/public/interfaces/clipboard/clipboard.mojom#newcode20 mojo/services/public/interfaces/clipboard/clipboard.mojom:20: // changes, and is provided by all major operating ...
6 years, 3 months ago (2014-09-11 22:11:43 UTC) #11
Elliot Glaysher
I've redesigned the API around simple mime type key/value pairs, and have made writing a ...
6 years, 3 months ago (2014-09-12 21:46:26 UTC) #12
sky
https://codereview.chromium.org/562483002/diff/380001/mojo/services/public/interfaces/clipboard/clipboard.mojom File mojo/services/public/interfaces/clipboard/clipboard.mojom (right): https://codereview.chromium.org/562483002/diff/380001/mojo/services/public/interfaces/clipboard/clipboard.mojom#newcode11 mojo/services/public/interfaces/clipboard/clipboard.mojom:11: string data; Is there a reason you want a ...
6 years, 3 months ago (2014-09-15 15:28:20 UTC) #13
darin (slow to review)
https://codereview.chromium.org/562483002/diff/380001/mojo/services/public/interfaces/clipboard/clipboard.mojom File mojo/services/public/interfaces/clipboard/clipboard.mojom (right): https://codereview.chromium.org/562483002/diff/380001/mojo/services/public/interfaces/clipboard/clipboard.mojom#newcode28 mojo/services/public/interfaces/clipboard/clipboard.mojom:28: // changes, and is provided by Windoes, Linux, and ...
6 years, 3 months ago (2014-09-15 16:28:24 UTC) #14
dcheng
How do you plan on handling cases where there might be metadata associated with a ...
6 years, 3 months ago (2014-09-15 21:37:20 UTC) #15
Elliot Glaysher
(sky, darin ptal) On 2014/09/15 21:37:20, dcheng (OOO) wrote: > How do you plan on ...
6 years, 3 months ago (2014-09-15 21:58:33 UTC) #16
sky
https://codereview.chromium.org/562483002/diff/460001/mojo/common/common_type_converters.cc File mojo/common/common_type_converters.cc (right): https://codereview.chromium.org/562483002/diff/460001/mojo/common/common_type_converters.cc#newcode56 mojo/common/common_type_converters.cc:56: for (size_t i = 0; i < input.size(); ++i) ...
6 years, 3 months ago (2014-09-15 23:16:52 UTC) #17
Elliot Glaysher
https://codereview.chromium.org/562483002/diff/460001/mojo/common/common_type_converters.cc File mojo/common/common_type_converters.cc (right): https://codereview.chromium.org/562483002/diff/460001/mojo/common/common_type_converters.cc#newcode56 mojo/common/common_type_converters.cc:56: for (size_t i = 0; i < input.size(); ++i) ...
6 years, 3 months ago (2014-09-15 23:30:15 UTC) #18
sky
LGTM - but wait for Darin. I'm hopeful there is a more efficient way to ...
6 years, 3 months ago (2014-09-15 23:39:15 UTC) #19
dcheng
On 2014/09/15 at 21:58:33, erg wrote: > (sky, darin ptal) > > On 2014/09/15 21:37:20, ...
6 years, 3 months ago (2014-09-15 23:49:28 UTC) #20
Elliot Glaysher
Note: I'm CQing this now that I've resolved the issue with converters and getting the ...
6 years, 3 months ago (2014-09-16 18:14:15 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/562483002/520001
6 years, 3 months ago (2014-09-16 18:17:10 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/56639) android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/4879) android_chromium_gn_compile_rel ...
6 years, 3 months ago (2014-09-16 18:36:08 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/562483002/540001
6 years, 3 months ago (2014-09-16 19:00:16 UTC) #27
commit-bot: I haz the power
Committed patchset #29 (id:540001) as 3a04207e55635bea3a6895721e1f59479d69e99c
6 years, 3 months ago (2014-09-16 21:27:44 UTC) #28
commit-bot: I haz the power
Patchset 29 (id:??) landed as https://crrev.com/757286d8a2c778fe4622890140c9b9d2afd21063 Cr-Commit-Position: refs/heads/master@{#295143}
6 years, 3 months ago (2014-09-16 21:28:29 UTC) #29
Ken Rockot(use gerrit already)
A revert of this CL (patchset #29 id:540001) has been created in https://codereview.chromium.org/579503003/ by rockot@chromium.org. ...
6 years, 3 months ago (2014-09-16 21:53:25 UTC) #30
jamesr
https://codereview.chromium.org/562483002/diff/540001/mojo/services/clipboard/BUILD.gn File mojo/services/clipboard/BUILD.gn (right): https://codereview.chromium.org/562483002/diff/540001/mojo/services/clipboard/BUILD.gn#newcode5 mojo/services/clipboard/BUILD.gn:5: import("//mojo/system.gni") delete this line https://codereview.chromium.org/562483002/diff/540001/mojo/services/clipboard/BUILD.gn#newcode13 mojo/services/clipboard/BUILD.gn:13: "//mojo/services/public/interfaces/clipboard", add "//mojo/system:for_component", ...
6 years, 3 months ago (2014-09-16 22:13:06 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/562483002/580001
6 years, 3 months ago (2014-09-16 22:28:45 UTC) #34
commit-bot: I haz the power
Committed patchset #31 (id:580001) as edd966581e929fbe72f2ff2f7a46d1c370a3d11e
6 years, 3 months ago (2014-09-17 00:09:06 UTC) #35
commit-bot: I haz the power
6 years, 3 months ago (2014-09-17 00:09:46 UTC) #36
Message was sent while issue was closed.
Patchset 31 (id:??) landed as
https://crrev.com/b69fbca034e3c2181e0a12cf02baec4de526bf25
Cr-Commit-Position: refs/heads/master@{#295182}

Powered by Google App Engine
This is Rietveld 408576698