|
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
Total comments: 4
|
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
|
Total messages: 16 (4 generated)
|