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

Issue 1034553003: [Extension API Extern Generation] Fix array, choices specification (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] Fix array specification Instead of simply outputting "Array", we now output the type of the array (e.g., Array<number> or Array<MyCustomType>). Additionally, arrays should not be nullable. Choices (e.g., (DOMString or number) in an .idl) are also now supported. BUG=461039 Committed: https://crrev.com/bde8f5743aa2891cd8f9578c281e50bfd05ca640 Cr-Commit-Position: refs/heads/master@{#322110}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Handle 'any' and make enums non-null #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -7 lines) Patch
M tools/json_schema_compiler/js_externs_generator.py View 1 1 chunk +7 lines, -2 lines 0 comments Download
M tools/json_schema_compiler/js_externs_generator_test.py View 1 2 3 chunks +16 lines, -5 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
Devlin
Next! :)
5 years, 9 months ago (2015-03-24 22:41:22 UTC) #4
Dan Beam
what about any[]?
5 years, 9 months ago (2015-03-24 22:44:45 UTC) #5
Tyler Breisacher (Chromium)
I didn't really look at the code, just the test, so I'll let Dan officially ...
5 years, 9 months ago (2015-03-24 22:45:03 UTC) #6
Devlin
On 2015/03/24 22:44:45, Dan Beam wrote: > what about any[]? Before, any would fall into ...
5 years, 9 months ago (2015-03-24 23:10:22 UTC) #8
Devlin
https://codereview.chromium.org/1034553003/diff/40001/tools/json_schema_compiler/js_externs_generator_test.py File tools/json_schema_compiler/js_externs_generator_test.py (right): https://codereview.chromium.org/1034553003/diff/40001/tools/json_schema_compiler/js_externs_generator_test.py#newcode91 tools/json_schema_compiler/js_externs_generator_test.py:91: * enumArr: !Array<chrome.fakeApi.Greek>, On 2015/03/24 22:45:03, Tyler Breisacher (Chromium) ...
5 years, 9 months ago (2015-03-24 23:10:37 UTC) #9
Dan Beam
lgtm though handling just Array<> (instead of always !Array<>) might be useful as well if ...
5 years, 9 months ago (2015-03-25 00:08:18 UTC) #10
Devlin
On 2015/03/25 00:08:18, Dan Beam wrote: > lgtm though handling just Array<> (instead of always ...
5 years, 9 months ago (2015-03-25 00:17:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1034553003/100001
5 years, 9 months ago (2015-03-25 01:51:51 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:100001)
5 years, 9 months ago (2015-03-25 01:57:56 UTC) #15
commit-bot: I haz the power
5 years, 9 months ago (2015-03-25 01:58:33 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bde8f5743aa2891cd8f9578c281e50bfd05ca640
Cr-Commit-Position: refs/heads/master@{#322110}

Powered by Google App Engine
This is Rietveld 408576698