| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 iterator_operation = IdlOperation(interface.idl_name) | 104 iterator_operation = IdlOperation(interface.idl_name) |
| 105 iterator_operation.name = 'iterator' | 105 iterator_operation.name = 'iterator' |
| 106 iterator_operation.idl_type = IdlType('Iterator') | 106 iterator_operation.idl_type = IdlType('Iterator') |
| 107 iterator_operation.extended_attributes['RaisesException'] = None | 107 iterator_operation.extended_attributes['RaisesException'] = None |
| 108 iterator_operation.extended_attributes['CallWith'] = 'ScriptState' | 108 iterator_operation.extended_attributes['CallWith'] = 'ScriptState' |
| 109 iterator_method = v8_methods.method_context(interface, | 109 iterator_method = v8_methods.method_context(interface, |
| 110 iterator_operation) | 110 iterator_operation) |
| 111 | 111 |
| 112 # [MeasureAs] | 112 # [MeasureAs] |
| 113 is_measure_as = 'MeasureAs' in extended_attributes | 113 is_measure_as = 'MeasureAs' in extended_attributes |
| 114 if is_measure_as: | |
| 115 includes.add('core/frame/UseCounter.h') | |
| 116 | 114 |
| 117 # [SetWrapperReferenceFrom] | 115 # [SetWrapperReferenceFrom] |
| 118 reachable_node_function = extended_attributes.get('SetWrapperReferenceFrom') | 116 reachable_node_function = extended_attributes.get('SetWrapperReferenceFrom') |
| 119 if reachable_node_function: | 117 if reachable_node_function: |
| 120 includes.update(['bindings/core/v8/V8GCController.h', | 118 includes.update(['bindings/core/v8/V8GCController.h', |
| 121 'core/dom/Element.h']) | 119 'core/dom/Element.h']) |
| 122 | 120 |
| 123 # [SetWrapperReferenceTo] | 121 # [SetWrapperReferenceTo] |
| 124 set_wrapper_reference_to_list = [{ | 122 set_wrapper_reference_to_list = [{ |
| 125 'name': argument.name, | 123 'name': argument.name, |
| (...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1133 deleter = next( | 1131 deleter = next( |
| 1134 method | 1132 method |
| 1135 for method in interface.operations | 1133 for method in interface.operations |
| 1136 if ('deleter' in method.specials and | 1134 if ('deleter' in method.specials and |
| 1137 len(method.arguments) == 1 and | 1135 len(method.arguments) == 1 and |
| 1138 str(method.arguments[0].idl_type) == 'DOMString')) | 1136 str(method.arguments[0].idl_type) == 'DOMString')) |
| 1139 except StopIteration: | 1137 except StopIteration: |
| 1140 return None | 1138 return None |
| 1141 | 1139 |
| 1142 return property_deleter(deleter) | 1140 return property_deleter(deleter) |
| OLD | NEW |