Chromium Code Reviews| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 94 if is_save_same_object: | 94 if is_save_same_object: |
| 95 includes.add('bindings/core/v8/V8PrivateProperty.h') | 95 includes.add('bindings/core/v8/V8PrivateProperty.h') |
| 96 | 96 |
| 97 if (base_idl_type == 'EventHandler' and | 97 if (base_idl_type == 'EventHandler' and |
| 98 interface.name in ['Window', 'WorkerGlobalScope'] and | 98 interface.name in ['Window', 'WorkerGlobalScope'] and |
| 99 attribute.name == 'onerror'): | 99 attribute.name == 'onerror'): |
| 100 includes.add('bindings/core/v8/V8ErrorHandler.h') | 100 includes.add('bindings/core/v8/V8ErrorHandler.h') |
| 101 | 101 |
| 102 cached_attribute_validation_method = extended_attributes.get('CachedAttribut e') | 102 cached_attribute_validation_method = extended_attributes.get('CachedAttribut e') |
| 103 keep_alive_for_gc = is_keep_alive_for_gc(interface, attribute) | 103 keep_alive_for_gc = is_keep_alive_for_gc(interface, attribute) |
| 104 if cached_attribute_validation_method or keep_alive_for_gc: | 104 if cached_attribute_validation_method: |
| 105 includes.add('bindings/core/v8/V8HiddenValue.h') | 105 includes.add('bindings/core/v8/V8HiddenValue.h') |
| 106 if keep_alive_for_gc: | |
| 107 includes.add('bindings/core/v8/V8PrivateProperty.h') | |
|
haraken
2016/09/20 15:17:25
Revert this change.
Yuki
2016/09/21 10:29:31
Done.
| |
| 106 | 108 |
| 107 context = { | 109 context = { |
| 108 'access_control_list': access_control_list(interface, attribute), | 110 'access_control_list': access_control_list(interface, attribute), |
| 109 'activity_logging_world_list_for_getter': v8_utilities.activity_logging_ world_list(attribute, 'Getter'), # [ActivityLogging] | 111 'activity_logging_world_list_for_getter': v8_utilities.activity_logging_ world_list(attribute, 'Getter'), # [ActivityLogging] |
| 110 'activity_logging_world_list_for_setter': v8_utilities.activity_logging_ world_list(attribute, 'Setter'), # [ActivityLogging] | 112 'activity_logging_world_list_for_setter': v8_utilities.activity_logging_ world_list(attribute, 'Setter'), # [ActivityLogging] |
| 111 'activity_logging_world_check': v8_utilities.activity_logging_world_chec k(attribute), # [ActivityLogging] | 113 'activity_logging_world_check': v8_utilities.activity_logging_world_chec k(attribute), # [ActivityLogging] |
| 112 'argument_cpp_type': idl_type.cpp_type_args(used_as_rvalue_type=True), | 114 'argument_cpp_type': idl_type.cpp_type_args(used_as_rvalue_type=True), |
| 113 'cached_attribute_validation_method': cached_attribute_validation_method , | 115 'cached_attribute_validation_method': cached_attribute_validation_method , |
| 114 'constructor_type': constructor_type, | 116 'constructor_type': constructor_type, |
| 115 'cpp_name': cpp_name(attribute), | 117 'cpp_name': cpp_name(attribute), |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 568 lambda self: strip_suffix(self.base_type, 'Constructor')) | 570 lambda self: strip_suffix(self.base_type, 'Constructor')) |
| 569 | 571 |
| 570 | 572 |
| 571 def is_constructor_attribute(attribute): | 573 def is_constructor_attribute(attribute): |
| 572 # FIXME: replace this with [ConstructorAttribute] extended attribute | 574 # FIXME: replace this with [ConstructorAttribute] extended attribute |
| 573 return attribute.idl_type.name.endswith('Constructor') | 575 return attribute.idl_type.name.endswith('Constructor') |
| 574 | 576 |
| 575 | 577 |
| 576 def update_constructor_attribute_context(interface, attribute, context): | 578 def update_constructor_attribute_context(interface, attribute, context): |
| 577 context['needs_constructor_getter_callback'] = context['measure_as'] or cont ext['deprecate_as'] | 579 context['needs_constructor_getter_callback'] = context['measure_as'] or cont ext['deprecate_as'] |
| OLD | NEW |