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

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

Issue 152043003: IDL compiler: [ReflectMissing], [ReflectInvalid] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months 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/attributes.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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 is_setter_raises_exception or has_strict_type_checking or 115 is_setter_raises_exception or has_strict_type_checking or
116 v8_types.is_integer_type(idl_type)), 116 v8_types.is_integer_type(idl_type)),
117 'is_static': attribute.is_static, 117 'is_static': attribute.is_static,
118 'is_url': 'URL' in extended_attributes, 118 'is_url': 'URL' in extended_attributes,
119 'is_unforgeable': 'Unforgeable' in extended_attributes, 119 'is_unforgeable': 'Unforgeable' in extended_attributes,
120 'measure_as': v8_utilities.measure_as(attribute), # [MeasureAs] 120 'measure_as': v8_utilities.measure_as(attribute), # [MeasureAs]
121 'name': attribute.name, 121 'name': attribute.name,
122 'per_context_enabled_function': v8_utilities.per_context_enabled_functio n_name(attribute), # [PerContextEnabled] 122 'per_context_enabled_function': v8_utilities.per_context_enabled_functio n_name(attribute), # [PerContextEnabled]
123 'property_attributes': property_attributes(attribute), 123 'property_attributes': property_attributes(attribute),
124 'put_forwards': 'PutForwards' in extended_attributes, 124 'put_forwards': 'PutForwards' in extended_attributes,
125 'reflect_invalid': extended_attributes.get('ReflectInvalid', ''),
126 'reflect_missing': extended_attributes.get('ReflectMissing'),
125 'reflect_only': extended_attributes['ReflectOnly'].split('|') 127 'reflect_only': extended_attributes['ReflectOnly'].split('|')
126 if 'ReflectOnly' in extended_attributes else None, # [ReflectOnly] 128 if 'ReflectOnly' in extended_attributes else None,
127 'setter_callback': setter_callback_name(interface, attribute), 129 'setter_callback': setter_callback_name(interface, attribute),
128 'v8_type': v8_types.v8_type(idl_type), 130 'v8_type': v8_types.v8_type(idl_type),
129 'runtime_enabled_function': v8_utilities.runtime_enabled_function_name(a ttribute), # [RuntimeEnabled] 131 'runtime_enabled_function': v8_utilities.runtime_enabled_function_name(a ttribute), # [RuntimeEnabled]
130 'world_suffixes': ['', 'ForMainWorld'] 132 'world_suffixes': ['', 'ForMainWorld']
131 if 'PerWorldBindings' in extended_attributes 133 if 'PerWorldBindings' in extended_attributes
132 else [''], # [PerWorldBindings] 134 else [''], # [PerWorldBindings]
133 } 135 }
134 136
135 if is_constructor_attribute(attribute): 137 if is_constructor_attribute(attribute):
136 return contents 138 return contents
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 property_attributes_list.append('v8::DontDelete') 385 property_attributes_list.append('v8::DontDelete')
384 return property_attributes_list or ['v8::None'] 386 return property_attributes_list or ['v8::None']
385 387
386 388
387 ################################################################################ 389 ################################################################################
388 # Constructors 390 # Constructors
389 ################################################################################ 391 ################################################################################
390 392
391 def is_constructor_attribute(attribute): 393 def is_constructor_attribute(attribute):
392 return attribute.idl_type.endswith('Constructor') 394 return attribute.idl_type.endswith('Constructor')
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/templates/attributes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698