|
|
Add constants and primitive type readonly attributes to Python IDL compiler
This adds constants to the Python IDL compiler.
As there are no files with only constants, to have real test cases I've
also supported primitive type readonly attributes (currently only have
wrapped readonly attributes),
also moving attribute templates into a macro file.
This allows us to move the following 3 files to Python:
* MallocStatistics.idl
* MemoryInfo.idl
* PerformanceNavigation.idl
The Python generates exactly the same code as the Perl.
About 80 IDL files use constants, but usual other elements as well.
BUG= 239771
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156763
Total comments: 68
Total comments: 25
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+545 lines, -215 lines) |
Patch |
 |
M |
Source/bindings/derived_sources.gyp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/scripts/code_generator_v8.py
|
View
|
1
2
3
4
5
|
11 chunks |
+120 lines, -40 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/scripts/deprecated_code_generator_v8.pm
|
View
|
1
2
3
4
5
|
7 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
A |
Source/bindings/templates/attributes.cpp
|
View
|
1
2
3
4
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/templates/callback_interface.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
Source/bindings/templates/constants.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/templates/interface.cpp
|
View
|
1
2
3
4
5
|
4 chunks |
+20 lines, -28 lines |
0 comments
|
Download
|
 |
A + |
Source/bindings/tests/idls/TestConstants.idl
|
View
|
1
2
3
|
1 chunk |
+22 lines, -15 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/idls/TestObject.idl
|
View
|
1
2
3
|
1 chunk |
+0 lines, -14 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8Float64Array.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestActiveDOMObject.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A + |
Source/bindings/tests/results/V8TestConstants.h
|
View
|
1
2
3
|
1 chunk |
+29 lines, -29 lines |
0 comments
|
Download
|
 |
A |
Source/bindings/tests/results/V8TestConstants.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+191 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestCustomAccessors.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestEvent.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
|
Source/bindings/tests/results/V8TestEventConstructor.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestEventTarget.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
|
Source/bindings/tests/results/V8TestException.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestExtendedEvent.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterface.cpp
|
View
|
1
2
3
4
5
|
4 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceEmpty.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceImplementedAs.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
|
Source/bindings/tests/results/V8TestMediaQueryListListener.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestNamedConstructor.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestNode.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestObject.cpp
|
View
|
1
2
3
4
5
|
5 chunks |
+7 lines, -31 lines |
0 comments
|
Download
|
 |
|
Source/bindings/tests/results/V8TestOverloadedConstructors.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestSerializedScriptValueInterface.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestTypedefs.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/core.gypi
|
View
|
1
2
3
4
5
|
4 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|