Commit 364da311 authored by jl@opera.com's avatar jl@opera.com

IDL: Add Function and VoidFunction as built-in callback function types

They are included as "common definitions" in WebIDL and can thus be used
by other specifications without definition.

Review URL: https://codereview.chromium.org/715233003

git-svn-id: svn://svn.chromium.org/blink/trunk@185216 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent c2f6b2ff
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment