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

Issue 1027603002: Dart: Removes all but native calls and the handle watcher from the snapshot. (Closed)

Created:
5 years, 9 months ago by zra
Modified:
5 years, 9 months ago
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, ojan, Cutch
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Dart: Removes all but native calls and the handle watcher from the snapshot. The bindings, core, and application libraries are now referred to as, e.g.: package:mojo/public/dart/core.dart Since the handle watcher remains in the snapshot, it no longer refers to types defined in core.dart. References to types defined in core.dart are also removed from mojo_natives.cc. In Dart packaged apps, the SDK is zipped up under mojo/public/dart. For embedder tests, the SDK is copied into the generated source output directory. A base_dir parameter is added to the 'dart_package' and 'mojom' GN macros so that consumers of the Mojo SDK can all import using the same URIs regardless of where the SDK lives in their source trees. BUG= R=erg@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/92c2402531955da1f48a18c986f24aa21a50cc77

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Fix SDK base dir for modular #

Patch Set 5 : Fix SDK dir for SDK mojoms in Modular #

Total comments: 2

Patch Set 6 : Small cleanups #

Patch Set 7 : git cl format #

Total comments: 4

Patch Set 8 : Hoist application interface dependence #

Unified diffs Side-by-side diffs Delta from patch set Stats (+660 lines, -751 lines) Patch
M examples/dart/console_example/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M examples/dart/console_example/main.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M examples/dart/hello_world/hello/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M examples/dart/hello_world/hello/main.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M examples/dart/hello_world/world/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M examples/dart/hello_world/world/main.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M examples/dart/wget/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M examples/dart/wget/main.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/dart/apptest/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M mojo/dart/apptest/apptest/apptest.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M mojo/dart/embedder/BUILD.gn View 5 chunks +5 lines, -19 lines 0 comments Download
M mojo/dart/embedder/builtin.h View 1 chunk +1 line, -2 lines 0 comments Download
M mojo/dart/embedder/builtin.cc View 1 2 3 4 5 6 1 chunk +16 lines, -14 lines 0 comments Download
M mojo/dart/embedder/builtin.dart View 1 2 3 4 5 6 12 chunks +11 lines, -27 lines 0 comments Download
D mojo/dart/embedder/core/buffer_patch.dart View 1 chunk +0 lines, -4 lines 0 comments Download
D mojo/dart/embedder/core/data_pipe_patch.dart View 1 chunk +0 lines, -4 lines 0 comments Download
D mojo/dart/embedder/core/handle_patch.dart View 1 chunk +0 lines, -4 lines 0 comments Download
D mojo/dart/embedder/core/handle_watcher_patch.dart View 1 chunk +0 lines, -4 lines 0 comments Download
D mojo/dart/embedder/core/message_pipe_patch.dart View 1 chunk +0 lines, -4 lines 0 comments Download
A + mojo/dart/embedder/core/natives_patch.dart View 1 chunk +0 lines, -1 line 0 comments Download
M mojo/dart/embedder/dart_controller.cc View 1 2 3 4 5 6 9 chunks +23 lines, -46 lines 0 comments Download
M mojo/dart/embedder/mojo_natives.cc View 6 chunks +13 lines, -49 lines 0 comments Download
M mojo/dart/embedder/test/BUILD.gn View 5 chunks +35 lines, -18 lines 0 comments Download
M mojo/dart/embedder/test/dart_to_cpp_tests.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/dart/embedder/test/test_snapshot.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M mojo/dart/test/async_await_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M mojo/dart/test/bindings_generation_test.dart View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/dart/test/codec_test.dart View 1 2 3 4 5 6 27 chunks +163 lines, -96 lines 0 comments Download
M mojo/dart/test/compile_all_interfaces_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/dart/test/core_test.dart View 1 2 3 4 5 6 9 chunks +20 lines, -25 lines 0 comments Download
M mojo/dart/test/exception_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M mojo/dart/test/handle_finalizer_test.dart View 1 chunk +1 line, -2 lines 0 comments Download
M mojo/dart/test/handle_watcher_test.dart View 1 2 3 4 5 6 6 chunks +6 lines, -13 lines 0 comments Download
M mojo/dart/test/import_mojo.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/dart/test/ping_pong_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M mojo/dart/test/simple_handle_watcher_test.dart View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M mojo/dart/test/uri_base_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M mojo/dart/test/validation_test.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A mojo/public/dart/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +33 lines, -0 lines 0 comments Download
M mojo/public/dart/application.dart View 1 2 3 4 5 6 1 chunk +6 lines, -4 lines 0 comments Download
M mojo/public/dart/bindings.dart View 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/dart/core.dart View 2 chunks +1 line, -2 lines 0 comments Download
A + mojo/public/dart/internal.dart View 1 chunk +6 lines, -8 lines 0 comments Download
M mojo/public/dart/rules.gni View 2 chunks +4 lines, -42 lines 0 comments Download
M mojo/public/dart/src/buffer.dart View 1 2 3 4 5 6 5 chunks +8 lines, -27 lines 0 comments Download
M mojo/public/dart/src/data_pipe.dart View 1 2 3 4 5 6 8 chunks +8 lines, -31 lines 0 comments Download
M mojo/public/dart/src/event_stream.dart View 4 chunks +10 lines, -5 lines 0 comments Download
M mojo/public/dart/src/handle.dart View 1 2 3 4 5 6 4 chunks +13 lines, -16 lines 0 comments Download
M mojo/public/dart/src/handle_watcher.dart View 1 2 3 4 5 6 13 chunks +70 lines, -78 lines 0 comments Download
M mojo/public/dart/src/message_pipe.dart View 4 chunks +3 lines, -13 lines 0 comments Download
A mojo/public/dart/src/natives.dart View 1 2 3 4 5 6 1 chunk +70 lines, -0 lines 0 comments Download
M mojo/public/dart/src/timer_queue.dart View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/interfaces/application/BUILD.gn View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl View 1 chunk +3 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/mojom.gni View 1 2 3 4 1 chunk +8 lines, -1 line 0 comments Download
M services/dart/BUILD.gn View 3 chunks +4 lines, -24 lines 0 comments Download
M services/dart/dart_apptests/echo_apptests.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M services/dart/dart_apptests/pingpong_apptests.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M services/dart/snapshot.dart View 1 chunk +2 lines, -4 lines 0 comments Download
M services/dart/test/echo/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M services/dart/test/echo/main.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M services/dart/test/pingpong/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M services/dart/test/pingpong/main.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M services/dart/test/pingpong_target/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M services/dart/test/pingpong_target/main.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M sky/engine/bindings/BUILD.gn View 3 chunks +4 lines, -20 lines 0 comments Download
M sky/engine/bindings/builtin.h View 1 chunk +1 line, -2 lines 0 comments Download
M sky/engine/bindings/builtin.cc View 1 2 3 4 5 6 1 chunk +5 lines, -3 lines 0 comments Download
M sky/engine/bindings/mojo_natives.cc View 6 chunks +14 lines, -48 lines 0 comments Download
M sky/engine/bindings/snapshot.dart View 1 chunk +1 line, -2 lines 0 comments Download
M sky/engine/core/script/dart_controller.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M sky/framework/embedder.dart View 1 2 3 4 5 6 2 chunks +7 lines, -5 lines 0 comments Download
M sky/tests/services/iframe-embed-vmc.sky View 1 chunk +2 lines, -2 lines 0 comments Download
M sky/tests/services/network.sky View 1 chunk +2 lines, -2 lines 0 comments Download
M tools/dart/patch_sdk.diff View 1 1 chunk +3 lines, -15 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
zra
This is the refactoring we discussed on Wednesday. There are lots of files, but it ...
5 years, 9 months ago (2015-03-20 21:56:25 UTC) #2
Elliot Glaysher
https://codereview.chromium.org/1027603002/diff/100001/examples/dart/console_example/BUILD.gn File examples/dart/console_example/BUILD.gn (right): https://codereview.chromium.org/1027603002/diff/100001/examples/dart/console_example/BUILD.gn#newcode13 examples/dart/console_example/BUILD.gn:13: "//mojo/public/interfaces/application", console_example doesn't use //mojo/public/interfaces/application directly, yet it needs ...
5 years, 9 months ago (2015-03-20 22:16:03 UTC) #3
zra
https://codereview.chromium.org/1027603002/diff/100001/examples/dart/console_example/BUILD.gn File examples/dart/console_example/BUILD.gn (right): https://codereview.chromium.org/1027603002/diff/100001/examples/dart/console_example/BUILD.gn#newcode13 examples/dart/console_example/BUILD.gn:13: "//mojo/public/interfaces/application", On 2015/03/20 22:16:02, Elliot Glaysher wrote: > console_example ...
5 years, 9 months ago (2015-03-20 23:00:46 UTC) #4
zra
+johnmccutchan Forgot to CC
5 years, 9 months ago (2015-03-20 23:05:14 UTC) #5
Elliot Glaysher
https://codereview.chromium.org/1027603002/diff/100001/examples/dart/console_example/BUILD.gn File examples/dart/console_example/BUILD.gn (right): https://codereview.chromium.org/1027603002/diff/100001/examples/dart/console_example/BUILD.gn#newcode13 examples/dart/console_example/BUILD.gn:13: "//mojo/public/interfaces/application", On 2015/03/20 23:00:46, zra wrote: > On 2015/03/20 ...
5 years, 9 months ago (2015-03-20 23:05:41 UTC) #6
zra
https://codereview.chromium.org/1027603002/diff/100001/examples/dart/console_example/BUILD.gn File examples/dart/console_example/BUILD.gn (right): https://codereview.chromium.org/1027603002/diff/100001/examples/dart/console_example/BUILD.gn#newcode13 examples/dart/console_example/BUILD.gn:13: "//mojo/public/interfaces/application", On 2015/03/20 23:05:40, Elliot Glaysher wrote: > On ...
5 years, 9 months ago (2015-03-23 14:27:40 UTC) #7
Elliot Glaysher
lgtm then (I still feel like that should be analogous to a duplicate symbol error ...
5 years, 9 months ago (2015-03-23 17:43:17 UTC) #8
zra
On 2015/03/23 17:43:17, Elliot Glaysher wrote: > lgtm then > > (I still feel like ...
5 years, 9 months ago (2015-03-23 18:00:58 UTC) #9
zra
5 years, 9 months ago (2015-03-23 18:04:09 UTC) #10
Message was sent while issue was closed.
Committed patchset #8 (id:120001) manually as
92c2402531955da1f48a18c986f24aa21a50cc77 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698