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

Issue 1015033003: [Extension API Extern Generation] Auto-generate enums (Closed)

Created:
5 years, 9 months ago by Devlin
Modified:
5 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extension API Extern Generation] Auto-generate enums Enums used to simply be strings, but now we expose them (as string constants) on the api object as part of the extension bindings. As such, it's appropriate to have the externs generate an enum definition for them. BUG=469920 Committed: https://crrev.com/d68755a4852b0aca4520df3a0ba7ceef76625d34 Cr-Commit-Position: refs/heads/master@{#322086}

Patch Set 1 #

Patch Set 2 : Tests! #

Total comments: 6

Patch Set 3 : Tyler's #

Total comments: 6

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -15 lines) Patch
M tools/json_schema_compiler/idl_schema.py View 1 1 chunk +10 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/js_externs_generator.py View 1 2 4 chunks +29 lines, -15 lines 0 comments Download
A tools/json_schema_compiler/js_externs_generator_test.py View 1 2 3 1 chunk +114 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
Devlin
Now that we've got the base committed, we can start fixing those little things. :)
5 years, 9 months ago (2015-03-24 17:10:50 UTC) #2
Tyler Breisacher (Chromium)
Do we have any tests for this? It's simple enough that I don't think it ...
5 years, 9 months ago (2015-03-24 17:25:54 UTC) #4
Dan Beam
On 2015/03/24 17:25:54, Tyler Breisacher (Chromium) wrote: > Do we have any tests for this? ...
5 years, 9 months ago (2015-03-24 17:31:03 UTC) #5
Devlin
Tests added.
5 years, 9 months ago (2015-03-24 19:36:43 UTC) #9
Tyler Breisacher (Chromium)
On 2015/03/24 19:36:43, Devlin wrote: > Tests added. +1. I suggested a separate file because ...
5 years, 9 months ago (2015-03-24 20:02:36 UTC) #10
Tyler Breisacher (Chromium)
lgtm https://codereview.chromium.org/1015033003/diff/80001/tools/json_schema_compiler/js_externs_generator.py File tools/json_schema_compiler/js_externs_generator.py (right): https://codereview.chromium.org/1015033003/diff/80001/tools/json_schema_compiler/js_externs_generator.py#newcode73 tools/json_schema_compiler/js_externs_generator.py:73: value_lines.append(" %s: '%s'," % (value, value)) It seems ...
5 years, 9 months ago (2015-03-24 20:07:52 UTC) #11
Devlin
https://codereview.chromium.org/1015033003/diff/80001/tools/json_schema_compiler/js_externs_generator.py File tools/json_schema_compiler/js_externs_generator.py (right): https://codereview.chromium.org/1015033003/diff/80001/tools/json_schema_compiler/js_externs_generator.py#newcode73 tools/json_schema_compiler/js_externs_generator.py:73: value_lines.append(" %s: '%s'," % (value, value)) On 2015/03/24 20:07:52, ...
5 years, 9 months ago (2015-03-24 20:31:55 UTC) #12
Dan Beam
lgtm++ https://codereview.chromium.org/1015033003/diff/100001/tools/json_schema_compiler/js_externs_generator_test.py File tools/json_schema_compiler/js_externs_generator_test.py (right): https://codereview.chromium.org/1015033003/diff/100001/tools/json_schema_compiler/js_externs_generator_test.py#newcode11 tools/json_schema_compiler/js_externs_generator_test.py:11: nit: \n\n https://codereview.chromium.org/1015033003/diff/100001/tools/json_schema_compiler/js_externs_generator_test.py#newcode100 tools/json_schema_compiler/js_externs_generator_test.py:100: nit: \n\n https://codereview.chromium.org/1015033003/diff/100001/tools/json_schema_compiler/js_externs_generator_test.py#newcode109 tools/json_schema_compiler/js_externs_generator_test.py:109: ...
5 years, 9 months ago (2015-03-24 21:19:18 UTC) #13
Devlin
https://codereview.chromium.org/1015033003/diff/100001/tools/json_schema_compiler/js_externs_generator_test.py File tools/json_schema_compiler/js_externs_generator_test.py (right): https://codereview.chromium.org/1015033003/diff/100001/tools/json_schema_compiler/js_externs_generator_test.py#newcode11 tools/json_schema_compiler/js_externs_generator_test.py:11: On 2015/03/24 21:19:18, Dan Beam wrote: > nit: \n\n ...
5 years, 9 months ago (2015-03-24 21:26:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1015033003/120001
5 years, 9 months ago (2015-03-24 21:27:02 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:120001)
5 years, 9 months ago (2015-03-24 23:03:15 UTC) #18
commit-bot: I haz the power
5 years, 9 months ago (2015-03-24 23:04:41 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d68755a4852b0aca4520df3a0ba7ceef76625d34
Cr-Commit-Position: refs/heads/master@{#322086}

Powered by Google App Engine
This is Rietveld 408576698