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

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

Issue 1667213002: Don't expose nonstandard FileSystem API to Service Workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@work-bind
Patch Set: virtual/stable rebaselines Created 4 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 not attribute['is_data_type_property'] and 304 not attribute['is_data_type_property'] and
305 attribute['should_be_exposed_to_script'] 305 attribute['should_be_exposed_to_script']
306 for attribute in attributes), 306 for attribute in attributes),
307 'has_attribute_configuration': any( 307 'has_attribute_configuration': any(
308 not (attribute['exposed_test'] or 308 not (attribute['exposed_test'] or
309 attribute['runtime_enabled_function']) and 309 attribute['runtime_enabled_function']) and
310 attribute['is_data_type_property'] and 310 attribute['is_data_type_property'] and
311 attribute['should_be_exposed_to_script'] 311 attribute['should_be_exposed_to_script']
312 for attribute in attributes), 312 for attribute in attributes),
313 'has_constructor_attributes': any(attribute['constructor_type'] for attr ibute in attributes), 313 'has_constructor_attributes': any(attribute['constructor_type'] for attr ibute in attributes),
314 'needs_constructor_setter_callback': any(attribute['constructor_type'] = = attribute['name'] for attribute in attributes),
314 'has_replaceable_attributes': any(attribute['is_replaceable'] for attrib ute in attributes), 315 'has_replaceable_attributes': any(attribute['is_replaceable'] for attrib ute in attributes),
315 }) 316 })
316 317
317 # Methods 318 # Methods
318 methods = [] 319 methods = []
319 if interface.original_interface: 320 if interface.original_interface:
320 methods.extend([v8_methods.method_context(interface, operation, is_visib le=False) 321 methods.extend([v8_methods.method_context(interface, operation, is_visib le=False)
321 for operation in interface.original_interface.operations 322 for operation in interface.original_interface.operations
322 if operation.name]) 323 if operation.name])
323 methods.extend([v8_methods.method_context(interface, method) 324 methods.extend([v8_methods.method_context(interface, method)
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 1399
1399 extended_attributes = deleter.extended_attributes 1400 extended_attributes = deleter.extended_attributes
1400 idl_type = deleter.idl_type 1401 idl_type = deleter.idl_type
1401 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete r, 'CallWith', 'ScriptState') 1402 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete r, 'CallWith', 'ScriptState')
1402 return { 1403 return {
1403 'is_call_with_script_state': is_call_with_script_state, 1404 'is_call_with_script_state': is_call_with_script_state,
1404 'is_custom': 'Custom' in extended_attributes, 1405 'is_custom': 'Custom' in extended_attributes,
1405 'is_raises_exception': 'RaisesException' in extended_attributes, 1406 'is_raises_exception': 'RaisesException' in extended_attributes,
1406 'name': cpp_name(deleter), 1407 'name': cpp_name(deleter),
1407 } 1408 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698