| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 Design doc: http://www.chromium.org/developers/design-documents/idl-compiler | 33 Design doc: http://www.chromium.org/developers/design-documents/idl-compiler |
| 34 """ | 34 """ |
| 35 | 35 |
| 36 from idl_types import IdlTypeBase | 36 from idl_types import IdlTypeBase |
| 37 from v8_globals import includes | 37 from v8_globals import includes |
| 38 import v8_types | 38 import v8_types |
| 39 import v8_utilities | 39 import v8_utilities |
| 40 | 40 |
| 41 CALLBACK_INTERFACE_H_INCLUDES = frozenset([ | 41 CALLBACK_INTERFACE_H_INCLUDES = frozenset([ |
| 42 'bindings/core/v8/ActiveDOMCallback.h', | |
| 43 'bindings/core/v8/DOMWrapperWorld.h', | 42 'bindings/core/v8/DOMWrapperWorld.h', |
| 44 'bindings/core/v8/ScopedPersistent.h', | 43 'bindings/core/v8/ScopedPersistent.h', |
| 45 ]) | 44 ]) |
| 46 CALLBACK_INTERFACE_CPP_INCLUDES = frozenset([ | 45 CALLBACK_INTERFACE_CPP_INCLUDES = frozenset([ |
| 47 'bindings/core/v8/ScriptController.h', | 46 'bindings/core/v8/ScriptController.h', |
| 48 'bindings/core/v8/V8Binding.h', | 47 'bindings/core/v8/V8Binding.h', |
| 49 'core/dom/ExecutionContext.h', | 48 'core/dom/ExecutionContext.h', |
| 50 'wtf/Assertions.h', | 49 'wtf/Assertions.h', |
| 51 'wtf/GetPtr.h', | 50 'wtf/GetPtr.h', |
| 52 'wtf/RefPtr.h', | 51 'wtf/RefPtr.h', |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 } | 121 } |
| 123 | 122 |
| 124 argument_declarations = ['ScriptValue thisValue'] if call_with_this_handle e
lse [] | 123 argument_declarations = ['ScriptValue thisValue'] if call_with_this_handle e
lse [] |
| 125 argument_declarations.extend( | 124 argument_declarations.extend( |
| 126 '%s %s' % (argument.idl_type.callback_cpp_type, argument.name) | 125 '%s %s' % (argument.idl_type.callback_cpp_type, argument.name) |
| 127 for argument in arguments) | 126 for argument in arguments) |
| 128 return { | 127 return { |
| 129 'argument_declarations': argument_declarations, | 128 'argument_declarations': argument_declarations, |
| 130 'arguments': [argument_context(argument) for argument in arguments], | 129 'arguments': [argument_context(argument) for argument in arguments], |
| 131 } | 130 } |
| OLD | NEW |