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

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

Issue 1667653002: V8-binding: Use v8::Template::SetNativeDataProperty without setter for [Replaceable]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved the [LenientThis] test to http/tests/. Created 4 years, 9 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 attribute['runtime_enabled_function']) and 295 attribute['runtime_enabled_function']) and
296 not attribute['is_data_type_property'] and 296 not attribute['is_data_type_property'] and
297 attribute['should_be_exposed_to_script'] 297 attribute['should_be_exposed_to_script']
298 for attribute in attributes), 298 for attribute in attributes),
299 'has_attribute_configuration': any( 299 'has_attribute_configuration': any(
300 not (attribute['exposed_test'] or 300 not (attribute['exposed_test'] or
301 attribute['runtime_enabled_function']) and 301 attribute['runtime_enabled_function']) and
302 attribute['is_data_type_property'] and 302 attribute['is_data_type_property'] and
303 attribute['should_be_exposed_to_script'] 303 attribute['should_be_exposed_to_script']
304 for attribute in attributes), 304 for attribute in attributes),
305 'has_constructor_attributes': any(attribute['constructor_type'] for attr ibute in attributes), 305 'has_constructor_attributes': any(
306 'needs_constructor_setter_callback': any(attribute['constructor_type'] = = attribute['name'] for attribute in attributes), 306 attribute['constructor_type']
307 'has_replaceable_attributes': any(attribute['is_replaceable'] for attrib ute in attributes), 307 for attribute in attributes),
308 'has_replaceable_attributes': any(
309 attribute['is_replaceable'] and
310 not attribute['is_data_type_property']
311 for attribute in attributes),
308 }) 312 })
309 313
310 # Methods 314 # Methods
311 methods = [] 315 methods = []
312 if interface.original_interface: 316 if interface.original_interface:
313 methods.extend([v8_methods.method_context(interface, operation, is_visib le=False) 317 methods.extend([v8_methods.method_context(interface, operation, is_visib le=False)
314 for operation in interface.original_interface.operations 318 for operation in interface.original_interface.operations
315 if operation.name]) 319 if operation.name])
316 methods.extend([v8_methods.method_context(interface, method) 320 methods.extend([v8_methods.method_context(interface, method)
317 for method in interface.operations 321 for method in interface.operations
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 1395
1392 extended_attributes = deleter.extended_attributes 1396 extended_attributes = deleter.extended_attributes
1393 idl_type = deleter.idl_type 1397 idl_type = deleter.idl_type
1394 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete r, 'CallWith', 'ScriptState') 1398 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete r, 'CallWith', 'ScriptState')
1395 return { 1399 return {
1396 'is_call_with_script_state': is_call_with_script_state, 1400 'is_call_with_script_state': is_call_with_script_state,
1397 'is_custom': 'Custom' in extended_attributes, 1401 'is_custom': 'Custom' in extended_attributes,
1398 'is_raises_exception': 'RaisesException' in extended_attributes, 1402 'is_raises_exception': 'RaisesException' in extended_attributes,
1399 'name': cpp_name(deleter), 1403 'name': cpp_name(deleter),
1400 } 1404 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698