Chromium Code Reviews| Index: Source/bindings/scripts/unstable/v8_utilities.py |
| diff --git a/Source/bindings/scripts/unstable/v8_utilities.py b/Source/bindings/scripts/unstable/v8_utilities.py |
| index d44cd53d8679d7d887a90c94183aac817f15bd8c..89481b5eb12428d186659941df2bb3fe4e10f26b 100644 |
| --- a/Source/bindings/scripts/unstable/v8_utilities.py |
| +++ b/Source/bindings/scripts/unstable/v8_utilities.py |
| @@ -141,6 +141,15 @@ def generate_deprecate_as(member, contents, includes): |
| includes.update(['core/page/UseCounter.h']) |
| +# [PerContextEnabled] |
| +def per_context_enabled_function_name(definition_or_member): |
| + extended_attributes = definition_or_member.extended_attributes |
| + if 'PerContextEnabled' not in extended_attributes: |
| + return None |
| + feature_name = extended_attributes['PerContextEnabled'] |
| + return 'ContextFeatures::%sEnabled' % uncapitalize(feature_name) |
|
haraken
2013/10/16 05:28:06
We should rename ContextFeatures to PerContextEnab
Nils Barth (inactive)
2013/10/16 06:05:17
I'll look into this when I talk to people about re
|
| + |
| + |
| # [RuntimeEnabled] |
| def runtime_enabled_function_name(definition_or_member): |
| """Returns the name of the RuntimeEnabledFeatures function. |