| 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 return ''.join([cpp_class_name, 'Partial']) | 358 return ''.join([cpp_class_name, 'Partial']) |
| 359 return cpp_class_name | 359 return cpp_class_name |
| 360 | 360 |
| 361 | 361 |
| 362 # [MeasureAs] | 362 # [MeasureAs] |
| 363 def measure_as(definition_or_member, interface): | 363 def measure_as(definition_or_member, interface): |
| 364 extended_attributes = definition_or_member.extended_attributes | 364 extended_attributes = definition_or_member.extended_attributes |
| 365 if 'MeasureAs' in extended_attributes: | 365 if 'MeasureAs' in extended_attributes: |
| 366 includes.add('core/frame/UseCounter.h') | 366 includes.add('core/frame/UseCounter.h') |
| 367 return lambda suffix: extended_attributes['MeasureAs'] | 367 return lambda suffix: extended_attributes['MeasureAs'] |
| 368 if 'Measure' in extended_attributes: | 368 elif definition_or_member.name not in ('TEMPORARY', 'PERSISTENT'): |
| 369 includes.add('core/frame/UseCounter.h') | 369 includes.add('core/frame/UseCounter.h') |
| 370 measure_as_name = capitalize(definition_or_member.name) | 370 measure_as_name = capitalize(definition_or_member.name) |
| 371 if interface is not None: | 371 if interface is not None: |
| 372 measure_as_name = '%s_%s' % (capitalize(interface.name), measure_as_
name) | 372 measure_as_name = '%s_%s' % (capitalize(interface.name), measure_as_
name) |
| 373 return lambda suffix: 'V8%s_%s' % (measure_as_name, suffix) | 373 return lambda suffix: 'V8%s_%s' % (measure_as_name, suffix) |
| 374 return None | 374 return None |
| 375 | 375 |
| 376 | 376 |
| 377 # [PerContextEnabled] | 377 # [PerContextEnabled] |
| 378 def per_context_enabled_function_name(definition_or_member): | 378 def per_context_enabled_function_name(definition_or_member): |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 except StopIteration: | 508 except StopIteration: |
| 509 return None | 509 return None |
| 510 | 510 |
| 511 | 511 |
| 512 IdlInterface.indexed_property_getter = property(indexed_property_getter) | 512 IdlInterface.indexed_property_getter = property(indexed_property_getter) |
| 513 IdlInterface.indexed_property_setter = property(indexed_property_setter) | 513 IdlInterface.indexed_property_setter = property(indexed_property_setter) |
| 514 IdlInterface.indexed_property_deleter = property(indexed_property_deleter) | 514 IdlInterface.indexed_property_deleter = property(indexed_property_deleter) |
| 515 IdlInterface.named_property_getter = property(named_property_getter) | 515 IdlInterface.named_property_getter = property(named_property_getter) |
| 516 IdlInterface.named_property_setter = property(named_property_setter) | 516 IdlInterface.named_property_setter = property(named_property_setter) |
| 517 IdlInterface.named_property_deleter = property(named_property_deleter) | 517 IdlInterface.named_property_deleter = property(named_property_deleter) |
| OLD | NEW |