Bug 561871, part A: IPDL changes to expose ProcessNativeEventsInRPCCall from the toplevel actor, r=cjones

--HG--
extra : rebase_source : 3c5a7516aa43ba17b796b8e8757d74d634689a09
This commit is contained in:
Benjamin Smedberg 2010-04-28 11:00:13 -04:00
Родитель 2ac7b8da9b
Коммит e0862137aa
1 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@ -2995,6 +2995,24 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
# User-facing shmem methods
self.cls.addstmts(self.makeShmemIface())
if (ptype.isToplevel() and self.side is 'parent'
and ptype.talksRpc()):
processnative = MethodDefn(
MethodDecl('ProcessNativeEventsInRPCCall', ret=Type.VOID))
processnative.addstmts([
CppDirective('ifdef', 'OS_WIN'),
StmtExpr(ExprCall(
ExprSelect(p.channelVar(), '.',
'ProcessNativeEventsInRPCCall'))),
CppDirective('else'),
_runtimeAbort('This method is Windows-only'),
CppDirective('endif'),
])
self.cls.addstmts([ processnative, Whitespace.NL ])
if ptype.isToplevel() and self.side is 'parent':
## bool GetMinidump(nsIFile** dump)
self.cls.addstmt(Label.PROTECTED)