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

Side by Side Diff: Source/bindings/scripts/v8_methods.py

Issue 424163002: Enable the WebIDL [Exposed] annotation on an interface's members. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: missed renames Created 6 years, 4 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 | « Source/bindings/scripts/v8_interface.py ('k') | Source/bindings/scripts/v8_utilities.py » ('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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 'arguments_need_try_catch': arguments_need_try_catch, 137 'arguments_need_try_catch': arguments_need_try_catch,
138 'conditional_string': v8_utilities.conditional_string(method), 138 'conditional_string': v8_utilities.conditional_string(method),
139 'cpp_type': (v8_types.cpp_template_type('Nullable', idl_type.cpp_type) 139 'cpp_type': (v8_types.cpp_template_type('Nullable', idl_type.cpp_type)
140 if idl_type.is_explicit_nullable else idl_type.cpp_type), 140 if idl_type.is_explicit_nullable else idl_type.cpp_type),
141 'cpp_value': this_cpp_value, 141 'cpp_value': this_cpp_value,
142 'cpp_type_initializer': idl_type.cpp_type_initializer, 142 'cpp_type_initializer': idl_type.cpp_type_initializer,
143 'custom_registration_extended_attributes': 143 'custom_registration_extended_attributes':
144 CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES.intersection( 144 CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES.intersection(
145 extended_attributes.iterkeys()), 145 extended_attributes.iterkeys()),
146 'deprecate_as': v8_utilities.deprecate_as(method), # [DeprecateAs] 146 'deprecate_as': v8_utilities.deprecate_as(method), # [DeprecateAs]
147 'exposed_test': v8_utilities.exposed(method, interface), # [Exposed]
147 'function_template': function_template(), 148 'function_template': function_template(),
148 'has_custom_registration': is_static or 149 'has_custom_registration': is_static or
149 v8_utilities.has_extended_attribute( 150 v8_utilities.has_extended_attribute(
150 method, CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES), 151 method, CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES),
151 'has_exception_state': 152 'has_exception_state':
152 is_raises_exception or 153 is_raises_exception or
153 is_check_security_for_frame or 154 is_check_security_for_frame or
154 interface.name == 'EventTarget' or # FIXME: merge with is_check_sec urity_for_frame http://crbug.com/383699 155 interface.name == 'EventTarget' or # FIXME: merge with is_check_sec urity_for_frame http://crbug.com/383699
155 any(argument for argument in arguments 156 any(argument for argument in arguments
156 if argument.idl_type.name == 'SerializedScriptValue' or 157 if argument.idl_type.name == 'SerializedScriptValue' or
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 408
408 409
409 def argument_default_cpp_value(argument): 410 def argument_default_cpp_value(argument):
410 if not argument.default_value: 411 if not argument.default_value:
411 return None 412 return None
412 return argument.idl_type.literal_cpp_value(argument.default_value) 413 return argument.idl_type.literal_cpp_value(argument.default_value)
413 414
414 IdlType.union_arguments = property(lambda self: None) 415 IdlType.union_arguments = property(lambda self: None)
415 IdlUnionType.union_arguments = property(union_arguments) 416 IdlUnionType.union_arguments = property(union_arguments)
416 IdlArgument.default_cpp_value = property(argument_default_cpp_value) 417 IdlArgument.default_cpp_value = property(argument_default_cpp_value)
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_interface.py ('k') | Source/bindings/scripts/v8_utilities.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698