| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 # [Reflect] | 69 # [Reflect] |
| 70 is_reflect = 'Reflect' in extended_attributes | 70 is_reflect = 'Reflect' in extended_attributes |
| 71 if is_reflect: | 71 if is_reflect: |
| 72 includes.add('core/dom/custom/CustomElementCallbackDispatcher.h') | 72 includes.add('core/dom/custom/CustomElementCallbackDispatcher.h') |
| 73 | 73 |
| 74 if (idl_type == 'EventHandler' and | 74 if (idl_type == 'EventHandler' and |
| 75 interface.name in ['Window', 'WorkerGlobalScope'] and | 75 interface.name in ['Window', 'WorkerGlobalScope'] and |
| 76 attribute.name == 'onerror'): | 76 attribute.name == 'onerror'): |
| 77 includes.add('bindings/v8/V8ErrorHandler.h') | 77 includes.add('bindings/v8/V8ErrorHandler.h') |
| 78 | 78 |
| 79 if idl_type == 'Node' and not attribute.is_read_only: | |
| 80 # Counter for setter | |
| 81 includes.update(['core/frame/UseCounter.h', 'V8Attr.h']) | |
| 82 | |
| 83 contents = { | 79 contents = { |
| 84 'access_control_list': access_control_list(attribute), | 80 'access_control_list': access_control_list(attribute), |
| 85 'activity_logging_world_list_for_getter': v8_utilities.activity_logging_
world_list(attribute, 'Getter'), # [ActivityLogging] | 81 'activity_logging_world_list_for_getter': v8_utilities.activity_logging_
world_list(attribute, 'Getter'), # [ActivityLogging] |
| 86 'activity_logging_world_list_for_setter': v8_utilities.activity_logging_
world_list(attribute, 'Setter'), # [ActivityLogging] | 82 'activity_logging_world_list_for_setter': v8_utilities.activity_logging_
world_list(attribute, 'Setter'), # [ActivityLogging] |
| 87 'cached_attribute_validation_method': extended_attributes.get('CachedAtt
ribute'), | 83 'cached_attribute_validation_method': extended_attributes.get('CachedAtt
ribute'), |
| 88 'conditional_string': v8_utilities.conditional_string(attribute), | 84 'conditional_string': v8_utilities.conditional_string(attribute), |
| 89 'constructor_type': v8_types.constructor_type(idl_type) | 85 'constructor_type': v8_types.constructor_type(idl_type) |
| 90 if is_constructor_attribute(attribute) else None, | 86 if is_constructor_attribute(attribute) else None, |
| 91 'cpp_name': cpp_name(attribute), | 87 'cpp_name': cpp_name(attribute), |
| 92 'cpp_type': v8_types.cpp_type(idl_type), | 88 'cpp_type': v8_types.cpp_type(idl_type), |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 property_attributes_list.append('v8::DontDelete') | 344 property_attributes_list.append('v8::DontDelete') |
| 349 return property_attributes_list or ['v8::None'] | 345 return property_attributes_list or ['v8::None'] |
| 350 | 346 |
| 351 | 347 |
| 352 ################################################################################ | 348 ################################################################################ |
| 353 # Constructors | 349 # Constructors |
| 354 ################################################################################ | 350 ################################################################################ |
| 355 | 351 |
| 356 def is_constructor_attribute(attribute): | 352 def is_constructor_attribute(attribute): |
| 357 return attribute.idl_type.endswith('Constructor') | 353 return attribute.idl_type.endswith('Constructor') |
| OLD | NEW |