|
Make [OriginTrialEnabled] and [RuntimeEnabled] mutually exclusive
The original intent of the [OriginTrialEnabled] extended attribute was
that it would be used as a drop-in replacement for [RuntimeEnabled]. The
implementation for enabling via origin trials includes a check for
runtime feature flags, so there is no need to use both attributes. When
implemented, a bug actually made both attributes required, in order to
generate the desired bindings code.
This CL fixes the bug so that the [RuntimeEnabled] attribute is not
required. An explicit check was added to cause an error if both
attributes are used on the same IDL member. The goal of the check is
avoid confusion - the intended usage of experimental features should be
clearer by marking with [RuntimeEnabled] vs [OriginTrialEnabled].
The implementation was also refactored, as the bindings logic was
mostly copy/paste reuse across attributes, constants, interfaces
and methods. The logic is more centralized now, similar to the approach
for the [MeasureAs] attribute.
BUG= 586594
Committed: https://crrev.com/0c7efcf9ce5d2223c6aba69b94be77da64adea2b
Cr-Commit-Position: refs/heads/master@{#386080}
Total comments: 16
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+121 lines, -157 lines) |
Patch |
|
M |
third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -4 lines |
2 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/scripts/v8_attributes.py
|
View
|
1
2
3
|
4 chunks |
+2 lines, -12 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/scripts/v8_interface.py
|
View
|
1
2
3
|
5 chunks |
+4 lines, -18 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/scripts/v8_methods.py
|
View
|
1
2
3
4
|
3 chunks |
+1 line, -10 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/scripts/v8_utilities.py
|
View
|
1
2
3
|
2 chunks |
+37 lines, -21 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/templates/attributes.cpp
|
View
|
1
2
3
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/templates/constants.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/templates/methods.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/templates/utilities.cpp
|
View
|
1
2
3
|
1 chunk |
+6 lines, -14 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl
|
View
|
1
2
3
4
|
4 chunks |
+13 lines, -13 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
View
|
1
2
3
4
|
12 chunks |
+48 lines, -48 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/bluetooth/Bluetooth.idl
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/bluetooth/BluetoothAdvertisingData.idl
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/bluetooth/BluetoothCharacteristicProperties.idl
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.idl
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.idl
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.idl
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.idl
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/bluetooth/BluetoothUUID.idl
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/bluetooth/NavigatorBluetooth.idl
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 23 (9 generated)
|