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

Issue 854113002: IDL: Enumeration support in union types (Closed)

Created:
5 years, 11 months ago by bashi
Modified:
5 years, 11 months ago
Reviewers:
haraken, Jens Widell
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

IDL: Enumeration support in union types We should be able to use an enumeration type as a union member type. It is treated as a DOMString, with value checking. A union type container which has a enum member type validates its value when it is set (both JS and C++). BUG=240176 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188543

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -1 line) Patch
M LayoutTests/fast/dom/idl-union-type-unittest.html View 1 chunk +12 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/idl-union-type-unittest-expected.txt View 1 chunk +7 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_union.py View 1 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/templates/union.cpp View 1 2 chunks +14 lines, -0 lines 0 comments Download
M Source/bindings/tests/idls/core/TestObject.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/core/UnionTypesCore.h View 1 chunk +46 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/UnionTypesCore.cpp View 1 chunk +82 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 2 chunks +34 lines, -0 lines 0 comments Download
M Source/core/testing/UnionTypesTest.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/testing/UnionTypesTest.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/testing/UnionTypesTest.idl View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
bashi
PTAL? Example use of this feature(from Fredrik Söderquist): http://dev.w3.org/html5/webvtt/#the-vttcue-interface
5 years, 11 months ago (2015-01-16 09:30:31 UTC) #2
Jens Widell
https://codereview.chromium.org/854113002/diff/1/Source/bindings/scripts/v8_union.py File Source/bindings/scripts/v8_union.py (right): https://codereview.chromium.org/854113002/diff/1/Source/bindings/scripts/v8_union.py#newcode99 Source/bindings/scripts/v8_union.py:99: elif member.is_enum: If there's an enum type in the ...
5 years, 11 months ago (2015-01-16 09:53:51 UTC) #3
bashi
Thank you for review! https://codereview.chromium.org/854113002/diff/1/Source/bindings/scripts/v8_union.py File Source/bindings/scripts/v8_union.py (right): https://codereview.chromium.org/854113002/diff/1/Source/bindings/scripts/v8_union.py#newcode99 Source/bindings/scripts/v8_union.py:99: elif member.is_enum: On 2015/01/16 09:53:51, ...
5 years, 11 months ago (2015-01-16 10:11:58 UTC) #4
bashi
On 2015/01/16 10:11:58, bashi1 wrote: > Thank you for review! > > https://codereview.chromium.org/854113002/diff/1/Source/bindings/scripts/v8_union.py > File ...
5 years, 11 months ago (2015-01-16 10:19:46 UTC) #5
bashi
Revised the CL. Could you take another look?
5 years, 11 months ago (2015-01-16 10:23:39 UTC) #6
Jens Widell
LGTM!
5 years, 11 months ago (2015-01-16 10:39:33 UTC) #7
bashi
Thanks!
5 years, 11 months ago (2015-01-16 11:03:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/854113002/20001
5 years, 11 months ago (2015-01-16 11:05:00 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/24358)
5 years, 11 months ago (2015-01-16 11:11:28 UTC) #12
haraken
LGTM
5 years, 11 months ago (2015-01-16 13:04:15 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/854113002/20001
5 years, 11 months ago (2015-01-16 16:13:21 UTC) #15
commit-bot: I haz the power
5 years, 11 months ago (2015-01-16 21:51:30 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188543

Powered by Google App Engine
This is Rietveld 408576698