Lines Matching refs:xpcom
39 import xpcom.components
40 import xpcom._xpcom
41 import xpcom.nsError
43 MakeVariant = xpcom._xpcom.MakeVariant
52 component_iid = xpcom.components.ID("{7EE4BDC6-CB53-42c1-A9E4-616B8E012ABA}")
53 new_iid = xpcom.components.ID("{2AF747D3-ECBC-457b-9AF9-5C5D80EDC360}")
81 if xpcom.verbose:
128 if xpcom.verbose:
255 test_attribute(c, "iid_value", component_iid, xpcom._xpcom.IID(new_iid))
300 test_method(c.do_nsISupportsIs, (xpcom._xpcom.IID_nsISupports,), c)
301 test_method(c.do_nsISupportsIs, (xpcom.components.interfaces.nsIPythonTestInterface,), c)
302 ## test_method(c.do_nsISupportsIs2, (xpcom.components.interfaces.nsIPythonTestInterface,c), (xpcom.components.interfaces.nsIPythonTestInterface,c))
303 ## test_method(c.do_nsISupportsIs3, (c,), (xpcom.components.interfaces.nsIPythonTestInterface,c))
304 ## test_method(c.do_nsISupportsIs4, (), (xpcom.components.interfaces.nsIPythonTestInterface,c))
313 i = xpcom.components.interfaces.nsIPythonTestInterface
384 expected = [xpcom.components.interfaces.nsIPythonTestInterfaceDOMStrings, xpcom.components.classes[contractid].clsid]
387 val = [xpcom.components.interfaces.nsIPythonTestInterfaceExtra, xpcom.components.classes[contractid].clsid]
411 sup = c.queryInterface(xpcom.components.interfaces.nsISupports)._comobj_
425 c = c.queryInterface(xpcom.components.interfaces.nsIPythonTestInterfaceDOMStrings)
450 c = xpcom.client.Component(contractid, xpcom.components.interfaces.nsIPythonTestInterfaceExtra)
452 ret = c.do_nsISupportsIs( xpcom._xpcom.IID_nsIInterfaceInfoManager )
455 except xpcom.Exception, details:
456 if details.errno != xpcom.nsError.NS_ERROR_NO_INTERFACE:
464 c = xpcom.client.Component(contractid, xpcom.components.interfaces.nsIPythonTestInterface)
467 c = xpcom.client.Component(contractid, xpcom.components.interfaces.nsIPythonTestInterfaceExtra)
471 c = xpcom.components.classes[contractid].createInstance()
477 c = xpcom.components.classes[contractid].createInstance()
517 xpcom.verbose = 1
571 xpcom._xpcom.NS_ShutdownXPCOM()
572 ni = xpcom._xpcom._GetInterfaceCount()
573 ng = xpcom._xpcom._GetGatewayCount()