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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 if is_static: | 91 if is_static: |
92 return 'functionTemplate' | 92 return 'functionTemplate' |
93 if 'Unforgeable' in extended_attributes: | 93 if 'Unforgeable' in extended_attributes: |
94 return 'instanceTemplate' | 94 return 'instanceTemplate' |
95 return 'prototypeTemplate' | 95 return 'prototypeTemplate' |
96 | 96 |
97 is_implemented_in_private_script = 'ImplementedInPrivateScript' in extended_
attributes | 97 is_implemented_in_private_script = 'ImplementedInPrivateScript' in extended_
attributes |
98 if is_implemented_in_private_script: | 98 if is_implemented_in_private_script: |
99 includes.add('bindings/core/v8/PrivateScriptRunner.h') | 99 includes.add('bindings/core/v8/PrivateScriptRunner.h') |
100 includes.add('core/frame/LocalFrame.h') | 100 includes.add('core/frame/LocalFrame.h') |
| 101 includes.add('platform/ScriptForbiddenScope.h') |
101 is_call_with_script_arguments = has_extended_attribute_value(method, 'CallWi
th', 'ScriptArguments') | 102 is_call_with_script_arguments = has_extended_attribute_value(method, 'CallWi
th', 'ScriptArguments') |
102 if is_call_with_script_arguments: | 103 if is_call_with_script_arguments: |
103 includes.update(['bindings/core/v8/ScriptCallStackFactory.h', | 104 includes.update(['bindings/core/v8/ScriptCallStackFactory.h', |
104 'core/inspector/ScriptArguments.h']) | 105 'core/inspector/ScriptArguments.h']) |
105 is_call_with_script_state = has_extended_attribute_value(method, 'CallWith',
'ScriptState') | 106 is_call_with_script_state = has_extended_attribute_value(method, 'CallWith',
'ScriptState') |
106 if is_call_with_script_state: | 107 if is_call_with_script_state: |
107 includes.add('bindings/core/v8/ScriptState.h') | 108 includes.add('bindings/core/v8/ScriptState.h') |
108 is_check_security_for_node = 'CheckSecurity' in extended_attributes | 109 is_check_security_for_node = 'CheckSecurity' in extended_attributes |
109 if is_check_security_for_node: | 110 if is_check_security_for_node: |
110 includes.add('bindings/core/v8/BindingSecurity.h') | 111 includes.add('bindings/core/v8/BindingSecurity.h') |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 | 388 |
388 | 389 |
389 def argument_default_cpp_value(argument): | 390 def argument_default_cpp_value(argument): |
390 if not argument.default_value: | 391 if not argument.default_value: |
391 return None | 392 return None |
392 return argument.idl_type.literal_cpp_value(argument.default_value) | 393 return argument.idl_type.literal_cpp_value(argument.default_value) |
393 | 394 |
394 IdlType.union_arguments = property(lambda self: None) | 395 IdlType.union_arguments = property(lambda self: None) |
395 IdlUnionType.union_arguments = property(union_arguments) | 396 IdlUnionType.union_arguments = property(union_arguments) |
396 IdlArgument.default_cpp_value = property(argument_default_cpp_value) | 397 IdlArgument.default_cpp_value = property(argument_default_cpp_value) |
OLD | NEW |