зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2ac7b8da9b
Коммит
e0862137aa
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче