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

Unified Diff: Source/bindings/scripts/idl_types.py

Issue 715233003: IDL: Add Function and VoidFunction as built-in callback function types (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/idl_types.py
diff --git a/Source/bindings/scripts/idl_types.py b/Source/bindings/scripts/idl_types.py
index b1d9bc1752a2ce907de35508976425cd78171fe7..27f9be51592937d237f49f7581c2b6e58d8db9c2 100644
--- a/Source/bindings/scripts/idl_types.py
+++ b/Source/bindings/scripts/idl_types.py
@@ -84,6 +84,13 @@ STRING_TYPES = frozenset([
'USVString',
])
+STANDARD_CALLBACK_FUNCTIONS = frozenset([
+ # http://heycam.github.io/webidl/#common-Function
+ 'Function',
+ # http://heycam.github.io/webidl/#common-VoidFunction
+ 'VoidFunction',
+])
+
################################################################################
# Inheritance
@@ -126,7 +133,7 @@ class IdlType(IdlTypeBase):
# FIXME: incorporate Nullable, etc.
# to support types like short?[] vs. short[]?, instead of treating these
# as orthogonal properties (via flags).
- callback_functions = set()
+ callback_functions = set(STANDARD_CALLBACK_FUNCTIONS)
callback_interfaces = set()
dictionaries = set()
enums = {} # name -> values
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698