| OLD | NEW |
| 1 # Copyright (C) 2013 Google Inc. All rights reserved. | 1 # Copyright (C) 2013 Google Inc. All rights reserved. |
| 2 # coding=utf-8 | 2 # coding=utf-8 |
| 3 # | 3 # |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 includes.add('bindings/v8/V8ObjectConstructor.h') | 207 includes.add('bindings/v8/V8ObjectConstructor.h') |
| 208 includes.add('core/frame/DOMWindow.h') | 208 includes.add('core/frame/DOMWindow.h') |
| 209 | 209 |
| 210 template_contents.update({ | 210 template_contents.update({ |
| 211 'any_type_attributes': any_type_attributes, | 211 'any_type_attributes': any_type_attributes, |
| 212 'constructors': constructors, | 212 'constructors': constructors, |
| 213 'has_custom_constructor': bool(custom_constructors), | 213 'has_custom_constructor': bool(custom_constructors), |
| 214 'has_event_constructor': has_event_constructor, | 214 'has_event_constructor': has_event_constructor, |
| 215 'interface_length': | 215 'interface_length': |
| 216 interface_length(interface, constructors + custom_constructors), | 216 interface_length(interface, constructors + custom_constructors), |
| 217 'is_constructor_call_with_document': has_extended_attribute_value( | |
| 218 interface, 'ConstructorCallWith', 'Document'), # [ConstructorCallWi
th=Document] | |
| 219 'is_constructor_call_with_execution_context': has_extended_attribute_val
ue( | 217 'is_constructor_call_with_execution_context': has_extended_attribute_val
ue( |
| 220 interface, 'ConstructorCallWith', 'ExecutionContext'), # [Construct
orCallWith=ExeuctionContext] | 218 interface, 'ConstructorCallWith', 'ExecutionContext'), # [Construct
orCallWith=ExeuctionContext] |
| 221 'is_constructor_raises_exception': extended_attributes.get('RaisesExcept
ion') == 'Constructor', # [RaisesException=Constructor] | 219 'is_constructor_raises_exception': extended_attributes.get('RaisesExcept
ion') == 'Constructor', # [RaisesException=Constructor] |
| 222 'named_constructor': named_constructor, | 220 'named_constructor': named_constructor, |
| 223 }) | 221 }) |
| 224 | 222 |
| 225 # Constants | 223 # Constants |
| 226 template_contents.update({ | 224 template_contents.update({ |
| 227 'constants': [generate_constant(constant) for constant in interface.cons
tants], | 225 'constants': [generate_constant(constant) for constant in interface.cons
tants], |
| 228 'do_not_check_constants': 'DoNotCheckConstants' in extended_attributes, | 226 'do_not_check_constants': 'DoNotCheckConstants' in extended_attributes, |
| (...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 deleter = next( | 1071 deleter = next( |
| 1074 method | 1072 method |
| 1075 for method in interface.operations | 1073 for method in interface.operations |
| 1076 if ('deleter' in method.specials and | 1074 if ('deleter' in method.specials and |
| 1077 len(method.arguments) == 1 and | 1075 len(method.arguments) == 1 and |
| 1078 str(method.arguments[0].idl_type) == 'DOMString')) | 1076 str(method.arguments[0].idl_type) == 'DOMString')) |
| 1079 except StopIteration: | 1077 except StopIteration: |
| 1080 return None | 1078 return None |
| 1081 | 1079 |
| 1082 return property_deleter(deleter) | 1080 return property_deleter(deleter) |
| OLD | NEW |