| OLD | NEW |
| 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 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1234 cpp_method_name = 'impl->%s' % cpp_name(getter) | 1234 cpp_method_name = 'impl->%s' % cpp_name(getter) |
| 1235 | 1235 |
| 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 'all_can_read': 'AllCanRead' in extended_attributes, |
| 1244 'cpp_type': idl_type.cpp_type, | 1245 'cpp_type': idl_type.cpp_type, |
| 1245 'cpp_value': cpp_value, | 1246 'cpp_value': cpp_value, |
| 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'), |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |