| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 'bindings/v8/V8DOMWrapper.h', | 48 'bindings/v8/V8DOMWrapper.h', |
| 49 'bindings/v8/WrapperTypeInfo.h', | 49 'bindings/v8/WrapperTypeInfo.h', |
| 50 ]) | 50 ]) |
| 51 INTERFACE_CPP_INCLUDES = set([ | 51 INTERFACE_CPP_INCLUDES = set([ |
| 52 'RuntimeEnabledFeatures.h', | 52 'RuntimeEnabledFeatures.h', |
| 53 'bindings/v8/ExceptionMessages.h', | 53 'bindings/v8/ExceptionMessages.h', |
| 54 'bindings/v8/V8DOMConfiguration.h', | 54 'bindings/v8/V8DOMConfiguration.h', |
| 55 'core/dom/ContextFeatures.h', | 55 'core/dom/ContextFeatures.h', |
| 56 'core/dom/Document.h', | 56 'core/dom/Document.h', |
| 57 'platform/TraceEvent.h', | 57 'platform/TraceEvent.h', |
| 58 'wtf/UnusedParam.h', | |
| 59 ]) | 58 ]) |
| 60 | 59 |
| 61 | 60 |
| 62 def generate_interface(interface): | 61 def generate_interface(interface): |
| 63 includes.clear() | 62 includes.clear() |
| 64 includes.update(INTERFACE_CPP_INCLUDES) | 63 includes.update(INTERFACE_CPP_INCLUDES) |
| 65 header_includes = INTERFACE_H_INCLUDES | 64 header_includes = INTERFACE_H_INCLUDES |
| 66 | 65 |
| 67 parent_interface = interface.parent | 66 parent_interface = interface.parent |
| 68 if parent_interface: | 67 if parent_interface: |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 if has_extended_attribute_value(interface, 'ConstructorCallWith', 'Execution
Context'): | 319 if has_extended_attribute_value(interface, 'ConstructorCallWith', 'Execution
Context'): |
| 321 arguments.append('context') | 320 arguments.append('context') |
| 322 # [ConstructorCallWith=Document] | 321 # [ConstructorCallWith=Document] |
| 323 if has_extended_attribute_value(interface, 'ConstructorCallWith', 'Document'
): | 322 if has_extended_attribute_value(interface, 'ConstructorCallWith', 'Document'
): |
| 324 arguments.append('document') | 323 arguments.append('document') |
| 325 # FIXME: actual arguments! | 324 # FIXME: actual arguments! |
| 326 # [RaisesException=Constructor] | 325 # [RaisesException=Constructor] |
| 327 if interface.extended_attributes.get('RaisesException') == 'Constructor': | 326 if interface.extended_attributes.get('RaisesException') == 'Constructor': |
| 328 arguments.append('exceptionState') | 327 arguments.append('exceptionState') |
| 329 return arguments | 328 return arguments |
| OLD | NEW |