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

Issue 2787703002: Add mojo service for CopylessPaste in Blink (Closed)

Created:
3 years, 8 months ago by wychen
Modified:
3 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), dglazkov+blink, kinuko+watch, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add mojo service for CopylessPaste in Blink A CopylessPaste mojo service in Blink is added. The parsed data would be forwarded to the app indexing service. BUG=693650 Review-Url: https://codereview.chromium.org/2787703002 Cr-Commit-Position: refs/heads/master@{#462826} Committed: https://chromium.googlesource.com/chromium/src/+/0be0df4f013607e35411a085511f7accfef26bbb

Patch Set 1 #

Total comments: 2

Patch Set 2 : singlular #

Total comments: 2

Patch Set 3 : rebase across https://codereview.chromium.org/2783543004 #

Total comments: 5

Patch Set 4 : makeUnique #

Total comments: 11

Patch Set 5 : rebase, separate data type to another CL #

Patch Set 6 : rebase #

Patch Set 7 : return null if no results #

Patch Set 8 : only main frame #

Total comments: 3

Patch Set 9 : comment #

Patch Set 10 : add todo #

Patch Set 11 : rebase #

Patch Set 12 : update to new mojo namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -0 lines) Patch
M third_party/WebKit/Source/modules/ModulesInitializer.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/document_metadata/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/document_metadata/DEPS View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/document_metadata/copyless_paste.mojom View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (15 generated)
wychen
PTAL. This is just the mojo interface. The parsing logic (https://codereview.chromium.org/2777623002/) would be revised according ...
3 years, 8 months ago (2017-03-30 02:27:47 UTC) #2
dproctor
https://codereview.chromium.org/2787703002/diff/1/third_party/WebKit/public/platform/modules/document_metadata/copyless_paste.mojom File third_party/WebKit/public/platform/modules/document_metadata/copyless_paste.mojom (right): https://codereview.chromium.org/2787703002/diff/1/third_party/WebKit/public/platform/modules/document_metadata/copyless_paste.mojom#newcode14 third_party/WebKit/public/platform/modules/document_metadata/copyless_paste.mojom:14: struct Properties { nit: Property?
3 years, 8 months ago (2017-03-30 17:21:31 UTC) #3
wychen
https://codereview.chromium.org/2787703002/diff/1/third_party/WebKit/public/platform/modules/document_metadata/copyless_paste.mojom File third_party/WebKit/public/platform/modules/document_metadata/copyless_paste.mojom (right): https://codereview.chromium.org/2787703002/diff/1/third_party/WebKit/public/platform/modules/document_metadata/copyless_paste.mojom#newcode14 third_party/WebKit/public/platform/modules/document_metadata/copyless_paste.mojom:14: struct Properties { On 2017/03/30 17:21:31, dproctor wrote: > ...
3 years, 8 months ago (2017-03-30 17:40:30 UTC) #4
dglazkov
https://codereview.chromium.org/2787703002/diff/20001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h File third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h (right): https://codereview.chromium.org/2787703002/diff/20001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h#newcode26 third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h:26: WeakPersistent<LocalFrame> m_frame; Could you help me understand why WeakPersistent ...
3 years, 8 months ago (2017-03-30 17:52:50 UTC) #6
wychen
https://codereview.chromium.org/2787703002/diff/20001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h File third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h (right): https://codereview.chromium.org/2787703002/diff/20001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h#newcode26 third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h:26: WeakPersistent<LocalFrame> m_frame; On 2017/03/30 17:52:50, dglazkov wrote: > Could ...
3 years, 8 months ago (2017-03-30 18:00:30 UTC) #7
dglazkov
On 2017/03/30 at 18:00:30, wychen wrote: > https://codereview.chromium.org/2787703002/diff/20001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h > File third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h (right): > > https://codereview.chromium.org/2787703002/diff/20001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h#newcode26 ...
3 years, 8 months ago (2017-03-30 19:20:39 UTC) #8
wychen
On 2017/03/30 19:20:39, dglazkov wrote: > On 2017/03/30 at 18:00:30, wychen wrote: > > > ...
3 years, 8 months ago (2017-03-30 20:39:29 UTC) #9
dglazkov
lgtm
3 years, 8 months ago (2017-03-30 20:52:42 UTC) #10
dcheng
https://codereview.chromium.org/2787703002/diff/40001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp File third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp (right): https://codereview.chromium.org/2787703002/diff/40001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp#newcode20 third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp:20: mojo::MakeStrongBinding(WTF::wrapUnique(new CopylessPasteServer(*frame)), Nit: WTF::makeUnique? https://codereview.chromium.org/2787703002/diff/40001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp#newcode24 third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp:24: void CopylessPasteServer::GetEntities(const GetEntitiesCallback& ...
3 years, 8 months ago (2017-03-30 21:21:00 UTC) #12
wychen
https://codereview.chromium.org/2787703002/diff/40001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp File third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp (right): https://codereview.chromium.org/2787703002/diff/40001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp#newcode24 third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp:24: void CopylessPasteServer::GetEntities(const GetEntitiesCallback& callback) { On 2017/03/30 21:21:00, dcheng ...
3 years, 8 months ago (2017-03-30 21:33:28 UTC) #13
dcheng
On 2017/03/30 21:33:28, wychen wrote: > https://codereview.chromium.org/2787703002/diff/40001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp > File third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp > (right): > > https://codereview.chromium.org/2787703002/diff/40001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp#newcode24 ...
3 years, 8 months ago (2017-03-30 22:14:50 UTC) #14
haraken
https://codereview.chromium.org/2787703002/diff/60001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp File third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp (right): https://codereview.chromium.org/2787703002/diff/60001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp#newcode15 third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp:15: void CopylessPasteServer::bindMojoRequest( Would you help me understand why you ...
3 years, 8 months ago (2017-03-31 04:20:09 UTC) #16
wychen
On 2017/03/30 22:14:50, dcheng wrote: > On 2017/03/30 21:33:28, wychen wrote: > > > https://codereview.chromium.org/2787703002/diff/40001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp ...
3 years, 8 months ago (2017-03-31 07:39:05 UTC) #17
wychen
https://codereview.chromium.org/2787703002/diff/40001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp File third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp (right): https://codereview.chromium.org/2787703002/diff/40001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp#newcode20 third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp:20: mojo::MakeStrongBinding(WTF::wrapUnique(new CopylessPasteServer(*frame)), On 2017/03/30 21:21:00, dcheng wrote: > Nit: ...
3 years, 8 months ago (2017-03-31 07:51:54 UTC) #18
dproctor
https://codereview.chromium.org/2787703002/diff/60001/third_party/WebKit/public/BUILD.gn File third_party/WebKit/public/BUILD.gn (right): https://codereview.chromium.org/2787703002/diff/60001/third_party/WebKit/public/BUILD.gn#newcode705 third_party/WebKit/public/BUILD.gn:705: "platform/modules/document_metadata/copyless_paste.mojom", I think you want to put this instead ...
3 years, 8 months ago (2017-03-31 23:18:14 UTC) #19
wychen
https://codereview.chromium.org/2787703002/diff/60001/third_party/WebKit/public/BUILD.gn File third_party/WebKit/public/BUILD.gn (right): https://codereview.chromium.org/2787703002/diff/60001/third_party/WebKit/public/BUILD.gn#newcode705 third_party/WebKit/public/BUILD.gn:705: "platform/modules/document_metadata/copyless_paste.mojom", On 2017/03/31 23:18:14, dproctor wrote: > I think ...
3 years, 8 months ago (2017-04-01 05:16:00 UTC) #20
dproctor
https://codereview.chromium.org/2787703002/diff/60001/third_party/WebKit/public/BUILD.gn File third_party/WebKit/public/BUILD.gn (right): https://codereview.chromium.org/2787703002/diff/60001/third_party/WebKit/public/BUILD.gn#newcode705 third_party/WebKit/public/BUILD.gn:705: "platform/modules/document_metadata/copyless_paste.mojom", On 2017/04/01 05:16:00, wychen wrote: > On 2017/03/31 ...
3 years, 8 months ago (2017-04-03 17:43:10 UTC) #21
haraken
https://codereview.chromium.org/2787703002/diff/60001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp File third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp (right): https://codereview.chromium.org/2787703002/diff/60001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp#newcode15 third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp:15: void CopylessPasteServer::bindMojoRequest( On 2017/03/31 07:51:54, wychen wrote: > On ...
3 years, 8 months ago (2017-04-04 06:27:58 UTC) #23
wychen
https://codereview.chromium.org/2787703002/diff/40001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp File third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp (right): https://codereview.chromium.org/2787703002/diff/40001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp#newcode24 third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp:24: void CopylessPasteServer::GetEntities(const GetEntitiesCallback& callback) { On 2017/03/30 21:33:28, wychen ...
3 years, 8 months ago (2017-04-05 19:25:51 UTC) #24
wychen
How does this look now? ContextClient doesn't seem compatible in our use case.
3 years, 8 months ago (2017-04-05 23:27:59 UTC) #27
haraken
On 2017/04/05 23:27:59, wychen wrote: > How does this look now? ContextClient doesn't seem compatible ...
3 years, 8 months ago (2017-04-06 02:26:32 UTC) #28
dcheng
https://codereview.chromium.org/2787703002/diff/160001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp File third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp (right): https://codereview.chromium.org/2787703002/diff/160001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp#newcode20 third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp:20: mojo::MakeStrongBinding(WTF::makeUnique<CopylessPasteServer>(*frame), To be honest, I'm not convinced that we ...
3 years, 8 months ago (2017-04-06 05:51:16 UTC) #29
haraken
On 2017/04/06 05:51:16, dcheng wrote: > https://codereview.chromium.org/2787703002/diff/160001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp > File third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp > (right): > > https://codereview.chromium.org/2787703002/diff/160001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp#newcode20 ...
3 years, 8 months ago (2017-04-06 06:18:27 UTC) #30
wychen
On 2017/04/06 06:18:27, haraken wrote: > On 2017/04/06 05:51:16, dcheng wrote: > > > https://codereview.chromium.org/2787703002/diff/160001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp ...
3 years, 8 months ago (2017-04-06 11:57:41 UTC) #31
wychen
https://codereview.chromium.org/2787703002/diff/160001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h File third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h (right): https://codereview.chromium.org/2787703002/diff/160001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h#newcode16 third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h:16: class MODULES_EXPORT CopylessPasteServer final On 2017/04/06 02:26:32, haraken wrote: ...
3 years, 8 months ago (2017-04-06 15:34:58 UTC) #32
dglazkov
On 2017/04/06 at 06:18:27, haraken wrote: > On 2017/04/06 05:51:16, dcheng wrote: > > https://codereview.chromium.org/2787703002/diff/160001/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.cpp ...
3 years, 8 months ago (2017-04-06 15:35:29 UTC) #33
wychen
I've added a todo to remove bindMojoRequest pattern. dcheng@, before we have a way to ...
3 years, 8 months ago (2017-04-07 02:12:30 UTC) #34
dcheng
LGTM
3 years, 8 months ago (2017-04-07 07:21:28 UTC) #35
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/2787703002/200001
3 years, 8 months ago (2017-04-07 07:23:24 UTC) #38
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/424495)
3 years, 8 months ago (2017-04-07 07:34:01 UTC) #40
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/2787703002/260001
3 years, 8 months ago (2017-04-07 08:10:12 UTC) #44
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 10:13:37 UTC) #47
Message was sent while issue was closed.
Committed patchset #12 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/0be0df4f013607e35411a085511f...

Powered by Google App Engine
This is Rietveld 408576698