Exemplo n.º 1
0
def QueryInterface(args, traverser, node, wrapper):
    """Handles QueryInterface calls"""

    if not args:
        return

    from call_definitions import xpcom_constructor
    return xpcom_constructor('QueryInterface', True, True)(wrapper=node,
                                                           arguments=args,
                                                           traverser=traverser)
Exemplo n.º 2
0
def QueryInterface(args, traverser, node, wrapper):
    """Handles QueryInterface calls"""

    if not args:
        return

    from call_definitions import xpcom_constructor
    return xpcom_constructor('QueryInterface', True, True)(
        wrapper=node,
        arguments=args,
        traverser=traverser)
Exemplo n.º 3
0
def getInterface(args, traverser, node, wrapper):
    """Handles getInterface calls"""

    # This really only needs to be handled for nsIInterfaceRequestor
    # intarfaces, but as it's fair for code to assume that that
    # interface has already been queried and methods with this name
    # are unlikely to behave differently, we just process it for all
    # objects.

    if not args:
        return

    from call_definitions import xpcom_constructor
    return xpcom_constructor('getInterface')(wrapper=node,
                                             arguments=args,
                                             traverser=traverser)
Exemplo n.º 4
0
def getInterface(args, traverser, node, wrapper):
    """Handles getInterface calls"""

    # This really only needs to be handled for nsIInterfaceRequestor
    # intarfaces, but as it's fair for code to assume that that
    # interface has already been queried and methods with this name
    # are unlikely to behave differently, we just process it for all
    # objects.

    if not args:
        return

    from call_definitions import xpcom_constructor
    return xpcom_constructor('getInterface')(
        wrapper=node,
        arguments=args,
        traverser=traverser)