Пример #1
0
 def FromHandle(self, handle):
     return reflection.InterfaceRequest(handle)
Пример #2
0
 def NewRequest(self):
     pipe = mojo_system.MessagePipe()
     return (self.Proxy(pipe.handle0),
             reflection.InterfaceRequest(pipe.handle1))
Пример #3
0
 def Convert(self, value):
     if value is None:
         return reflection.InterfaceRequest(mojo_system.Handle())
     if not isinstance(value, reflection.InterfaceRequest):
         raise TypeError('%r is not an interface request' % value)
     return value