| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 # [SetWrapperReferenceFrom] | 106 # [SetWrapperReferenceFrom] |
| 107 reachable_node_function = extended_attributes.get('SetWrapperReferenceFrom') | 107 reachable_node_function = extended_attributes.get('SetWrapperReferenceFrom') |
| 108 if reachable_node_function: | 108 if reachable_node_function: |
| 109 includes.update(['bindings/v8/V8GCController.h', | 109 includes.update(['bindings/v8/V8GCController.h', |
| 110 'core/dom/Element.h']) | 110 'core/dom/Element.h']) |
| 111 | 111 |
| 112 # [SetWrapperReferenceTo] | 112 # [SetWrapperReferenceTo] |
| 113 set_wrapper_reference_to_list = [{ | 113 set_wrapper_reference_to_list = [{ |
| 114 'name': argument.name, | 114 'name': argument.name, |
| 115 # FIXME: properly should be: | 115 # FIXME: properly should be: |
| 116 # 'cpp_type': argument.idl_type.cpp_type_args(used_as_argument=True), | 116 # 'cpp_type': argument.idl_type.cpp_type_args(used_as_raw_type=True), |
| 117 # (if type is non-wrapper type like NodeFilter, normally RefPtr) | 117 # (if type is non-wrapper type like NodeFilter, normally RefPtr) |
| 118 # Raw pointers faster though, and NodeFilter hacky anyway. | 118 # Raw pointers faster though, and NodeFilter hacky anyway. |
| 119 'cpp_type': argument.idl_type.implemented_as + '*', | 119 'cpp_type': argument.idl_type.implemented_as + '*', |
| 120 'idl_type': argument.idl_type, | 120 'idl_type': argument.idl_type, |
| 121 'v8_type': v8_types.v8_type(argument.idl_type.name), | 121 'v8_type': v8_types.v8_type(argument.idl_type.name), |
| 122 } for argument in extended_attributes.get('SetWrapperReferenceTo', [])] | 122 } for argument in extended_attributes.get('SetWrapperReferenceTo', [])] |
| 123 for set_wrapper_reference_to in set_wrapper_reference_to_list: | 123 for set_wrapper_reference_to in set_wrapper_reference_to_list: |
| 124 set_wrapper_reference_to['idl_type'].add_includes_for_type() | 124 set_wrapper_reference_to['idl_type'].add_includes_for_type() |
| 125 | 125 |
| 126 # [SpecialWrapFor] | 126 # [SpecialWrapFor] |
| (...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1078 deleter = next( | 1078 deleter = next( |
| 1079 method | 1079 method |
| 1080 for method in interface.operations | 1080 for method in interface.operations |
| 1081 if ('deleter' in method.specials and | 1081 if ('deleter' in method.specials and |
| 1082 len(method.arguments) == 1 and | 1082 len(method.arguments) == 1 and |
| 1083 str(method.arguments[0].idl_type) == 'DOMString')) | 1083 str(method.arguments[0].idl_type) == 'DOMString')) |
| 1084 except StopIteration: | 1084 except StopIteration: |
| 1085 return None | 1085 return None |
| 1086 | 1086 |
| 1087 return property_deleter(deleter) | 1087 return property_deleter(deleter) |
| OLD | NEW |