|
IDL: Support 'stringifier' keyword
Usable in one of these forms:
stringifier;
stringifier DOMString ();
stringifier DOMString name();
stringifier attribute DOMString name;
All cause a toString() method to be defined on the interface automatically.
The first two are equivalent, and call CPPClass::toString() to retrieve the
string value. The latter two use CPPClass::name() to retrieve the string
value and also declare a regular attribute and operation, respectively.
Changed all simple "DOMString toString()" occurrences in IDL files to use
"stringifier" instead.
BUG= 306606
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176833
Total comments: 5
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+157 lines, -5 lines) |
Patch |
|
M |
Source/bindings/scripts/idl_definitions.py
|
View
|
1
2
3
|
5 chunks |
+44 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/v8_interface.py
|
View
|
1
2
3
|
2 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/idls/TestInterface.idl
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/idls/TestInterface2.idl
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/idls/TestObject.idl
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestInterface.cpp
|
View
|
1
2
|
2 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestInterface2.cpp
|
View
|
|
2 chunks |
+28 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestObject.cpp
|
View
|
1
2
|
3 chunks |
+44 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/css/WebKitCSSMatrix.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/DOMTokenList.idl
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/Range.idl
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/frame/Window.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/page/Selection.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 14 (0 generated)
|