| Index: tools/dom/scripts/idlparser.py
|
| diff --git a/tools/dom/scripts/idlparser.py b/tools/dom/scripts/idlparser.py
|
| index 7016f4d136a43a9c791aa99275166b5eee607018..01a19c2e0031bbaf5fccdde288ffb73031783635 100755
|
| --- a/tools/dom/scripts/idlparser.py
|
| +++ b/tools/dom/scripts/idlparser.py
|
| @@ -70,7 +70,7 @@ class IDLParser(object):
|
| OR(Module, Interface, ExceptionDef, TypeDef, ImplStmt,
|
| ValueTypeDef, Const, Enum),
|
| # WebKit:
|
| - OR(Module, Interface, Enum, TypeDef))
|
| + OR(Module, Interface, Enum, TypeDef, ImplStmt, CallbackDeclaration))
|
|
|
| def Enum():
|
| def StringLiteral():
|
| @@ -90,6 +90,9 @@ class IDLParser(object):
|
| [MAYBE(_Annotations), MAYBE(ExtAttrs), 'module', Id,
|
| '{', _Definitions, '}', MAYBE(';')])
|
|
|
| + def CallbackDeclaration():
|
| + return [Callback, Type, '=', Type,'(', ')', ';']
|
| +
|
| def Callback():
|
| return ['callback']
|
|
|
|
|