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

Issue 1949233002: Create a RegisterViewAssociate method in ViewManager (Closed)

Created:
4 years, 7 months ago by mikejurka
Modified:
4 years, 7 months ago
Reviewers:
jeffbrown
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Create a RegisterViewAssociate method in ViewManager Add tests for ViewManager and Views #703 R=jeffbrown@google.com Committed: https://chromium.googlesource.com/external/mojo/+/dec9013739bd49292096072912197341fa056795

Patch Set 1 #

Patch Set 2 : wip mozart #703 #

Patch Set 3 : Improved tests #

Total comments: 19

Patch Set 4 : cleaned up tests a bit #

Patch Set 5 : bit more cleanup and regenerated dart bindings #

Patch Set 6 : adding some (non-working) tests for viewassociatetable #

Patch Set 7 : cleaned up build files #

Patch Set 8 : refactor some common code in tests #

Patch Set 9 : more test refactoring #

Patch Set 10 : remove some unused imports #

Patch Set 11 : more cleanup #

Patch Set 12 : removed url param from RegisterViewAssociate #

Patch Set 13 : tiny bit more cleanup #

Total comments: 29

Patch Set 14 : Add callback for when view associates are killed #

Patch Set 15 : Moved launching/registering of view associates to launcher #

Total comments: 5

Patch Set 16 : added view associate owners #

Patch Set 17 : fix compile issue due to rebase #

Patch Set 18 : minor cleanup #

Patch Set 19 : one more compile fix #

Total comments: 14

Patch Set 20 : almost finally done #

Patch Set 21 : Moving compositor/view manager initialization to launcher_app #

Patch Set 22 : add tests to mojo tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1096 lines, -125 lines) Patch
M mojo/dart/packages/mojo_services/lib/mojo/ui/view_associates.mojom.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +177 lines, -0 lines 0 comments Download
M mojo/dart/packages/mojo_services/lib/mojo/ui/view_manager.mojom.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +195 lines, -0 lines 0 comments Download
M mojo/services/ui/views/interfaces/view_associates.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +9 lines, -5 lines 0 comments Download
M mojo/services/ui/views/interfaces/view_manager.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +26 lines, -0 lines 0 comments Download
M mojo/tools/data/apptests View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +3 lines, -0 lines 0 comments Download
M services/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M services/gfx/compositor/compositor_engine.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -4 lines 0 comments Download
M services/ui/launcher/launch_instance.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +5 lines, -6 lines 0 comments Download
M services/ui/launcher/launch_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +6 lines, -21 lines 0 comments Download
M services/ui/launcher/launcher_app.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +12 lines, -0 lines 0 comments Download
M services/ui/launcher/launcher_app.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +73 lines, -2 lines 0 comments Download
M services/ui/view_manager/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +39 lines, -6 lines 0 comments Download
A services/ui/view_manager/tests/mock_view_associate.h View 1 2 3 4 5 6 7 8 1 chunk +33 lines, -0 lines 0 comments Download
A services/ui/view_manager/tests/mock_view_associate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +33 lines, -0 lines 0 comments Download
A services/ui/view_manager/tests/view_associate_table_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +58 lines, -0 lines 0 comments Download
A services/ui/view_manager/tests/view_manager_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +174 lines, -0 lines 0 comments Download
A services/ui/view_manager/tests/view_manager_test_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +39 lines, -0 lines 0 comments Download
A services/ui/view_manager/tests/view_manager_test_base.cc View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download
M services/ui/view_manager/view_associate_table.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +25 lines, -12 lines 0 comments Download
M services/ui/view_manager/view_associate_table.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +100 lines, -36 lines 0 comments Download
M services/ui/view_manager/view_manager_app.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/view_manager/view_manager_app.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +0 lines, -18 lines 0 comments Download
M services/ui/view_manager/view_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
M services/ui/view_manager/view_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +16 lines, -0 lines 0 comments Download
M services/ui/view_manager/view_registry.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -8 lines 0 comments Download
M services/ui/view_manager/view_registry.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +13 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (3 generated)
mikejurka
4 years, 7 months ago (2016-05-05 00:16:15 UTC) #2
mikejurka
4 years, 7 months ago (2016-05-10 18:41:06 UTC) #3
jeffbrown
some comments that might help https://codereview.chromium.org/1949233002/diff/40001/services/ui/view_manager/tests/view_manager_test.cc File services/ui/view_manager/tests/view_manager_test.cc (right): https://codereview.chromium.org/1949233002/diff/40001/services/ui/view_manager/tests/view_manager_test.cc#newcode17 services/ui/view_manager/tests/view_manager_test.cc:17: static const base::TimeDelta kDefaultMessageDelay ...
4 years, 7 months ago (2016-05-10 19:15:15 UTC) #4
jeffbrown
https://codereview.chromium.org/1949233002/diff/40001/services/ui/view_manager/tests/view_manager_test.cc File services/ui/view_manager/tests/view_manager_test.cc (right): https://codereview.chromium.org/1949233002/diff/40001/services/ui/view_manager/tests/view_manager_test.cc#newcode121 services/ui/view_manager/tests/view_manager_test.cc:121: mojo::StrongBinding<mojo::ui::ViewAssociate> view_associate_binding( On 2016/05/10 19:15:15, jeffbrown wrote: > This ...
4 years, 7 months ago (2016-05-10 19:54:21 UTC) #5
mikejurka
https://codereview.chromium.org/1949233002/diff/40001/services/ui/view_manager/tests/view_manager_test.cc File services/ui/view_manager/tests/view_manager_test.cc (right): https://codereview.chromium.org/1949233002/diff/40001/services/ui/view_manager/tests/view_manager_test.cc#newcode17 services/ui/view_manager/tests/view_manager_test.cc:17: static const base::TimeDelta kDefaultMessageDelay = On 2016/05/10 19:15:14, jeffbrown ...
4 years, 7 months ago (2016-05-10 23:17:24 UTC) #6
mikejurka
4 years, 7 months ago (2016-05-11 00:12:03 UTC) #7
mikejurka
4 years, 7 months ago (2016-05-11 21:22:03 UTC) #8
mikejurka
So far i just have a change that adds a RegisterViewAssociate method.But learned a lot ...
4 years, 7 months ago (2016-05-11 22:29:12 UTC) #9
jeffbrown
https://codereview.chromium.org/1949233002/diff/240001/mojo/services/ui/views/interfaces/view_manager.mojom File mojo/services/ui/views/interfaces/view_manager.mojom (right): https://codereview.chromium.org/1949233002/diff/240001/mojo/services/ui/views/interfaces/view_manager.mojom#newcode73 mojo/services/ui/views/interfaces/view_manager.mojom:73: // The services provided by |view_associate| will be made ...
4 years, 7 months ago (2016-05-11 23:44:20 UTC) #10
mikejurka
https://codereview.chromium.org/1949233002/diff/240001/mojo/services/ui/views/interfaces/view_manager.mojom File mojo/services/ui/views/interfaces/view_manager.mojom (right): https://codereview.chromium.org/1949233002/diff/240001/mojo/services/ui/views/interfaces/view_manager.mojom#newcode73 mojo/services/ui/views/interfaces/view_manager.mojom:73: // The services provided by |view_associate| will be made ...
4 years, 7 months ago (2016-05-16 23:35:19 UTC) #11
jeffbrown
https://codereview.chromium.org/1949233002/diff/280001/mojo/services/ui/views/interfaces/view_manager.mojom File mojo/services/ui/views/interfaces/view_manager.mojom (right): https://codereview.chromium.org/1949233002/diff/280001/mojo/services/ui/views/interfaces/view_manager.mojom#newcode87 mojo/services/ui/views/interfaces/view_manager.mojom:87: OnViewAssociateConnectionError(string? label) => (); Returning the label is useful ...
4 years, 7 months ago (2016-05-17 00:44:49 UTC) #12
jeffbrown
FWIW, an empty interface will do for now. :) interface ViewAssociateOwner {};
4 years, 7 months ago (2016-05-17 00:50:01 UTC) #13
mikejurka
https://codereview.chromium.org/1949233002/diff/280001/services/ui/view_manager/view_associate_table.h File services/ui/view_manager/view_associate_table.h (right): https://codereview.chromium.org/1949233002/diff/280001/services/ui/view_manager/view_associate_table.h#newcode33 services/ui/view_manager/view_associate_table.h:33: const AssociateConnectionErrorCallback& connection_error_callback, On 2016/05/17 00:44:49, jeffbrown wrote: > ...
4 years, 7 months ago (2016-05-18 01:14:28 UTC) #14
mikejurka
4 years, 7 months ago (2016-05-18 01:52:00 UTC) #15
jeffbrown
Looking good! Nearly there. https://codereview.chromium.org/1949233002/diff/360001/mojo/services/ui/views/interfaces/view_associates.mojom File mojo/services/ui/views/interfaces/view_associates.mojom (right): https://codereview.chromium.org/1949233002/diff/360001/mojo/services/ui/views/interfaces/view_associates.mojom#newcode63 mojo/services/ui/views/interfaces/view_associates.mojom:63: [ServiceName="mojo::ui::ViewAssociateOwner"] Please add a comment ...
4 years, 7 months ago (2016-05-18 18:07:16 UTC) #16
jeffbrown
On your next patch, you should update the submit and description of this CL. Unfortunately ...
4 years, 7 months ago (2016-05-18 18:07:53 UTC) #17
mikejurka
https://codereview.chromium.org/1949233002/diff/360001/mojo/services/ui/views/interfaces/view_associates.mojom File mojo/services/ui/views/interfaces/view_associates.mojom (right): https://codereview.chromium.org/1949233002/diff/360001/mojo/services/ui/views/interfaces/view_associates.mojom#newcode63 mojo/services/ui/views/interfaces/view_associates.mojom:63: [ServiceName="mojo::ui::ViewAssociateOwner"] On 2016/05/18 18:07:16, jeffbrown wrote: > Please add ...
4 years, 7 months ago (2016-05-18 19:09:11 UTC) #19
mikejurka
4 years, 7 months ago (2016-05-18 21:22:18 UTC) #20
jeffbrown
lgtm However there seems to be something wrong with the Android build. You should try ...
4 years, 7 months ago (2016-05-18 21:29:30 UTC) #21
mikejurka
4 years, 7 months ago (2016-05-18 22:15:57 UTC) #23
Message was sent while issue was closed.
Committed patchset #22 (id:420001) manually as
dec9013739bd49292096072912197341fa056795 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698