Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Side by Side Diff: Source/bindings/scripts/unstable/v8_attributes.py

Issue 101533007: IDL compiler: [InitializedByEventConstructor] (basic) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 'has_strict_type_checking': ( 90 'has_strict_type_checking': (
91 'StrictTypeChecking' in extended_attributes and 91 'StrictTypeChecking' in extended_attributes and
92 v8_types.is_interface_type(idl_type)), 92 v8_types.is_interface_type(idl_type)),
93 'idl_type': idl_type, 93 'idl_type': idl_type,
94 'is_call_with_execution_context': v8_utilities.has_extended_attribute_va lue(attribute, 'CallWith', 'ExecutionContext'), 94 'is_call_with_execution_context': v8_utilities.has_extended_attribute_va lue(attribute, 'CallWith', 'ExecutionContext'),
95 'is_check_security_for_node': is_check_security_for_node, 95 'is_check_security_for_node': is_check_security_for_node,
96 'is_expose_js_accessors': 'ExposeJSAccessors' in extended_attributes, 96 'is_expose_js_accessors': 'ExposeJSAccessors' in extended_attributes,
97 'is_getter_raises_exception': ( 97 'is_getter_raises_exception': (
98 'RaisesException' in extended_attributes and 98 'RaisesException' in extended_attributes and
99 extended_attributes['RaisesException'] in [None, 'Getter']), 99 extended_attributes['RaisesException'] in [None, 'Getter']),
100 'is_initialized_by_event_constructor':
101 'InitializedByEventConstructor' in extended_attributes,
100 'is_keep_alive_for_gc': is_keep_alive_for_gc(attribute), 102 'is_keep_alive_for_gc': is_keep_alive_for_gc(attribute),
101 'is_nullable': attribute.is_nullable, 103 'is_nullable': attribute.is_nullable,
102 'is_per_world_bindings': 'PerWorldBindings' in extended_attributes, 104 'is_per_world_bindings': 'PerWorldBindings' in extended_attributes,
103 'is_read_only': attribute.is_read_only, 105 'is_read_only': attribute.is_read_only,
104 'is_reflect': is_reflect, 106 'is_reflect': is_reflect,
105 'is_replaceable': 'Replaceable' in attribute.extended_attributes, 107 'is_replaceable': 'Replaceable' in attribute.extended_attributes,
106 'is_setter_raises_exception': ( 108 'is_setter_raises_exception': (
107 'RaisesException' in extended_attributes and 109 'RaisesException' in extended_attributes and
108 extended_attributes['RaisesException'] in [None, 'Setter']), 110 extended_attributes['RaisesException'] in [None, 'Setter']),
109 'is_static': attribute.is_static, 111 'is_static': attribute.is_static,
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 if ('NotEnumerable' in extended_attributes or 325 if ('NotEnumerable' in extended_attributes or
324 is_constructor_attribute(attribute)): 326 is_constructor_attribute(attribute)):
325 property_attributes_list.append('v8::DontEnum') 327 property_attributes_list.append('v8::DontEnum')
326 if 'Unforgeable' in extended_attributes: 328 if 'Unforgeable' in extended_attributes:
327 property_attributes_list.append('v8::DontDelete') 329 property_attributes_list.append('v8::DontDelete')
328 return property_attributes_list or ['v8::None'] 330 return property_attributes_list or ['v8::None']
329 331
330 332
331 def is_constructor_attribute(attribute): 333 def is_constructor_attribute(attribute):
332 return attribute.idl_type.endswith('Constructor') 334 return attribute.idl_type.endswith('Constructor')
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698