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

Issue 2380303003: [Mojo] Make javascript enums extensible. (Closed)

Created:
4 years, 2 months ago by mbjorge
Modified:
4 years, 2 months ago
CC:
Aaron Boodman, abarth-chromium, alokp, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mojo] Make javascript enums extensible. BUG=581390 TEST=mojo_js_unittests

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make Enum a codec type #

Total comments: 3

Patch Set 3 : Fix whitespace issues #

Patch Set 4 : Rebased #

Patch Set 5 : Fix enums nested in structs #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -12 lines) Patch
M mojo/public/js/codec.js View 1 2 chunks +15 lines, -0 lines 0 comments Download
M mojo/public/js/validation_unittests.js View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M mojo/public/js/validator.js View 1 3 chunks +14 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/js_templates/enum_definition.tmpl View 1 2 1 chunk +26 lines, -6 lines 0 comments Download
M mojo/public/tools/bindings/generators/js_templates/validation_macros.tmpl View 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_js_generator.py View 1 2 3 4 7 chunks +19 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (14 generated)
mbjorge
https://codereview.chromium.org/2380303003/diff/1/mojo/public/tools/bindings/generators/mojom_js_generator.py File mojo/public/tools/bindings/generators/mojom_js_generator.py (right): https://codereview.chromium.org/2380303003/diff/1/mojo/public/tools/bindings/generators/mojom_js_generator.py#newcode141 mojo/public/tools/bindings/generators/mojom_js_generator.py:141: def ElementCodecType(kind): I wasn't totally sure if this was ...
4 years, 2 months ago (2016-09-30 19:10:48 UTC) #2
Ken Rockot(use gerrit already)
Looks pretty good, just one suggestion inline https://codereview.chromium.org/2380303003/diff/1/mojo/public/tools/bindings/generators/mojom_js_generator.py File mojo/public/tools/bindings/generators/mojom_js_generator.py (right): https://codereview.chromium.org/2380303003/diff/1/mojo/public/tools/bindings/generators/mojom_js_generator.py#newcode141 mojo/public/tools/bindings/generators/mojom_js_generator.py:141: def ElementCodecType(kind): ...
4 years, 2 months ago (2016-09-30 21:14:38 UTC) #4
mbjorge
On 2016/09/30 at 21:14:38, rockot wrote: > Looks pretty good, just one suggestion inline > ...
4 years, 2 months ago (2016-09-30 21:36:49 UTC) #5
Ken Rockot(use gerrit already)
LGTM! Thanks https://codereview.chromium.org/2380303003/diff/20001/mojo/public/tools/bindings/generators/js_templates/enum_definition.tmpl File mojo/public/tools/bindings/generators/js_templates/enum_definition.tmpl (right): https://codereview.chromium.org/2380303003/diff/20001/mojo/public/tools/bindings/generators/js_templates/enum_definition.tmpl#newcode16 mojo/public/tools/bindings/generators/js_templates/enum_definition.tmpl:16: switch (value) { nit: 2 space indentation, ...
4 years, 2 months ago (2016-09-30 21:51:54 UTC) #6
mbjorge
https://codereview.chromium.org/2380303003/diff/20001/mojo/public/tools/bindings/generators/mojom_js_generator.py File mojo/public/tools/bindings/generators/mojom_js_generator.py (right): https://codereview.chromium.org/2380303003/diff/20001/mojo/public/tools/bindings/generators/mojom_js_generator.py#newcode134 mojo/public/tools/bindings/generators/mojom_js_generator.py:134: return "new codec.%s(%s)" % (enum_type, element_type) On 2016/09/30 at ...
4 years, 2 months ago (2016-09-30 22:14:51 UTC) #7
mbjorge
> https://codereview.chromium.org/2380303003/diff/20001/mojo/public/tools/bindings/generators/js_templates/enum_definition.tmpl#newcode16 > mojo/public/tools/bindings/generators/js_templates/enum_definition.tmpl:16: switch (value) { > nit: 2 space indentation, not 4. Note, ...
4 years, 2 months ago (2016-09-30 22:16:14 UTC) #8
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/2380303003/40001
4 years, 2 months ago (2016-10-03 16:19:28 UTC) #11
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/79139) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 2 months ago (2016-10-03 16:21:21 UTC) #13
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/2380303003/60001
4 years, 2 months ago (2016-10-03 16:55:46 UTC) #16
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/308637)
4 years, 2 months ago (2016-10-03 18:06:04 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/2380303003/80001
4 years, 2 months ago (2016-10-05 17:51:04 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/280805) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 2 months ago (2016-10-05 17:54:07 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/2380303003/100001
4 years, 2 months ago (2016-10-05 17:58:58 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/43109) cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 2 months ago (2016-10-05 18:03:09 UTC) #28
mbjorge
4 years, 2 months ago (2016-10-05 18:55:41 UTC) #29
Not sure what I've done, but I seem to not be able to push a patchset CQ likes.
Going to abandon this CL and move it to a fresh place:
https://codereview.chromium.org/2394873003

Powered by Google App Engine
This is Rietveld 408576698