Пример #1
0
 def FromHandle(self, handle):
     return reflection.InterfaceRequest(handle)
Пример #2
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