| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 attribute.name == 'onerror'): | 74 attribute.name == 'onerror'): |
| 75 includes.add('bindings/v8/V8ErrorHandler.h') | 75 includes.add('bindings/v8/V8ErrorHandler.h') |
| 76 | 76 |
| 77 contents = { | 77 contents = { |
| 78 'access_control_list': access_control_list(attribute), | 78 'access_control_list': access_control_list(attribute), |
| 79 'activity_logging_world_list_for_getter': v8_utilities.activity_logging_
world_list(attribute, 'Getter'), # [ActivityLogging] | 79 'activity_logging_world_list_for_getter': v8_utilities.activity_logging_
world_list(attribute, 'Getter'), # [ActivityLogging] |
| 80 'activity_logging_world_list_for_setter': v8_utilities.activity_logging_
world_list(attribute, 'Setter'), # [ActivityLogging] | 80 'activity_logging_world_list_for_setter': v8_utilities.activity_logging_
world_list(attribute, 'Setter'), # [ActivityLogging] |
| 81 'cached_attribute_validation_method': extended_attributes.get('CachedAtt
ribute'), | 81 'cached_attribute_validation_method': extended_attributes.get('CachedAtt
ribute'), |
| 82 'conditional_string': v8_utilities.conditional_string(attribute), | 82 'conditional_string': v8_utilities.conditional_string(attribute), |
| 83 'constructor_type': v8_types.constructor_type(idl_type) if is_constructo
r_attribute(attribute) else None, | 83 'constructor_type': v8_types.constructor_type(idl_type) if is_constructo
r_attribute(attribute) else None, |
| 84 'cpp_name': cpp_name(attribute), |
| 84 'cpp_type': v8_types.cpp_type(idl_type), | 85 'cpp_type': v8_types.cpp_type(idl_type), |
| 85 'deprecate_as': v8_utilities.deprecate_as(attribute), # [DeprecateAs] | 86 'deprecate_as': v8_utilities.deprecate_as(attribute), # [DeprecateAs] |
| 86 'enum_validation_expression': | 87 'enum_validation_expression': |
| 87 v8_utilities.enum_validation_expression(idl_type), | 88 v8_utilities.enum_validation_expression(idl_type), |
| 88 'has_custom_getter': has_custom_getter, | 89 'has_custom_getter': has_custom_getter, |
| 89 'has_custom_setter': has_custom_setter, | 90 'has_custom_setter': has_custom_setter, |
| 90 'has_strict_type_checking': ( | 91 'has_strict_type_checking': ( |
| 91 'StrictTypeChecking' in extended_attributes and | 92 'StrictTypeChecking' in extended_attributes and |
| 92 v8_types.is_interface_type(idl_type)), | 93 v8_types.is_interface_type(idl_type)), |
| 93 'idl_type': idl_type, | 94 'idl_type': idl_type, |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 if ('NotEnumerable' in extended_attributes or | 327 if ('NotEnumerable' in extended_attributes or |
| 327 is_constructor_attribute(attribute)): | 328 is_constructor_attribute(attribute)): |
| 328 property_attributes_list.append('v8::DontEnum') | 329 property_attributes_list.append('v8::DontEnum') |
| 329 if 'Unforgeable' in extended_attributes: | 330 if 'Unforgeable' in extended_attributes: |
| 330 property_attributes_list.append('v8::DontDelete') | 331 property_attributes_list.append('v8::DontDelete') |
| 331 return property_attributes_list or ['v8::None'] | 332 return property_attributes_list or ['v8::None'] |
| 332 | 333 |
| 333 | 334 |
| 334 def is_constructor_attribute(attribute): | 335 def is_constructor_attribute(attribute): |
| 335 return attribute.idl_type.endswith('Constructor') | 336 return attribute.idl_type.endswith('Constructor') |
| OLD | NEW |