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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 includes.add('bindings/v8/Dictionary.h') | 198 includes.add('bindings/v8/Dictionary.h') |
199 if any_type_attributes: | 199 if any_type_attributes: |
200 includes.add('bindings/v8/SerializedScriptValue.h') | 200 includes.add('bindings/v8/SerializedScriptValue.h') |
201 | 201 |
202 # [NamedConstructor] | 202 # [NamedConstructor] |
203 named_constructor = generate_named_constructor(interface) | 203 named_constructor = generate_named_constructor(interface) |
204 | 204 |
205 if (constructors or custom_constructors or has_event_constructor or | 205 if (constructors or custom_constructors or has_event_constructor or |
206 named_constructor): | 206 named_constructor): |
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/LocalDOMWindow.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( | 217 'is_constructor_call_with_document': has_extended_attribute_value( |
218 interface, 'ConstructorCallWith', 'Document'), # [ConstructorCallWi
th=Document] | 218 interface, 'ConstructorCallWith', 'Document'), # [ConstructorCallWi
th=Document] |
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1073 deleter = next( | 1073 deleter = next( |
1074 method | 1074 method |
1075 for method in interface.operations | 1075 for method in interface.operations |
1076 if ('deleter' in method.specials and | 1076 if ('deleter' in method.specials and |
1077 len(method.arguments) == 1 and | 1077 len(method.arguments) == 1 and |
1078 str(method.arguments[0].idl_type) == 'DOMString')) | 1078 str(method.arguments[0].idl_type) == 'DOMString')) |
1079 except StopIteration: | 1079 except StopIteration: |
1080 return None | 1080 return None |
1081 | 1081 |
1082 return property_deleter(deleter) | 1082 return property_deleter(deleter) |
OLD | NEW |