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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 includes.add('bindings/core/v8/V8HTMLConstructor.h') | 323 includes.add('bindings/core/v8/V8HTMLConstructor.h') |
324 | 324 |
325 # [NamedConstructor] | 325 # [NamedConstructor] |
326 named_constructor = named_constructor_context(interface) | 326 named_constructor = named_constructor_context(interface) |
327 | 327 |
328 if constructors or custom_constructors or named_constructor: | 328 if constructors or custom_constructors or named_constructor: |
329 if interface.is_partial: | 329 if interface.is_partial: |
330 raise Exception('[Constructor] and [NamedConstructor] MUST NOT be' | 330 raise Exception('[Constructor] and [NamedConstructor] MUST NOT be' |
331 ' specified on partial interface definitions: ' | 331 ' specified on partial interface definitions: ' |
332 '%s' % interface.name) | 332 '%s' % interface.name) |
| 333 if named_constructor: |
| 334 includes.add('bindings/core/v8/V8PrivateProperty.h') |
333 | 335 |
334 includes.add('bindings/core/v8/V8ObjectConstructor.h') | 336 includes.add('bindings/core/v8/V8ObjectConstructor.h') |
335 includes.add('core/frame/LocalDOMWindow.h') | 337 includes.add('core/frame/LocalDOMWindow.h') |
336 elif 'Measure' in extended_attributes or 'MeasureAs' in extended_attributes: | 338 elif 'Measure' in extended_attributes or 'MeasureAs' in extended_attributes: |
337 if not interface.is_partial: | 339 if not interface.is_partial: |
338 raise Exception('[Measure] or [MeasureAs] specified for interface wi
thout a constructor: ' | 340 raise Exception('[Measure] or [MeasureAs] specified for interface wi
thout a constructor: ' |
339 '%s' % interface.name) | 341 '%s' % interface.name) |
340 | 342 |
341 # [Unscopable] attributes and methods | 343 # [Unscopable] attributes and methods |
342 unscopables = [] | 344 unscopables = [] |
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1501 extended_attributes = deleter.extended_attributes | 1503 extended_attributes = deleter.extended_attributes |
1502 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete
r, 'CallWith', 'ScriptState') | 1504 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete
r, 'CallWith', 'ScriptState') |
1503 is_ce_reactions = 'CEReactions' in extended_attributes | 1505 is_ce_reactions = 'CEReactions' in extended_attributes |
1504 return { | 1506 return { |
1505 'is_call_with_script_state': is_call_with_script_state, | 1507 'is_call_with_script_state': is_call_with_script_state, |
1506 'is_ce_reactions': is_ce_reactions, | 1508 'is_ce_reactions': is_ce_reactions, |
1507 'is_custom': 'Custom' in extended_attributes, | 1509 'is_custom': 'Custom' in extended_attributes, |
1508 'is_raises_exception': 'RaisesException' in extended_attributes, | 1510 'is_raises_exception': 'RaisesException' in extended_attributes, |
1509 'name': cpp_name(deleter), | 1511 'name': cpp_name(deleter), |
1510 } | 1512 } |
OLD | NEW |