Index: third_party/WebKit/Source/bindings/scripts/v8_attributes.py |
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_attributes.py b/third_party/WebKit/Source/bindings/scripts/v8_attributes.py |
index 96b8964d46a8f781f270a528c79b2ac3a8f90be0..d8559e82cb534e5c76545c9188820d7c6ed3b481 100644 |
--- a/third_party/WebKit/Source/bindings/scripts/v8_attributes.py |
+++ b/third_party/WebKit/Source/bindings/scripts/v8_attributes.py |
@@ -103,6 +103,9 @@ def attribute_context(interface, attribute): |
'activity_logging_world_list_for_getter': v8_utilities.activity_logging_world_list(attribute, 'Getter'), # [ActivityLogging] |
'activity_logging_world_list_for_setter': v8_utilities.activity_logging_world_list(attribute, 'Setter'), # [ActivityLogging] |
'activity_logging_world_check': v8_utilities.activity_logging_world_check(attribute), # [ActivityLogging] |
+ 'api_experiment_name': extended_attributes.get('APIExperimentEnabled'), # [APIExperimentEnabled] |
+ 'api_experiment_inherited_enabled': v8_utilities.api_experiment_enabled_function(interface), # [APIExperimentEnabled] |
+ 'api_experiment_enabled': v8_utilities.api_experiment_enabled_function(attribute), # [APIExperimentEnabled] |
haraken
2015/12/30 00:25:32
Alphabetical order.
Daniel Nishi
2015/12/30 22:05:50
Done.
|
'argument_cpp_type': idl_type.cpp_type_args(used_as_rvalue_type=True), |
'cached_attribute_validation_method': cached_attribute_validation_method, |
'conditional_string': conditional_string, |
@@ -509,7 +512,7 @@ def is_constructor_attribute(attribute): |
def update_constructor_attribute_context(interface, attribute, context): |
- context['needs_constructor_getter_callback'] = context['measure_as'] or context['deprecate_as'] |
+ context['needs_constructor_getter_callback'] = context['measure_as'] or context['deprecate_as'] or context['api_experiment_name'] |
# When the attribute name is the same as the interface name, do not generate |
# callback functions for each attribute and use |
# {{cpp_class}}ConstructorAttributeSetterCallback. Otherwise, generate |