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

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

Issue 1083003004: bindings: Moves toV8 and v8SetReturnValue out to ToV8.h and V8Binding.h. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 5 years, 8 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/core/v8/v8.gypi ('k') | Source/bindings/templates/interface.h » ('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 # coding=utf-8 2 # coding=utf-8
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 'conditional_string': conditional_string(interface), # [Conditional] 167 'conditional_string': conditional_string(interface), # [Conditional]
168 'cpp_class': cpp_class_name, 168 'cpp_class': cpp_class_name,
169 'cpp_class_or_partial': cpp_class_name_or_partial, 169 'cpp_class_or_partial': cpp_class_name_or_partial,
170 'event_target_inheritance': 'InheritFromEventTarget' if is_event_target else 'NotInheritFromEventTarget', 170 'event_target_inheritance': 'InheritFromEventTarget' if is_event_target else 'NotInheritFromEventTarget',
171 'gc_type': this_gc_type, 171 'gc_type': this_gc_type,
172 # FIXME: Remove 'EventTarget' special handling, http://crbug.com/383699 172 # FIXME: Remove 'EventTarget' special handling, http://crbug.com/383699
173 'has_access_check_callbacks': (is_check_security and 173 'has_access_check_callbacks': (is_check_security and
174 interface.name != 'Window' and 174 interface.name != 'Window' and
175 interface.name != 'EventTarget'), 175 interface.name != 'EventTarget'),
176 'has_custom_legacy_call_as_function': has_extended_attribute_value(inter face, 'Custom', 'LegacyCallAsFunction'), # [Custom=LegacyCallAsFunction] 176 'has_custom_legacy_call_as_function': has_extended_attribute_value(inter face, 'Custom', 'LegacyCallAsFunction'), # [Custom=LegacyCallAsFunction]
177 'has_custom_to_v8': has_extended_attribute_value(interface, 'Custom', 'T oV8'), # [Custom=ToV8]
178 'has_partial_interface': len(interface.partial_interfaces) > 0, 177 'has_partial_interface': len(interface.partial_interfaces) > 0,
179 'has_visit_dom_wrapper': has_visit_dom_wrapper, 178 'has_visit_dom_wrapper': has_visit_dom_wrapper,
180 'header_includes': header_includes, 179 'header_includes': header_includes,
181 'interface_name': interface.name, 180 'interface_name': interface.name,
182 'is_active_dom_object': is_active_dom_object, 181 'is_active_dom_object': is_active_dom_object,
183 'is_array_buffer_or_view': is_array_buffer_or_view, 182 'is_array_buffer_or_view': is_array_buffer_or_view,
184 'is_check_security': is_check_security, 183 'is_check_security': is_check_security,
185 'is_event_target': is_event_target, 184 'is_event_target': is_event_target,
186 'is_exception': interface.is_exception, 185 'is_exception': interface.is_exception,
187 'is_node': inherits_interface(interface.name, 'Node'), 186 'is_node': inherits_interface(interface.name, 'Node'),
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 1333
1335 extended_attributes = deleter.extended_attributes 1334 extended_attributes = deleter.extended_attributes
1336 idl_type = deleter.idl_type 1335 idl_type = deleter.idl_type
1337 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete r, 'CallWith', 'ScriptState') 1336 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete r, 'CallWith', 'ScriptState')
1338 return { 1337 return {
1339 'is_call_with_script_state': is_call_with_script_state, 1338 'is_call_with_script_state': is_call_with_script_state,
1340 'is_custom': 'Custom' in extended_attributes, 1339 'is_custom': 'Custom' in extended_attributes,
1341 'is_raises_exception': 'RaisesException' in extended_attributes, 1340 'is_raises_exception': 'RaisesException' in extended_attributes,
1342 'name': cpp_name(deleter), 1341 'name': cpp_name(deleter),
1343 } 1342 }
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/v8.gypi ('k') | Source/bindings/templates/interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698