| Index: tools/dom/scripts/idlparser.py
|
| ===================================================================
|
| --- tools/dom/scripts/idlparser.py (revision 22764)
|
| +++ tools/dom/scripts/idlparser.py (working copy)
|
| @@ -90,13 +90,19 @@
|
| [MAYBE(_Annotations), MAYBE(ExtAttrs), 'module', Id,
|
| '{', _Definitions, '}', MAYBE(';')])
|
|
|
| + def Callback():
|
| + return ['callback']
|
| +
|
| + def Partial():
|
| + return ['partial']
|
| +
|
| def Interface():
|
| return syntax_switch(
|
| # Web IDL:
|
| - [MAYBE(ExtAttrs), 'interface', Id, MAYBE(_ParentInterfaces),
|
| + [MAYBE(ExtAttrs), MAYBE(Partial), MAYBE(Callback), 'interface', Id, MAYBE(_ParentInterfaces),
|
| MAYBE(['{', MAYBE(MANY(_Member)), '}']), ';'],
|
| # WebKit:
|
| - [MAYBE(ExtAttrs), OR('interface', 'exception'), MAYBE(ExtAttrs), Id, MAYBE(_ParentInterfaces),
|
| + [MAYBE(ExtAttrs), MAYBE(Partial), MAYBE(Callback), OR('interface', 'exception'), MAYBE(ExtAttrs), Id, MAYBE(_ParentInterfaces),
|
| MAYBE(['{', MAYBE(MANY(_Member)), '}']), MAYBE(';')],
|
| # FremontCut:
|
| [MAYBE(_Annotations), MAYBE(ExtAttrs), 'interface',
|
| @@ -206,7 +212,7 @@
|
| [MAYBE(ExtAttrs), MAYBE(Static), MAYBE(Stringifier), MAYBE(_Specials),
|
| ReturnType, MAYBE(Id), '(', _Arguments, ')', ';'],
|
| # WebKit:
|
| - [MAYBE(ExtAttrs), MAYBE(Static),
|
| + [MAYBE(ExtAttrs), MAYBE(Static), MAYBE(_AttrGetterSetter),
|
| ReturnType, MAYBE(Id), '(', _Arguments, ')', ';'],
|
| # FremontCut:
|
| [MAYBE(_Annotations), MAYBE(ExtAttrs), MAYBE(Static), MAYBE(Stringifier),
|
|
|