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

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

Issue 921683002: make window interceptors DoNoCheckSecurity (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 5 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 | Annotate | Revision Log
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 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 if is_raises_exception: 1236 if is_raises_exception:
1237 cpp_arguments.append('exceptionState') 1237 cpp_arguments.append('exceptionState')
1238 if use_output_parameter_for_result: 1238 if use_output_parameter_for_result:
1239 cpp_arguments.append('result') 1239 cpp_arguments.append('result')
1240 1240
1241 cpp_value = '%s(%s)' % (cpp_method_name, ', '.join(cpp_arguments)) 1241 cpp_value = '%s(%s)' % (cpp_method_name, ', '.join(cpp_arguments))
1242 1242
1243 return { 1243 return {
1244 'cpp_type': idl_type.cpp_type, 1244 'cpp_type': idl_type.cpp_type,
1245 'cpp_value': cpp_value, 1245 'cpp_value': cpp_value,
1246 'do_not_check_security': 'DoNotCheckSecurity' in extended_attributes,
1246 'is_custom': 1247 'is_custom':
1247 'Custom' in extended_attributes and 1248 'Custom' in extended_attributes and
1248 (not extended_attributes['Custom'] or 1249 (not extended_attributes['Custom'] or
1249 has_extended_attribute_value(getter, 'Custom', 'PropertyGetter')), 1250 has_extended_attribute_value(getter, 'Custom', 'PropertyGetter')),
1250 'is_custom_property_enumerator': has_extended_attribute_value( 1251 'is_custom_property_enumerator': has_extended_attribute_value(
1251 getter, 'Custom', 'PropertyEnumerator'), 1252 getter, 'Custom', 'PropertyEnumerator'),
1252 'is_custom_property_query': has_extended_attribute_value( 1253 'is_custom_property_query': has_extended_attribute_value(
1253 getter, 'Custom', 'PropertyQuery'), 1254 getter, 'Custom', 'PropertyQuery'),
1254 'is_enumerable': 'NotEnumerable' not in extended_attributes, 1255 'is_enumerable': 'NotEnumerable' not in extended_attributes,
1255 'is_null_expression': is_null_expression(idl_type), 1256 'is_null_expression': is_null_expression(idl_type),
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 if str(idl_type) != 'boolean': 1296 if str(idl_type) != 'boolean':
1296 raise Exception( 1297 raise Exception(
1297 'Only deleters with boolean type are allowed, but type is "%s"' % 1298 'Only deleters with boolean type are allowed, but type is "%s"' %
1298 idl_type) 1299 idl_type)
1299 extended_attributes = deleter.extended_attributes 1300 extended_attributes = deleter.extended_attributes
1300 return { 1301 return {
1301 'is_custom': 'Custom' in extended_attributes, 1302 'is_custom': 'Custom' in extended_attributes,
1302 'is_raises_exception': 'RaisesException' in extended_attributes, 1303 'is_raises_exception': 'RaisesException' in extended_attributes,
1303 'name': cpp_name(deleter), 1304 'name': cpp_name(deleter),
1304 } 1305 }
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/custom/V8WindowCustom.cpp ('k') | Source/bindings/templates/interface_base.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698