|
|
IDL: Basic dictionary inheritance support
There are some specs that use dictionary inheritance.
This CL is the first step to add dictionary inheritance support.
Suppose we have following definitions:
dictionary Base { long baseMember; };
dictionary Derived : Base { DOMString derivedMember; };
The code generator will create "Derived" impl class which inherits
from "Base". "Derived" class has accessor methods for "baseMember"
along with those of "derivedMember".
Blink developers can use derived dictionaries as method arguments
and can upcast them. However, there is no way to downcast a base
dictionary to a derived dictionary for now. Following CLs should
support downcasting.
BUG= 321462
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185600
Total comments: 5
Total comments: 16
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+353 lines, -44 lines) |
Patch |
 |
M |
LayoutTests/fast/dom/idl-dictionary-unittest.html
|
View
|
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt
|
View
|
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/scripts/code_generator_v8.py
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/scripts/v8_dictionary.py
|
View
|
1
2
|
3 chunks |
+24 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/scripts/v8_utilities.py
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/templates/dictionary_impl.h
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/templates/dictionary_impl.cpp
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/templates/dictionary_v8.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/templates/dictionary_v8.cpp
|
View
|
1
2
|
2 chunks |
+17 lines, -3 lines |
0 comments
|
Download
|
 |
A |
Source/bindings/tests/idls/core/TestDictionaryDerived.idl
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/core/TestDictionary.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
Source/bindings/tests/results/core/TestDictionaryDerived.h
|
View
|
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
 |
A |
Source/bindings/tests/results/core/TestDictionaryDerived.cpp
|
View
|
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/core/V8TestDictionary.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/core/V8TestDictionary.cpp
|
View
|
1
2
|
1 chunk |
+28 lines, -23 lines |
0 comments
|
Download
|
 |
A + |
Source/bindings/tests/results/core/V8TestDictionaryDerived.h
|
View
|
1
2
|
1 chunk |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
A |
Source/bindings/tests/results/core/V8TestDictionaryDerived.cpp
|
View
|
1
2
|
1 chunk |
+75 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/core.gyp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/core.gypi
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/testing/DictionaryTest.h
|
View
|
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/testing/DictionaryTest.cpp
|
View
|
|
3 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/testing/DictionaryTest.idl
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
A |
Source/core/testing/InternalDictionaryDerived.idl
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
Total messages: 12 (3 generated)
|