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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 'lazy_data_attributes': v8_attributes.filter_lazy_data_attributes(attrib
utes), | 377 'lazy_data_attributes': v8_attributes.filter_lazy_data_attributes(attrib
utes), |
378 'origin_trial_attributes': v8_attributes.filter_origin_trial_enabled(att
ributes), | 378 'origin_trial_attributes': v8_attributes.filter_origin_trial_enabled(att
ributes), |
379 'runtime_enabled_attributes': v8_attributes.filter_runtime_enabled(attri
butes), | 379 'runtime_enabled_attributes': v8_attributes.filter_runtime_enabled(attri
butes), |
380 }) | 380 }) |
381 | 381 |
382 # Methods | 382 # Methods |
383 methods, iterator_method = methods_context(interface) | 383 methods, iterator_method = methods_context(interface) |
384 context.update({ | 384 context.update({ |
385 'has_origin_safe_method_setter': any(method['is_cross_origin'] and not m
ethod['is_unforgeable'] | 385 'has_origin_safe_method_setter': any(method['is_cross_origin'] and not m
ethod['is_unforgeable'] |
386 for method in methods), | 386 for method in methods), |
387 'has_private_script': (any(attribute['is_implemented_in_private_script']
for attribute in attributes) or | |
388 any(method['is_implemented_in_private_script'] fo
r method in methods)), | |
389 'iterator_method': iterator_method, | 387 'iterator_method': iterator_method, |
390 'methods': methods, | 388 'methods': methods, |
391 }) | 389 }) |
392 | 390 |
393 # Window.idl in Blink has indexed properties, but the spec says Window | 391 # Window.idl in Blink has indexed properties, but the spec says Window |
394 # interface doesn't have indexed properties, instead the WindowProxy exotic | 392 # interface doesn't have indexed properties, instead the WindowProxy exotic |
395 # object has indexed properties. Thus, Window interface must not support | 393 # object has indexed properties. Thus, Window interface must not support |
396 # iterators. | 394 # iterators. |
397 has_array_iterator = (not interface.is_partial and | 395 has_array_iterator = (not interface.is_partial and |
398 interface.has_indexed_elements and | 396 interface.has_indexed_elements and |
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1489 extended_attributes = deleter.extended_attributes | 1487 extended_attributes = deleter.extended_attributes |
1490 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete
r, 'CallWith', 'ScriptState') | 1488 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete
r, 'CallWith', 'ScriptState') |
1491 is_ce_reactions = 'CEReactions' in extended_attributes | 1489 is_ce_reactions = 'CEReactions' in extended_attributes |
1492 return { | 1490 return { |
1493 'is_call_with_script_state': is_call_with_script_state, | 1491 'is_call_with_script_state': is_call_with_script_state, |
1494 'is_ce_reactions': is_ce_reactions, | 1492 'is_ce_reactions': is_ce_reactions, |
1495 'is_custom': 'Custom' in extended_attributes, | 1493 'is_custom': 'Custom' in extended_attributes, |
1496 'is_raises_exception': 'RaisesException' in extended_attributes, | 1494 'is_raises_exception': 'RaisesException' in extended_attributes, |
1497 'name': cpp_name(deleter), | 1495 'name': cpp_name(deleter), |
1498 } | 1496 } |
OLD | NEW |