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

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

Issue 2408083003: Drop [ExperimentalCallbackFunction] (Closed)
Patch Set: Update tests and expectations Created 4 years, 2 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 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 # 13. Otherwise: if IsCallable(V) is true, and there is an entry in S that 1111 # 13. Otherwise: if IsCallable(V) is true, and there is an entry in S that
1112 # has one of the following types at position i of its type list, 1112 # has one of the following types at position i of its type list,
1113 # • a callback function type 1113 # • a callback function type
1114 # ... 1114 # ...
1115 # 1115 #
1116 # FIXME: 1116 # FIXME:
1117 # We test for functions rather than callability, which isn't strictly the 1117 # We test for functions rather than callability, which isn't strictly the
1118 # same thing. 1118 # same thing.
1119 try: 1119 try:
1120 method = next(method for idl_type, method in idl_types_methods 1120 method = next(method for idl_type, method in idl_types_methods
1121 if idl_type.is_callback_function) 1121 if idl_type.is_custom_callback_function)
1122 test = '%s->IsFunction()' % cpp_value 1122 test = '%s->IsFunction()' % cpp_value
1123 yield test, method 1123 yield test, method
1124 except StopIteration: 1124 except StopIteration:
1125 pass 1125 pass
1126 1126
1127 # 14. Otherwise: if V is any kind of object except for a native Date object, 1127 # 14. Otherwise: if V is any kind of object except for a native Date object,
1128 # a native RegExp object, and there is an entry in S that has one of the 1128 # a native RegExp object, and there is an entry in S that has one of the
1129 # following types at position i of its type list, 1129 # following types at position i of its type list,
1130 # • a sequence type 1130 # • a sequence type
1131 # ... 1131 # ...
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 extended_attributes = deleter.extended_attributes 1430 extended_attributes = deleter.extended_attributes
1431 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete r, 'CallWith', 'ScriptState') 1431 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete r, 'CallWith', 'ScriptState')
1432 is_ce_reactions = 'CEReactions' in extended_attributes 1432 is_ce_reactions = 'CEReactions' in extended_attributes
1433 return { 1433 return {
1434 'is_call_with_script_state': is_call_with_script_state, 1434 'is_call_with_script_state': is_call_with_script_state,
1435 'is_ce_reactions': is_ce_reactions, 1435 'is_ce_reactions': is_ce_reactions,
1436 'is_custom': 'Custom' in extended_attributes, 1436 'is_custom': 'Custom' in extended_attributes,
1437 'is_raises_exception': 'RaisesException' in extended_attributes, 1437 'is_raises_exception': 'RaisesException' in extended_attributes,
1438 'name': cpp_name(deleter), 1438 'name': cpp_name(deleter),
1439 } 1439 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/scripts/idl_types.py ('k') | third_party/WebKit/Source/bindings/scripts/v8_types.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698