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

Side by Side Diff: Source/bindings/scripts/v8_methods.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/scripts/v8_attributes.py ('k') | 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 includes.update(['bindings/core/v8/ScriptCallStackFactory.h', 112 includes.update(['bindings/core/v8/ScriptCallStackFactory.h',
113 'core/inspector/ScriptArguments.h']) 113 'core/inspector/ScriptArguments.h'])
114 is_call_with_script_state = has_extended_attribute_value(method, 'CallWith', 'ScriptState') 114 is_call_with_script_state = has_extended_attribute_value(method, 'CallWith', 'ScriptState')
115 if is_call_with_script_state: 115 if is_call_with_script_state:
116 includes.add('bindings/core/v8/ScriptState.h') 116 includes.add('bindings/core/v8/ScriptState.h')
117 is_check_security_for_node = 'CheckSecurity' in extended_attributes 117 is_check_security_for_node = 'CheckSecurity' in extended_attributes
118 if is_check_security_for_node: 118 if is_check_security_for_node:
119 includes.add('bindings/core/v8/BindingSecurity.h') 119 includes.add('bindings/core/v8/BindingSecurity.h')
120 is_custom_element_callbacks = 'CustomElementCallbacks' in extended_attribute s 120 is_custom_element_callbacks = 'CustomElementCallbacks' in extended_attribute s
121 if is_custom_element_callbacks: 121 if is_custom_element_callbacks:
122 includes.add('core/dom/custom/CustomElementCallbackDispatcher.h') 122 includes.add('core/dom/custom/CustomElementProcessingStack.h')
123 123
124 is_do_not_check_security = 'DoNotCheckSecurity' in extended_attributes 124 is_do_not_check_security = 'DoNotCheckSecurity' in extended_attributes
125 125
126 is_check_security_for_frame = ( 126 is_check_security_for_frame = (
127 has_extended_attribute_value(interface, 'CheckSecurity', 'Frame') and 127 has_extended_attribute_value(interface, 'CheckSecurity', 'Frame') and
128 not is_do_not_check_security) 128 not is_do_not_check_security)
129 129
130 is_check_security_for_window = ( 130 is_check_security_for_window = (
131 has_extended_attribute_value(interface, 'CheckSecurity', 'Window') and 131 has_extended_attribute_value(interface, 'CheckSecurity', 'Window') and
132 not is_do_not_check_security) 132 not is_do_not_check_security)
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 if argument.idl_type.is_dictionary: 450 if argument.idl_type.is_dictionary:
451 # We always create impl objects for IDL dictionaries. 451 # We always create impl objects for IDL dictionaries.
452 return '%s::create()' % argument.idl_type.base_type 452 return '%s::create()' % argument.idl_type.base_type
453 if not argument.default_value: 453 if not argument.default_value:
454 return None 454 return None
455 return argument.idl_type.literal_cpp_value(argument.default_value) 455 return argument.idl_type.literal_cpp_value(argument.default_value)
456 456
457 IdlTypeBase.union_arguments = None 457 IdlTypeBase.union_arguments = None
458 IdlUnionType.union_arguments = property(union_arguments) 458 IdlUnionType.union_arguments = property(union_arguments)
459 IdlArgument.default_cpp_value = property(argument_default_cpp_value) 459 IdlArgument.default_cpp_value = property(argument_default_cpp_value)
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_attributes.py ('k') | Source/bindings/templates/attributes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698