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

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

Issue 503043003: Rename CustomElementCallbackDispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: TBR added Created 6 years, 3 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
« no previous file with comments | « Source/bindings/core/v8/custom/V8NodeCustom.cpp ('k') | Source/bindings/scripts/v8_methods.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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 idl_type.add_includes_for_type() 51 idl_type.add_includes_for_type()
52 52
53 # [CheckSecurity] 53 # [CheckSecurity]
54 is_check_security_for_node = 'CheckSecurity' in extended_attributes 54 is_check_security_for_node = 'CheckSecurity' in extended_attributes
55 if is_check_security_for_node: 55 if is_check_security_for_node:
56 includes.add('bindings/core/v8/BindingSecurity.h') 56 includes.add('bindings/core/v8/BindingSecurity.h')
57 # [CustomElementCallbacks], [Reflect] 57 # [CustomElementCallbacks], [Reflect]
58 is_custom_element_callbacks = 'CustomElementCallbacks' in extended_attribute s 58 is_custom_element_callbacks = 'CustomElementCallbacks' in extended_attribute s
59 is_reflect = 'Reflect' in extended_attributes 59 is_reflect = 'Reflect' in extended_attributes
60 if is_custom_element_callbacks or is_reflect: 60 if is_custom_element_callbacks or is_reflect:
61 includes.add('core/dom/custom/CustomElementCallbackDispatcher.h') 61 includes.add('core/dom/custom/CustomElementProcessingStack.h')
62 # [PerWorldBindings] 62 # [PerWorldBindings]
63 if 'PerWorldBindings' in extended_attributes: 63 if 'PerWorldBindings' in extended_attributes:
64 assert idl_type.is_wrapper_type or 'LogActivity' in extended_attributes, '[PerWorldBindings] should only be used with wrapper types: %s.%s' % (interface .name, attribute.name) 64 assert idl_type.is_wrapper_type or 'LogActivity' in extended_attributes, '[PerWorldBindings] should only be used with wrapper types: %s.%s' % (interface .name, attribute.name)
65 # [TypeChecking] 65 # [TypeChecking]
66 has_type_checking_unrestricted = ( 66 has_type_checking_unrestricted = (
67 (has_extended_attribute_value(interface, 'TypeChecking', 'Unrestricted') or 67 (has_extended_attribute_value(interface, 'TypeChecking', 'Unrestricted') or
68 has_extended_attribute_value(attribute, 'TypeChecking', 'Unrestricted') ) and 68 has_extended_attribute_value(attribute, 'TypeChecking', 'Unrestricted') ) and
69 idl_type.name in ('Float', 'Double')) 69 idl_type.name in ('Float', 'Double'))
70 # [ImplementedInPrivateScript] 70 # [ImplementedInPrivateScript]
71 is_implemented_in_private_script = 'ImplementedInPrivateScript' in extended_ attributes 71 is_implemented_in_private_script = 'ImplementedInPrivateScript' in extended_ attributes
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 lambda self: strip_suffix(self.base_type, 'Constructor')) 495 lambda self: strip_suffix(self.base_type, 'Constructor'))
496 496
497 497
498 def is_constructor_attribute(attribute): 498 def is_constructor_attribute(attribute):
499 # FIXME: replace this with [ConstructorAttribute] extended attribute 499 # FIXME: replace this with [ConstructorAttribute] extended attribute
500 return attribute.idl_type.name.endswith('Constructor') 500 return attribute.idl_type.name.endswith('Constructor')
501 501
502 502
503 def constructor_getter_context(interface, attribute, context): 503 def constructor_getter_context(interface, attribute, context):
504 context['needs_constructor_getter_callback'] = context['measure_as'] or cont ext['deprecate_as'] 504 context['needs_constructor_getter_callback'] = context['measure_as'] or cont ext['deprecate_as']
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/custom/V8NodeCustom.cpp ('k') | Source/bindings/scripts/v8_methods.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698