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 30 matching lines...) Loading... |
41 import v8_types | 41 import v8_types |
42 from v8_types import cpp_ptr_type, cpp_template_type | 42 from v8_types import cpp_ptr_type, cpp_template_type |
43 import v8_utilities | 43 import v8_utilities |
44 from v8_utilities import capitalize, conditional_string, cpp_name, gc_type, has_
extended_attribute_value, runtime_enabled_function_name | 44 from v8_utilities import capitalize, conditional_string, cpp_name, gc_type, has_
extended_attribute_value, runtime_enabled_function_name |
45 | 45 |
46 | 46 |
47 INTERFACE_H_INCLUDES = frozenset([ | 47 INTERFACE_H_INCLUDES = frozenset([ |
48 'bindings/v8/V8Binding.h', | 48 'bindings/v8/V8Binding.h', |
49 'bindings/v8/V8DOMWrapper.h', | 49 'bindings/v8/V8DOMWrapper.h', |
50 'bindings/v8/WrapperTypeInfo.h', | 50 'bindings/v8/WrapperTypeInfo.h', |
51 'heap/Handle.h', | 51 'platform/heap/Handle.h', |
52 ]) | 52 ]) |
53 INTERFACE_CPP_INCLUDES = frozenset([ | 53 INTERFACE_CPP_INCLUDES = frozenset([ |
54 'RuntimeEnabledFeatures.h', | 54 'RuntimeEnabledFeatures.h', |
55 'bindings/v8/ExceptionState.h', | 55 'bindings/v8/ExceptionState.h', |
56 'bindings/v8/V8DOMConfiguration.h', | 56 'bindings/v8/V8DOMConfiguration.h', |
57 'bindings/v8/V8HiddenValue.h', | 57 'bindings/v8/V8HiddenValue.h', |
58 'bindings/v8/V8ObjectConstructor.h', | 58 'bindings/v8/V8ObjectConstructor.h', |
59 'core/dom/ContextFeatures.h', | 59 'core/dom/ContextFeatures.h', |
60 'core/dom/Document.h', | 60 'core/dom/Document.h', |
61 'platform/TraceEvent.h', | 61 'platform/TraceEvent.h', |
(...skipping 676 matching lines...) Loading... |
738 deleter = next( | 738 deleter = next( |
739 method | 739 method |
740 for method in interface.operations | 740 for method in interface.operations |
741 if ('deleter' in method.specials and | 741 if ('deleter' in method.specials and |
742 len(method.arguments) == 1 and | 742 len(method.arguments) == 1 and |
743 str(method.arguments[0].idl_type) == 'DOMString')) | 743 str(method.arguments[0].idl_type) == 'DOMString')) |
744 except StopIteration: | 744 except StopIteration: |
745 return None | 745 return None |
746 | 746 |
747 return property_deleter(deleter) | 747 return property_deleter(deleter) |
OLD | NEW |