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

Issue 2011833003: Implement ui::ClipboardMus. (Closed)

Created:
4 years, 7 months ago by Elliot Glaysher
Modified:
4 years, 6 months ago
Reviewers:
brettw, sky, dcheng
CC:
dcheng, Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, rjkroege, tdresser+watch_chromium.org, tfarina, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement ui::ClipboardMus. This lets chrome in mash read and write from the mus server's clipboard. BUG=581460 Committed: https://crrev.com/bbc764eb7a7c1937d26f43f6087604ebc2d048ad Cr-Commit-Position: refs/heads/master@{#398351}

Patch Set 1 #

Patch Set 2 : Rebase to tot #

Patch Set 3 : Fix test compile. #

Patch Set 4 : Maybe fix chromeos compile. #

Patch Set 5 : Just make it a clipboard member. #

Patch Set 6 : Add this constant to windows. #

Patch Set 7 : Gyp still exists. :( #

Patch Set 8 : Rebase to tot #

Patch Set 9 : Integrate the ui::Clipboard tests into the mus interactive ui tests. #

Patch Set 10 : Make sure we don't build a PlatformEventSource in non-component builds. #

Patch Set 11 : Patch cleanup. #

Total comments: 18

Patch Set 12 : sky comments #

Patch Set 13 : Rebase to tot #

Patch Set 14 : Fix compile. #

Patch Set 15 : Chromeos is weird. #

Patch Set 16 : base::string16 in interfaces. >:( #

Total comments: 4

Patch Set 17 : All problems in computer science can be solved by adding a layer of indirection. #

Patch Set 18 : Fix linux test failure. #

Patch Set 19 : Fix cast_linux. #

Total comments: 29

Patch Set 20 : dcheng comments #

Patch Set 21 : compile fix #

Patch Set 22 : brettw comment #

Patch Set 23 : Remove static in test by creating forwarding clipboard subclass. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+780 lines, -127 lines) Patch
M base/threading/thread_restrictions.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +5 lines, -0 lines 0 comments Download
M components/mus/clipboard/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/mus/clipboard/clipboard_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -5 lines 0 comments Download
M components/mus/clipboard/clipboard_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -10 lines 0 comments Download
M components/mus/clipboard/clipboard_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +15 lines, -16 lines 0 comments Download
M components/mus/public/interfaces/clipboard.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +11 lines, -11 lines 0 comments Download
M mojo/common/common_type_converters.h View 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/common/common_type_converters.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M ui/base/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 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/clipboard/clipboard.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 chunks +19 lines, -1 line 0 comments Download
M ui/base/clipboard/clipboard.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +40 lines, -20 lines 0 comments Download
M ui/base/clipboard/clipboard_android.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M ui/base/clipboard/clipboard_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -2 lines 0 comments Download
M ui/base/clipboard/clipboard_aurax11.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +18 lines, -16 lines 0 comments Download
M ui/base/clipboard/clipboard_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +6 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_test_template.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +9 lines, -4 lines 0 comments Download
M ui/base/clipboard/clipboard_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +12 lines, -0 lines 0 comments Download
M ui/base/clipboard/custom_data_helper.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
D ui/base/clipboard/custom_data_helper_linux.cc View 1 2 3 4 5 1 chunk +0 lines, -13 lines 0 comments Download
M ui/base/clipboard/custom_data_helper_mac.mm View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_provider_aurax11.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +15 lines, -16 lines 0 comments Download
M ui/base/test/test_clipboard.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -1 line 0 comments Download
M ui/base/test/test_clipboard_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +12 lines, -0 lines 0 comments Download
M ui/base/ui_base.gyp 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 +0 lines, -1 line 0 comments Download
M ui/base/x/selection_utils.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/x/selection_utils.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M ui/views/mus/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 4 chunks +6 lines, -0 lines 0 comments Download
M ui/views/mus/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A ui/views/mus/clipboard_mus.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +87 lines, -0 lines 0 comments Download
A ui/views/mus/clipboard_mus.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +338 lines, -0 lines 0 comments Download
A ui/views/mus/clipboard_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 +145 lines, -0 lines 0 comments Download
M ui/views/mus/window_manager_connection.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
M ui/views/mus/window_manager_connection.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (6 generated)
Elliot Glaysher
This is now ready for review. This implements a version of ui::Cilpboard for mus, lets ...
4 years, 6 months ago (2016-05-26 22:30:24 UTC) #2
sky
+dcheng https://codereview.chromium.org/2011833003/diff/200001/components/mus/public/interfaces/clipboard.mojom File components/mus/public/interfaces/clipboard.mojom (right): https://codereview.chromium.org/2011833003/diff/200001/components/mus/public/interfaces/clipboard.mojom#newcode41 components/mus/public/interfaces/clipboard.mojom:41: ReadMimeType(Type clipboard_type, string mime_type) WDYT of renaming to ...
4 years, 6 months ago (2016-05-26 23:10:27 UTC) #4
Elliot Glaysher
https://codereview.chromium.org/2011833003/diff/200001/components/mus/public/interfaces/clipboard.mojom File components/mus/public/interfaces/clipboard.mojom (right): https://codereview.chromium.org/2011833003/diff/200001/components/mus/public/interfaces/clipboard.mojom#newcode41 components/mus/public/interfaces/clipboard.mojom:41: ReadMimeType(Type clipboard_type, string mime_type) On 2016/05/26 23:10:26, sky wrote: ...
4 years, 6 months ago (2016-05-31 17:01:40 UTC) #5
dcheng
https://codereview.chromium.org/2011833003/diff/200001/components/mus/public/interfaces/clipboard.mojom File components/mus/public/interfaces/clipboard.mojom (right): https://codereview.chromium.org/2011833003/diff/200001/components/mus/public/interfaces/clipboard.mojom#newcode41 components/mus/public/interfaces/clipboard.mojom:41: ReadMimeType(Type clipboard_type, string mime_type) On 2016/05/31 at 17:01:40, Elliot ...
4 years, 6 months ago (2016-05-31 17:46:46 UTC) #6
sky
https://codereview.chromium.org/2011833003/diff/300001/ui/views/mus/clipboard_mus.cc File ui/views/mus/clipboard_mus.cc (right): https://codereview.chromium.org/2011833003/diff/300001/ui/views/mus/clipboard_mus.cc#newcode154 ui/views/mus/clipboard_mus.cc:154: std::string text = text_data.To<std::string>(); Do all of the converters ...
4 years, 6 months ago (2016-05-31 20:50:24 UTC) #7
Elliot Glaysher
ptal https://codereview.chromium.org/2011833003/diff/300001/ui/views/mus/clipboard_mus.cc File ui/views/mus/clipboard_mus.cc (right): https://codereview.chromium.org/2011833003/diff/300001/ui/views/mus/clipboard_mus.cc#newcode154 ui/views/mus/clipboard_mus.cc:154: std::string text = text_data.To<std::string>(); On 2016/05/31 20:50:24, sky ...
4 years, 6 months ago (2016-06-01 19:41:14 UTC) #8
sky
LGTM
4 years, 6 months ago (2016-06-01 20:23:25 UTC) #9
Elliot Glaysher
dcheng: mojom review brettw: base review. In the non-mus case, we called blocking OS functions ...
4 years, 6 months ago (2016-06-01 20:47:52 UTC) #11
Elliot Glaysher
dcheng/brettw: friendly ping
4 years, 6 months ago (2016-06-03 21:04:13 UTC) #12
brettw
base lgtm https://codereview.chromium.org/2011833003/diff/360001/base/threading/thread_restrictions.h File base/threading/thread_restrictions.h (right): https://codereview.chromium.org/2011833003/diff/360001/base/threading/thread_restrictions.h#newcode239 base/threading/thread_restrictions.h:239: friend class views::ClipboardMus; I think it would ...
4 years, 6 months ago (2016-06-03 21:39:00 UTC) #13
dcheng
Also, what's your plan with sequence numbers in the mojom interface? It seems like they're ...
4 years, 6 months ago (2016-06-04 06:14:01 UTC) #14
Elliot Glaysher
> Also, what's your plan with sequence numbers in the mojom interface? > It seems ...
4 years, 6 months ago (2016-06-06 20:10:12 UTC) #15
dcheng
https://codereview.chromium.org/2011833003/diff/360001/ui/base/clipboard/clipboard_test_template.h File ui/base/clipboard/clipboard_test_template.h (right): https://codereview.chromium.org/2011833003/diff/360001/ui/base/clipboard/clipboard_test_template.h#newcode372 ui/base/clipboard/clipboard_test_template.h:372: if (!this->IsMusTest()) { On 2016/06/06 at 20:10:12, Elliot Glaysher ...
4 years, 6 months ago (2016-06-07 05:39:00 UTC) #16
Elliot Glaysher
https://codereview.chromium.org/2011833003/diff/360001/ui/views/mus/clipboard_unittest.cc File ui/views/mus/clipboard_unittest.cc (right): https://codereview.chromium.org/2011833003/diff/360001/ui/views/mus/clipboard_unittest.cc#newcode47 ui/views/mus/clipboard_unittest.cc:47: PlatformClipboardTraits::test_helper; On 2016/06/07 05:39:00, dcheng wrote: > On 2016/06/06 ...
4 years, 6 months ago (2016-06-07 17:16:20 UTC) #17
dcheng
lgtm (Honestly, I'm fine with just making it a static ScopedViewsTestHelper* and having Create() allocate ...
4 years, 6 months ago (2016-06-07 17:33:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2011833003/440001
4 years, 6 months ago (2016-06-07 17:40:37 UTC) #21
commit-bot: I haz the power
Committed patchset #23 (id:440001)
4 years, 6 months ago (2016-06-07 18:28:54 UTC) #22
commit-bot: I haz the power
Patchset 23 (id:??) landed as https://crrev.com/bbc764eb7a7c1937d26f43f6087604ebc2d048ad Cr-Commit-Position: refs/heads/master@{#398351}
4 years, 6 months ago (2016-06-07 18:29:59 UTC) #24
Elliot Glaysher
4 years, 6 months ago (2016-06-07 19:21:56 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #23 id:440001) has been created in
https://codereview.chromium.org/2047703003/ by erg@chromium.org.

The reason for reverting is: Broke Win x64 (dbg) due to size_t -> int
conversion..

Powered by Google App Engine
This is Rietveld 408576698