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

Issue 2965803003: Mojo JS bindings: add support to generate "dual-mode" code. (Closed)

Created:
3 years, 5 months ago by yzshen1
Modified:
3 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, arv+watch_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, Reilly Grant (use Gerrit), viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, beccahughes
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo JS bindings: add support to generate "dual-mode" code. Previously, if mojom target A and B both depend on C, in order to convert A to the new mode, we need to convert C, and also all the targets that depend on C (i.e., B). With this CL, we could let target C generate code supporting both modes. That way B don't have to be touched in the same CL. TBR=brettw@chromium.org (For the changes in url/mojo/BUILD.gn) BUG=699569 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2965803003 Cr-Commit-Position: refs/heads/master@{#484145} Committed: https://chromium.googlesource.com/chromium/src/+/dc048bef86deaed860574f5d3a29b23f0c3e6c73

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -57 lines) Patch
M chrome/browser/resources/usb_internals/usb_internals.html View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/usb_internals/usb_internals.js View 1 2 2 chunks +8 lines, -20 lines 0 comments Download
M chrome/browser/ui/webui/usb_internals/BUILD.gn View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/usb_internals/usb_internals_ui.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl View 1 2 3 4 5 4 chunks +25 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/generators/js_templates/module_definition.tmpl View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_js_generator.py View 1 5 chunks +55 lines, -7 lines 0 comments Download
M mojo/public/tools/bindings/mojom.gni View 1 2 3 4 4 chunks +28 lines, -7 lines 0 comments Download
M mojo/public/tools/bindings/mojom_bindings_generator.py View 2 chunks +7 lines, -4 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/generator.py View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/vibration/vibration-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M url/mojo/BUILD.gn View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (23 generated)
yzshen1
Hi, Would you please take a look? Thanks! Ken - mojo/ Demetrios - webui-related code
3 years, 5 months ago (2017-06-30 22:04:09 UTC) #7
dpapad
WebUI LGTM with nit. https://codereview.chromium.org/2965803003/diff/20001/chrome/browser/resources/usb_internals/usb_internals.js File chrome/browser/resources/usb_internals/usb_internals.js (right): https://codereview.chromium.org/2965803003/diff/20001/chrome/browser/resources/usb_internals/usb_internals.js#newcode64 chrome/browser/resources/usb_internals/usb_internals.js:64: initializeProxies(); Nit: Can we inline ...
3 years, 5 months ago (2017-06-30 22:15:03 UTC) #8
Ken Rockot(use gerrit already)
lgtm
3 years, 5 months ago (2017-06-30 22:34:48 UTC) #9
yzshen1
Thanks! https://codereview.chromium.org/2965803003/diff/20001/chrome/browser/resources/usb_internals/usb_internals.js File chrome/browser/resources/usb_internals/usb_internals.js (right): https://codereview.chromium.org/2965803003/diff/20001/chrome/browser/resources/usb_internals/usb_internals.js#newcode64 chrome/browser/resources/usb_internals/usb_internals.js:64: initializeProxies(); On 2017/06/30 22:15:03, dpapad wrote: > Nit: ...
3 years, 5 months ago (2017-06-30 22:37:31 UTC) #11
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/2965803003/40001
3 years, 5 months ago (2017-06-30 22:37:55 UTC) #14
Reilly Grant (use Gerrit)
chrome://usb-internals changes lgtm and I generally like the direction of this patch though I got ...
3 years, 5 months ago (2017-06-30 23:21:13 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/401022)
3 years, 5 months ago (2017-06-30 23:31:26 UTC) #18
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/2965803003/80001
3 years, 5 months ago (2017-07-02 19:49:10 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/243869)
3 years, 5 months ago (2017-07-02 20:18:42 UTC) #23
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/2965803003/80001
3 years, 5 months ago (2017-07-03 17:34:23 UTC) #25
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/2965803003/100001
3 years, 5 months ago (2017-07-03 17:44:19 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/492877)
3 years, 5 months ago (2017-07-03 20:01:58 UTC) #31
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/2965803003/120001
3 years, 5 months ago (2017-07-04 17:18:35 UTC) #34
commit-bot: I haz the power
3 years, 5 months ago (2017-07-04 19:10:44 UTC) #37
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/dc048bef86deaed860574f5d3a29...

Powered by Google App Engine
This is Rietveld 408576698