| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 if is_check_security_for_node: | 52 if is_check_security_for_node: |
| 53 includes.add('bindings/v8/BindingSecurity.h') | 53 includes.add('bindings/v8/BindingSecurity.h') |
| 54 # [Custom] | 54 # [Custom] |
| 55 has_custom_getter = ('Custom' in extended_attributes and | 55 has_custom_getter = ('Custom' in extended_attributes and |
| 56 extended_attributes['Custom'] in [None, 'Getter']) | 56 extended_attributes['Custom'] in [None, 'Getter']) |
| 57 has_custom_setter = (not attribute.is_read_only and | 57 has_custom_setter = (not attribute.is_read_only and |
| 58 'Custom' in extended_attributes and | 58 'Custom' in extended_attributes and |
| 59 extended_attributes['Custom'] in [None, 'Setter']) | 59 extended_attributes['Custom'] in [None, 'Setter']) |
| 60 | 60 |
| 61 has_strict_type_checking = ( | 61 has_strict_type_checking = ( |
| 62 'StrictTypeChecking' in extended_attributes and | 62 ('StrictTypeChecking' in extended_attributes or |
| 63 'StrictTypeChecking' in interface.extended_attributes) and |
| 63 v8_types.is_interface_type(idl_type)) | 64 v8_types.is_interface_type(idl_type)) |
| 64 | 65 |
| 65 is_setter_raises_exception = ( | 66 is_setter_raises_exception = ( |
| 66 'RaisesException' in extended_attributes and | 67 'RaisesException' in extended_attributes and |
| 67 extended_attributes['RaisesException'] in [None, 'Setter']) | 68 extended_attributes['RaisesException'] in [None, 'Setter']) |
| 68 | 69 |
| 69 # [Reflect] | 70 # [Reflect] |
| 70 is_reflect = 'Reflect' in extended_attributes | 71 is_reflect = 'Reflect' in extended_attributes |
| 71 if is_reflect: | 72 if is_reflect: |
| 72 includes.add('core/dom/custom/CustomElementCallbackDispatcher.h') | 73 includes.add('core/dom/custom/CustomElementCallbackDispatcher.h') |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 property_attributes_list.append('v8::DontDelete') | 374 property_attributes_list.append('v8::DontDelete') |
| 374 return property_attributes_list or ['v8::None'] | 375 return property_attributes_list or ['v8::None'] |
| 375 | 376 |
| 376 | 377 |
| 377 ################################################################################ | 378 ################################################################################ |
| 378 # Constructors | 379 # Constructors |
| 379 ################################################################################ | 380 ################################################################################ |
| 380 | 381 |
| 381 def is_constructor_attribute(attribute): | 382 def is_constructor_attribute(attribute): |
| 382 return attribute.idl_type.endswith('Constructor') | 383 return attribute.idl_type.endswith('Constructor') |
| OLD | NEW |