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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 import v8_attributes | 43 import v8_attributes |
44 from v8_globals import includes | 44 from v8_globals import includes |
45 import v8_methods | 45 import v8_methods |
46 import v8_types | 46 import v8_types |
47 from v8_types import cpp_ptr_type, cpp_template_type | 47 from v8_types import cpp_ptr_type, cpp_template_type |
48 import v8_utilities | 48 import v8_utilities |
49 from v8_utilities import capitalize, conditional_string, cpp_name, gc_type, has_
extended_attribute_value, runtime_enabled_function_name | 49 from v8_utilities import capitalize, conditional_string, cpp_name, gc_type, has_
extended_attribute_value, runtime_enabled_function_name |
50 | 50 |
51 | 51 |
52 INTERFACE_H_INCLUDES = frozenset([ | 52 INTERFACE_H_INCLUDES = frozenset([ |
| 53 'bindings/core/v8/ScriptWrappable.h', |
53 'bindings/core/v8/V8Binding.h', | 54 'bindings/core/v8/V8Binding.h', |
54 'bindings/core/v8/V8DOMWrapper.h', | 55 'bindings/core/v8/V8DOMWrapper.h', |
55 'bindings/core/v8/WrapperTypeInfo.h', | 56 'bindings/core/v8/WrapperTypeInfo.h', |
56 'platform/heap/Handle.h', | 57 'platform/heap/Handle.h', |
57 ]) | 58 ]) |
58 INTERFACE_CPP_INCLUDES = frozenset([ | 59 INTERFACE_CPP_INCLUDES = frozenset([ |
59 'bindings/core/v8/ExceptionState.h', | 60 'bindings/core/v8/ExceptionState.h', |
60 'bindings/core/v8/V8DOMConfiguration.h', | 61 'bindings/core/v8/V8DOMConfiguration.h', |
61 'bindings/core/v8/V8HiddenValue.h', | 62 'bindings/core/v8/V8HiddenValue.h', |
62 'bindings/core/v8/V8ObjectConstructor.h', | 63 'bindings/core/v8/V8ObjectConstructor.h', |
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 deleter = next( | 1103 deleter = next( |
1103 method | 1104 method |
1104 for method in interface.operations | 1105 for method in interface.operations |
1105 if ('deleter' in method.specials and | 1106 if ('deleter' in method.specials and |
1106 len(method.arguments) == 1 and | 1107 len(method.arguments) == 1 and |
1107 str(method.arguments[0].idl_type) == 'DOMString')) | 1108 str(method.arguments[0].idl_type) == 'DOMString')) |
1108 except StopIteration: | 1109 except StopIteration: |
1109 return None | 1110 return None |
1110 | 1111 |
1111 return property_deleter(deleter) | 1112 return property_deleter(deleter) |
OLD | NEW |