| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 'bindings/v8/WrapperTypeInfo.h', | 50 'bindings/v8/WrapperTypeInfo.h', |
| 51 ]) | 51 ]) |
| 52 INTERFACE_CPP_INCLUDES = set([ | 52 INTERFACE_CPP_INCLUDES = set([ |
| 53 'RuntimeEnabledFeatures.h', | 53 'RuntimeEnabledFeatures.h', |
| 54 'bindings/v8/ExceptionState.h', | 54 'bindings/v8/ExceptionState.h', |
| 55 'bindings/v8/V8DOMConfiguration.h', | 55 'bindings/v8/V8DOMConfiguration.h', |
| 56 'bindings/v8/V8ObjectConstructor.h', | 56 'bindings/v8/V8ObjectConstructor.h', |
| 57 'core/dom/ContextFeatures.h', | 57 'core/dom/ContextFeatures.h', |
| 58 'core/dom/Document.h', | 58 'core/dom/Document.h', |
| 59 'platform/TraceEvent.h', | 59 'platform/TraceEvent.h', |
| 60 'wtf/GetPtr.h', # FIXME: remove if can eliminate WTF::getPtr |
| 61 'wtf/RefPtr.h', |
| 60 ]) | 62 ]) |
| 61 | 63 |
| 62 | 64 |
| 63 def generate_interface(interface): | 65 def generate_interface(interface): |
| 64 includes.clear() | 66 includes.clear() |
| 65 includes.update(INTERFACE_CPP_INCLUDES) | 67 includes.update(INTERFACE_CPP_INCLUDES) |
| 66 header_includes = INTERFACE_H_INCLUDES | 68 header_includes = INTERFACE_H_INCLUDES |
| 67 | 69 |
| 68 parent_interface = interface.parent | 70 parent_interface = interface.parent |
| 69 if parent_interface: | 71 if parent_interface: |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 deleter = next( | 649 deleter = next( |
| 648 method | 650 method |
| 649 for method in interface.operations | 651 for method in interface.operations |
| 650 if ('deleter' in method.specials and | 652 if ('deleter' in method.specials and |
| 651 len(method.arguments) == 1 and | 653 len(method.arguments) == 1 and |
| 652 method.arguments[0].idl_type == 'DOMString')) | 654 method.arguments[0].idl_type == 'DOMString')) |
| 653 except StopIteration: | 655 except StopIteration: |
| 654 return None | 656 return None |
| 655 | 657 |
| 656 return property_deleter(deleter) | 658 return property_deleter(deleter) |
| OLD | NEW |