| 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 if interface.is_partial: | 365 if interface.is_partial: |
| 366 return ''.join([cpp_class_name, 'Partial']) | 366 return ''.join([cpp_class_name, 'Partial']) |
| 367 return cpp_class_name | 367 return cpp_class_name |
| 368 | 368 |
| 369 | 369 |
| 370 # [MeasureAs] | 370 # [MeasureAs] |
| 371 def measure_as(definition_or_member, interface): | 371 def measure_as(definition_or_member, interface): |
| 372 extended_attributes = definition_or_member.extended_attributes | 372 extended_attributes = definition_or_member.extended_attributes |
| 373 if 'MeasureAs' in extended_attributes: | 373 if 'MeasureAs' in extended_attributes: |
| 374 includes.add('core/frame/UseCounter.h') | 374 includes.add('core/frame/UseCounter.h') |
| 375 includes.add('public/platform/WebFeature.h') |
| 375 return lambda suffix: extended_attributes['MeasureAs'] | 376 return lambda suffix: extended_attributes['MeasureAs'] |
| 376 if 'Measure' in extended_attributes: | 377 if 'Measure' in extended_attributes: |
| 377 includes.add('core/frame/UseCounter.h') | 378 includes.add('core/frame/UseCounter.h') |
| 379 includes.add('public/platform/WebFeature.h') |
| 378 measure_as_name = capitalize(definition_or_member.name) | 380 measure_as_name = capitalize(definition_or_member.name) |
| 379 if interface is not None: | 381 if interface is not None: |
| 380 measure_as_name = '%s_%s' % (capitalize(interface.name), measure_as_
name) | 382 measure_as_name = '%s_%s' % (capitalize(interface.name), measure_as_
name) |
| 381 return lambda suffix: 'V8%s_%s' % (measure_as_name, suffix) | 383 return lambda suffix: 'V8%s_%s' % (measure_as_name, suffix) |
| 382 return None | 384 return None |
| 383 | 385 |
| 384 | 386 |
| 385 # [OriginTrialEnabled] | 387 # [OriginTrialEnabled] |
| 386 def origin_trial_enabled_function_name(definition_or_member): | 388 def origin_trial_enabled_function_name(definition_or_member): |
| 387 """Returns the name of the OriginTrials enabled function. | 389 """Returns the name of the OriginTrials enabled function. |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 return None | 658 return None |
| 657 | 659 |
| 658 | 660 |
| 659 IdlInterface.legacy_caller = property(legacy_caller) | 661 IdlInterface.legacy_caller = property(legacy_caller) |
| 660 IdlInterface.indexed_property_getter = property(indexed_property_getter) | 662 IdlInterface.indexed_property_getter = property(indexed_property_getter) |
| 661 IdlInterface.indexed_property_setter = property(indexed_property_setter) | 663 IdlInterface.indexed_property_setter = property(indexed_property_setter) |
| 662 IdlInterface.indexed_property_deleter = property(indexed_property_deleter) | 664 IdlInterface.indexed_property_deleter = property(indexed_property_deleter) |
| 663 IdlInterface.named_property_getter = property(named_property_getter) | 665 IdlInterface.named_property_getter = property(named_property_getter) |
| 664 IdlInterface.named_property_setter = property(named_property_setter) | 666 IdlInterface.named_property_setter = property(named_property_setter) |
| 665 IdlInterface.named_property_deleter = property(named_property_deleter) | 667 IdlInterface.named_property_deleter = property(named_property_deleter) |
| OLD | NEW |