| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 366 |
| 367 def v8_value_to_local_cpp_variadic_value(argument, index, return_promise): | 367 def v8_value_to_local_cpp_variadic_value(argument, index, return_promise): |
| 368 assert argument.is_variadic | 368 assert argument.is_variadic |
| 369 idl_type = argument.idl_type | 369 idl_type = argument.idl_type |
| 370 | 370 |
| 371 suffix = '' | 371 suffix = '' |
| 372 | 372 |
| 373 macro = 'TONATIVE_VOID' | 373 macro = 'TONATIVE_VOID' |
| 374 macro_args = [ | 374 macro_args = [ |
| 375 argument.name, | 375 argument.name, |
| 376 'toNativeArguments<%s>(info, %s)' % (idl_type.cpp_type, index), | 376 'toImplArguments<%s>(info, %s)' % (idl_type.cpp_type, index), |
| 377 ] | 377 ] |
| 378 | 378 |
| 379 if return_promise: | 379 if return_promise: |
| 380 suffix += '_PROMISE' | 380 suffix += '_PROMISE' |
| 381 macro_args.append('info') | 381 macro_args.append('info') |
| 382 | 382 |
| 383 suffix += '_INTERNAL' | 383 suffix += '_INTERNAL' |
| 384 | 384 |
| 385 return '%s%s(%s)' % (macro, suffix, ', '.join(macro_args)) | 385 return '%s%s(%s)' % (macro, suffix, ', '.join(macro_args)) |
| 386 | 386 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 if argument.idl_type.is_dictionary: | 450 if argument.idl_type.is_dictionary: |
| 451 # We always create impl objects for IDL dictionaries. | 451 # We always create impl objects for IDL dictionaries. |
| 452 return '%s::create()' % argument.idl_type.base_type | 452 return '%s::create()' % argument.idl_type.base_type |
| 453 if not argument.default_value: | 453 if not argument.default_value: |
| 454 return None | 454 return None |
| 455 return argument.idl_type.literal_cpp_value(argument.default_value) | 455 return argument.idl_type.literal_cpp_value(argument.default_value) |
| 456 | 456 |
| 457 IdlTypeBase.union_arguments = None | 457 IdlTypeBase.union_arguments = None |
| 458 IdlUnionType.union_arguments = property(union_arguments) | 458 IdlUnionType.union_arguments = property(union_arguments) |
| 459 IdlArgument.default_cpp_value = property(argument_default_cpp_value) | 459 IdlArgument.default_cpp_value = property(argument_default_cpp_value) |
| OLD | NEW |