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

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

Issue 2687873005: Remove eventTargetInheritance from WrapperTypeInfo (Closed)
Patch Set: Created 3 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
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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 cpp_class_name_or_partial = cpp_name_or_partial(interface) 225 cpp_class_name_or_partial = cpp_name_or_partial(interface)
226 v8_class_name_or_partial = v8_utilities.v8_class_name_or_partial(interface) 226 v8_class_name_or_partial = v8_utilities.v8_class_name_or_partial(interface)
227 227
228 # TODO(peria): Generate the target list from 'Window' and 'HTMLDocument'. 228 # TODO(peria): Generate the target list from 'Window' and 'HTMLDocument'.
229 needs_runtime_enabled_installer = v8_class_name in [ 229 needs_runtime_enabled_installer = v8_class_name in [
230 'V8Window', 'V8HTMLDocument', 'V8Document', 'V8Node', 'V8EventTarget'] 230 'V8Window', 'V8HTMLDocument', 'V8Document', 'V8Node', 'V8EventTarget']
231 231
232 context = { 232 context = {
233 'cpp_class': cpp_class_name, 233 'cpp_class': cpp_class_name,
234 'cpp_class_or_partial': cpp_class_name_or_partial, 234 'cpp_class_or_partial': cpp_class_name_or_partial,
235 'event_target_inheritance': 'InheritFromEventTarget' if is_event_target else 'NotInheritFromEventTarget',
236 'is_gc_type': True, 235 'is_gc_type': True,
237 # FIXME: Remove 'EventTarget' special handling, http://crbug.com/383699 236 # FIXME: Remove 'EventTarget' special handling, http://crbug.com/383699
238 'has_access_check_callbacks': (is_check_security and 237 'has_access_check_callbacks': (is_check_security and
239 interface.name != 'EventTarget'), 238 interface.name != 'EventTarget'),
240 'has_custom_legacy_call_as_function': has_extended_attribute_value(inter face, 'Custom', 'LegacyCallAsFunction'), # [Custom=LegacyCallAsFunction] 239 'has_custom_legacy_call_as_function': has_extended_attribute_value(inter face, 'Custom', 'LegacyCallAsFunction'), # [Custom=LegacyCallAsFunction]
241 'has_partial_interface': len(interface.partial_interfaces) > 0, 240 'has_partial_interface': len(interface.partial_interfaces) > 0,
242 'header_includes': header_includes, 241 'header_includes': header_includes,
243 'interface_name': interface.name, 242 'interface_name': interface.name,
244 'is_array_buffer_or_view': is_array_buffer_or_view, 243 'is_array_buffer_or_view': is_array_buffer_or_view,
245 'is_check_security': is_check_security, 244 'is_check_security': is_check_security,
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 extended_attributes = deleter.extended_attributes 1478 extended_attributes = deleter.extended_attributes
1480 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete r, 'CallWith', 'ScriptState') 1479 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete r, 'CallWith', 'ScriptState')
1481 is_ce_reactions = 'CEReactions' in extended_attributes 1480 is_ce_reactions = 'CEReactions' in extended_attributes
1482 return { 1481 return {
1483 'is_call_with_script_state': is_call_with_script_state, 1482 'is_call_with_script_state': is_call_with_script_state,
1484 'is_ce_reactions': is_ce_reactions, 1483 'is_ce_reactions': is_ce_reactions,
1485 'is_custom': 'Custom' in extended_attributes, 1484 'is_custom': 'Custom' in extended_attributes,
1486 'is_raises_exception': 'RaisesException' in extended_attributes, 1485 'is_raises_exception': 'RaisesException' in extended_attributes,
1487 'name': cpp_name(deleter), 1486 'name': cpp_name(deleter),
1488 } 1487 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698