Commit 18d37349 authored by foolip's avatar foolip Committed by Commit bot

Drop [RuntimeEnabled] for all IDL dictionaries

Like enums, typedefs, etc., dictionaries aren't observable unless used,
and the generated code does not change by removing [RuntimeEnabled].

R=bashi@chromium.org

Review-Url: https://codereview.chromium.org/2390483002
Cr-Commit-Position: refs/heads/master@{#427039}
parent cf4e7aeb
......@@ -54,6 +54,10 @@ def dictionary_context(dictionary, interfaces_info):
includes.clear()
includes.update(DICTIONARY_CPP_INCLUDES)
if 'RuntimeEnabled' in dictionary.extended_attributes:
raise Exception(
'Dictionary cannot be RuntimeEnabled: %s' % dictionary.name)
members = [member_context(dictionary, member)
for member in sorted(dictionary.members,
key=operator.attrgetter('name'))]
......
......@@ -4,9 +4,7 @@
// https://wicg.github.io/IntersectionObserver/#intersection-observer-init
[
RuntimeEnabled=IntersectionObserver
] dictionary IntersectionObserverInit {
dictionary IntersectionObserverInit {
Element? root = null;
DOMString rootMargin = "0px";
(double or sequence<double>) threshold = 0;
......
......@@ -4,9 +4,7 @@
// https://w3c.github.io/editing/input-events.html
[
RuntimeEnabled=InputEvent,
] dictionary InputEventInit : UIEventInit {
dictionary InputEventInit : UIEventInit {
DOMString inputType = "";
DOMString? data;
DataTransfer? dataTransfer;
......
......@@ -4,9 +4,7 @@
// https://w3c.github.io/pointerevents/#pointerevent-interface
[
RuntimeEnabled=PointerEvent,
] dictionary PointerEventInit : MouseEventInit {
dictionary PointerEventInit : MouseEventInit {
long pointerId = 0;
double width = 1;
double height = 1;
......
......@@ -3,8 +3,7 @@
// found in the LICENSE file.
// http://w3c.github.io/performance-timeline/#the-performance-observer-interface
[
RuntimeEnabled=PerformanceObserver,
] dictionary PerformanceObserverInit {
dictionary PerformanceObserverInit {
required sequence<DOMString> entryTypes;
};
......@@ -4,9 +4,7 @@
// https://www.w3.org/TR/image-capture/#PhotoSettings
[
RuntimeEnabled=ImageCapture
] dictionary PhotoSettings {
dictionary PhotoSettings {
MeteringMode whiteBalanceMode;
unsigned long colorTemperature;
MeteringMode exposureMode;
......
......@@ -4,9 +4,7 @@
// https://w3c.github.io/mediacapture-image/index.html#Point2D
[
RuntimeEnabled=ImageCapture
] dictionary Point2D {
dictionary Point2D {
float x = 0.0;
float y = 0.0;
};
......@@ -4,9 +4,7 @@
// https://github.com/WICG/indexed-db-observers/blob/gh-pages/EXPLAINER.md#options-argument
[
RuntimeEnabled=IDBObserver
] dictionary IDBObserverInit {
dictionary IDBObserverInit {
boolean transaction = false;
boolean values = false;
boolean noRecords = false;
......
......@@ -4,7 +4,6 @@
// https://w3c.github.io/mediacapture-main/#idl-def-mediatracksettings
[RuntimeEnabled=MediaGetSettings]
dictionary MediaTrackSettings {
long width;
long height;
......
......@@ -7,7 +7,6 @@
// NOTE: The names of this dictionary MUST be kept aligned with those in
// MediaTrackConstraintSet.idl.
[RuntimeEnabled=MediaConstraints]
dictionary MediaTrackSupportedConstraints {
boolean width = true;
boolean height = true;
......
......@@ -4,9 +4,7 @@
// https://w3c.github.io/browser-payment-api/#paymentcurrencyamount
[
RuntimeEnabled=PaymentRequest
] dictionary PaymentCurrencyAmount {
dictionary PaymentCurrencyAmount {
required DOMString currency;
required DOMString value;
DOMString currencySystem = "urn:iso:std:iso:4217";
......
......@@ -4,9 +4,7 @@
// https://w3c.github.io/browser-payment-api/#paymentdetails-dictionary
[
RuntimeEnabled=PaymentRequest
] dictionary PaymentDetails {
dictionary PaymentDetails {
PaymentItem total;
sequence<PaymentItem> displayItems;
sequence<PaymentShippingOption> shippingOptions;
......
......@@ -4,9 +4,7 @@
// https://w3c.github.io/browser-payment-api/#idl-def-paymentdetailsmodifier
[
RuntimeEnabled=PaymentRequest
] dictionary PaymentDetailsModifier {
dictionary PaymentDetailsModifier {
required sequence<DOMString> supportedMethods;
PaymentItem total;
sequence<PaymentItem> additionalDisplayItems;
......
......@@ -4,9 +4,7 @@
// https://w3c.github.io/browser-payment-api/specs/paymentrequest.html#paymentitem-dictionary
[
RuntimeEnabled=PaymentRequest
] dictionary PaymentItem {
dictionary PaymentItem {
required DOMString label;
required PaymentCurrencyAmount amount;
};
......@@ -4,9 +4,7 @@
// https://w3c.github.io/browser-payment-api/specs/paymentrequest.html#idl-def-paymentmethoddata
[
RuntimeEnabled=PaymentRequest
] dictionary PaymentMethodData {
dictionary PaymentMethodData {
required sequence<DOMString> supportedMethods;
object data;
};
......@@ -10,9 +10,7 @@ enum PaymentShippingType {
"pickup"
};
[
RuntimeEnabled=PaymentRequest
] dictionary PaymentOptions {
dictionary PaymentOptions {
[RuntimeEnabled=PaymentRequestPayerName] boolean requestPayerName = false;
boolean requestPayerEmail = false;
boolean requestPayerPhone = false;
......
......@@ -4,7 +4,5 @@
// https://w3c.github.io/browser-payment-api/specs/paymentrequest.html#idl-def-paymentrequestupdateevent
[
RuntimeEnabled=PaymentRequest
] dictionary PaymentRequestUpdateEventInit : EventInit {
dictionary PaymentRequestUpdateEventInit : EventInit {
};
......@@ -4,9 +4,7 @@
// https://w3c.github.io/browser-payment-api/#paymentshippingoption-dictionary
[
RuntimeEnabled=PaymentRequest
] dictionary PaymentShippingOption {
dictionary PaymentShippingOption {
required DOMString id;
required DOMString label;
required PaymentCurrencyAmount amount;
......
......@@ -3,9 +3,8 @@
// found in the LICENSE file.
// https://w3c.github.io/webvr/#interface-vrdisplayeventinit
[
OriginTrialEnabled=WebVR
] dictionary VRDisplayEventInit : EventInit {
dictionary VRDisplayEventInit : EventInit {
// TODO(foolip): |display| should be required and not nullable.
// https://crbug.com/647693
// https://github.com/w3c/webvr/issues/83
......
......@@ -5,9 +5,8 @@
typedef HTMLCanvasElement VRSource;
// http://mozvr.github.io/webvr-spec/webvr.html#vrlayer
[
OriginTrialEnabled=WebVR
] dictionary VRLayer {
dictionary VRLayer {
// The canvas to be presented to the VRDisplay
VRSource? source = null;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment