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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 from v8_utilities import capitalize, conditional_string, cpp_name, gc_type, has_
extended_attribute_value, runtime_enabled_function_name | 47 from v8_utilities import capitalize, conditional_string, cpp_name, gc_type, has_
extended_attribute_value, runtime_enabled_function_name |
48 | 48 |
49 | 49 |
50 INTERFACE_H_INCLUDES = frozenset([ | 50 INTERFACE_H_INCLUDES = frozenset([ |
51 'bindings/v8/V8Binding.h', | 51 'bindings/v8/V8Binding.h', |
52 'bindings/v8/V8DOMWrapper.h', | 52 'bindings/v8/V8DOMWrapper.h', |
53 'bindings/v8/WrapperTypeInfo.h', | 53 'bindings/v8/WrapperTypeInfo.h', |
54 'platform/heap/Handle.h', | 54 'platform/heap/Handle.h', |
55 ]) | 55 ]) |
56 INTERFACE_CPP_INCLUDES = frozenset([ | 56 INTERFACE_CPP_INCLUDES = frozenset([ |
57 'RuntimeEnabledFeatures.h', | |
58 'bindings/v8/ExceptionState.h', | 57 'bindings/v8/ExceptionState.h', |
59 'bindings/v8/V8DOMConfiguration.h', | 58 'bindings/v8/V8DOMConfiguration.h', |
60 'bindings/v8/V8HiddenValue.h', | 59 'bindings/v8/V8HiddenValue.h', |
61 'bindings/v8/V8ObjectConstructor.h', | 60 'bindings/v8/V8ObjectConstructor.h', |
62 'core/dom/ContextFeatures.h', | 61 'core/dom/ContextFeatures.h', |
63 'core/dom/Document.h', | 62 'core/dom/Document.h', |
| 63 'platform/RuntimeEnabledFeatures.h', |
64 'platform/TraceEvent.h', | 64 'platform/TraceEvent.h', |
65 'wtf/GetPtr.h', | 65 'wtf/GetPtr.h', |
66 'wtf/RefPtr.h', | 66 'wtf/RefPtr.h', |
67 ]) | 67 ]) |
68 | 68 |
69 | 69 |
70 def generate_interface(interface): | 70 def generate_interface(interface): |
71 includes.clear() | 71 includes.clear() |
72 includes.update(INTERFACE_CPP_INCLUDES) | 72 includes.update(INTERFACE_CPP_INCLUDES) |
73 header_includes = set(INTERFACE_H_INCLUDES) | 73 header_includes = set(INTERFACE_H_INCLUDES) |
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1073 deleter = next( | 1073 deleter = next( |
1074 method | 1074 method |
1075 for method in interface.operations | 1075 for method in interface.operations |
1076 if ('deleter' in method.specials and | 1076 if ('deleter' in method.specials and |
1077 len(method.arguments) == 1 and | 1077 len(method.arguments) == 1 and |
1078 str(method.arguments[0].idl_type) == 'DOMString')) | 1078 str(method.arguments[0].idl_type) == 'DOMString')) |
1079 except StopIteration: | 1079 except StopIteration: |
1080 return None | 1080 return None |
1081 | 1081 |
1082 return property_deleter(deleter) | 1082 return property_deleter(deleter) |
OLD | NEW |