OLD | NEW |
1 # Copyright (C) 2013 Google Inc. All rights reserved. | 1 # Copyright (C) 2013 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 includes.add('bindings/core/v8/BindingSecurity.h') | 64 includes.add('bindings/core/v8/BindingSecurity.h') |
65 # [Constructor] | 65 # [Constructor] |
66 # TODO(yukishiino): Constructors are much like methods although constructors | 66 # TODO(yukishiino): Constructors are much like methods although constructors |
67 # are not methods. Constructors must be data-type properties, and we can | 67 # are not methods. Constructors must be data-type properties, and we can |
68 # support them as a kind of methods. | 68 # support them as a kind of methods. |
69 constructor_type = idl_type.constructor_type_name if is_constructor_attribut
e(attribute) else None | 69 constructor_type = idl_type.constructor_type_name if is_constructor_attribut
e(attribute) else None |
70 # [CustomElementCallbacks], [Reflect] | 70 # [CustomElementCallbacks], [Reflect] |
71 is_custom_element_callbacks = 'CustomElementCallbacks' in extended_attribute
s | 71 is_custom_element_callbacks = 'CustomElementCallbacks' in extended_attribute
s |
72 is_reflect = 'Reflect' in extended_attributes | 72 is_reflect = 'Reflect' in extended_attributes |
73 if is_custom_element_callbacks or is_reflect: | 73 if is_custom_element_callbacks or is_reflect: |
74 includes.add('core/dom/custom/CustomElementProcessingStack.h') | 74 includes.add('core/dom/custom/V0CustomElementProcessingStack.h') |
75 # [ImplementedInPrivateScript] | 75 # [ImplementedInPrivateScript] |
76 is_implemented_in_private_script = 'ImplementedInPrivateScript' in extended_
attributes | 76 is_implemented_in_private_script = 'ImplementedInPrivateScript' in extended_
attributes |
77 if is_implemented_in_private_script: | 77 if is_implemented_in_private_script: |
78 includes.add('bindings/core/v8/PrivateScriptRunner.h') | 78 includes.add('bindings/core/v8/PrivateScriptRunner.h') |
79 includes.add('core/frame/LocalFrame.h') | 79 includes.add('core/frame/LocalFrame.h') |
80 includes.add('platform/ScriptForbiddenScope.h') | 80 includes.add('platform/ScriptForbiddenScope.h') |
81 # [OnlyExposedToPrivateScript] | 81 # [OnlyExposedToPrivateScript] |
82 is_only_exposed_to_private_script = 'OnlyExposedToPrivateScript' in extended
_attributes | 82 is_only_exposed_to_private_script = 'OnlyExposedToPrivateScript' in extended
_attributes |
83 # [PerWorldBindings] | 83 # [PerWorldBindings] |
84 if 'PerWorldBindings' in extended_attributes: | 84 if 'PerWorldBindings' in extended_attributes: |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 lambda self: strip_suffix(self.base_type, 'Constructor')) | 513 lambda self: strip_suffix(self.base_type, 'Constructor')) |
514 | 514 |
515 | 515 |
516 def is_constructor_attribute(attribute): | 516 def is_constructor_attribute(attribute): |
517 # FIXME: replace this with [ConstructorAttribute] extended attribute | 517 # FIXME: replace this with [ConstructorAttribute] extended attribute |
518 return attribute.idl_type.name.endswith('Constructor') | 518 return attribute.idl_type.name.endswith('Constructor') |
519 | 519 |
520 | 520 |
521 def update_constructor_attribute_context(interface, attribute, context): | 521 def update_constructor_attribute_context(interface, attribute, context): |
522 context['needs_constructor_getter_callback'] = context['measure_as'] or cont
ext['deprecate_as'] or context['origin_trial_enabled_function'] # TODO(chasej):
Should/can this be true when OriginTrialEnabled is inherited from containing in
terface? | 522 context['needs_constructor_getter_callback'] = context['measure_as'] or cont
ext['deprecate_as'] or context['origin_trial_enabled_function'] # TODO(chasej):
Should/can this be true when OriginTrialEnabled is inherited from containing in
terface? |
OLD | NEW |