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

Issue 803173009: Mojo JS Bindings: Eliminate foo$ Stub and Proxy class members (Closed)

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

Description

Mojo JS Bindings: Eliminate foo$ and Stub and Proxy class members Warning: this change will require Chrome changes. See https://codereview.chromium.org/803173009/#msg6. Added ProxyBindings and StubBindings methods that expose bindings-related properties for generated Proxy and Stub classes without risking name collisions. Outgoing "in/out" interface valued parameters are now specified as functions that are applied to the out value. Note: the leading capital in the Proxy,StubBindings() methods is unconventional. It seemed OK given their unusual role: they can be viewed as transformers from "Foo" objects to "FooBindings" objects. BUG= R=esprehn@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/8628fc37e38c1986a2fd8ca97f99ce3906b2cc30

Patch Set 1 #

Total comments: 10

Patch Set 2 : Changes per review feedback #

Patch Set 3 : Split the Users Guide out of js examples README #

Patch Set 4 : A few more user guide revisions #

Patch Set 5 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -544 lines) Patch
M examples/js/README.md View 1 2 1 chunk +2 lines, -373 lines 0 comments Download
A + examples/js/users-guide.md View 1 2 3 16 chunks +118 lines, -90 lines 0 comments Download
M examples/js/wget.js View 1 chunk +2 lines, -3 lines 0 comments Download
A mojo/public/js/bindings.js View 1 1 chunk +100 lines, -0 lines 0 comments Download
M mojo/public/js/connection.js View 3 chunks +22 lines, -39 lines 0 comments Download
M mojo/public/js/constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/js/constants.cc View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/sky/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl View 1 2 chunks +8 lines, -10 lines 0 comments Download
M mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl View 2 chunks +2 lines, -1 line 0 comments Download
M mojo/public/tools/bindings/generators/js_templates/module.sky.tmpl View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/services/public/js/service_provider.js View 4 chunks +14 lines, -9 lines 0 comments Download
M mojo/services/public/js/shell.js View 3 chunks +11 lines, -6 lines 0 comments Download
M services/js/test/network_test.js View 1 chunk +3 lines, -3 lines 0 comments Download
M services/js/test/pingpong.js View 3 chunks +7 lines, -3 lines 0 comments Download
M sky/framework/shell.sky View 1 chunk +1 line, -7 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
hansmuller1
This change had a bigger impact that I'd anticipated at first. In addition to eliminating ...
6 years ago (2014-12-23 19:30:56 UTC) #3
esprehn
lgtm, this looks like a great simplification to me. https://codereview.chromium.org/803173009/diff/1/mojo/public/js/bindings.js File mojo/public/js/bindings.js (right): https://codereview.chromium.org/803173009/diff/1/mojo/public/js/bindings.js#newcode52 mojo/public/js/bindings.js:52: ...
5 years, 11 months ago (2014-12-29 22:00:44 UTC) #4
hansmuller1
Thanks for suggesting this change. https://codereview.chromium.org/803173009/diff/1/mojo/public/js/bindings.js File mojo/public/js/bindings.js (right): https://codereview.chromium.org/803173009/diff/1/mojo/public/js/bindings.js#newcode52 mojo/public/js/bindings.js:52: // Mojo interface name ...
5 years, 11 months ago (2014-12-29 23:14:11 UTC) #5
hansmuller1
I've tested this CL with Chrome. Some minor Chrome changes are needed. A diff follows. ...
5 years, 11 months ago (2015-01-05 20:25:17 UTC) #6
hansmuller
5 years, 11 months ago (2015-01-05 20:46:19 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
8628fc37e38c1986a2fd8ca97f99ce3906b2cc30 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698