Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(26)  |  Call(16)  |  Derive(0)  |  Import(10)

src/v/b/vboxweb-HEAD/xpcom/server/policy.py   vboxweb(Download)
    if ci is None:
        ci = DefaultClassInfo(klass)
        ci = xpcom.server.WrapObject(ci, _xpcom.IID_nsIClassInfo, bWrapClient = 0)
        class_info_cache[klass] = ci
    return ci
            # do the auto-wrap for us - but this way we prevent a round-trip back into Python
            # code just for the autowrap.
            return xpcom.server.WrapObject(self._obj_, iid, bWrapClient = 0)
 
        # Always support nsIClassInfo 
        attr, cvt = _supports_primitives_map_.get(iid, (None,None))
        if attr is not None and hasattr(self._obj_, attr):
            return xpcom.server.WrapObject(SupportsPrimitive(iid, self._obj_, attr, cvt), iid, bWrapClient = 0)
        # Out of clever things to try!
        return None # We dont support this IID.

src/p/y/pyjs-HEAD/pyjs/runners/hula.py   pyjs(Download)
    def _addXMLHttpRequestEventListener(self, node, event_name, event_fn):
 
        listener = xpcom.server.WrapObject(ContentInvoker(node, event_fn),
                                            interfaces.nsIDOMEventListener)
        node.addEventListener(event_name, listener, False)
        return listener
 
    def addEventListener(self, node, event_name, event_fn):
 
        listener = xpcom.server.WrapObject(ContentInvoker(node, event_fn),
    def _addWindowEventListener(self, event_name, event_fn, win=None):
 
        if win is None:
            win = self.window_root
        listener = xpcom.server.WrapObject(ContentInvoker(win, event_fn),
 
        # create the callback object (nsITimerCallback)
        cb = xpcom.server.WrapObject(nsITimerCallback(func),
                                     interfaces.nsITimerCallback)
 

src/v/b/vboxweb-HEAD/xpcom/components.py   vboxweb(Download)
# observer alive ourself, and must keep the COM object alive,
# _not_ just the Python instance!!!
_shutdownObserver = xpcom.server.WrapObject(_ShutdownObserver(), interfaces.nsIObserver)
# Say we want a weak ref due to an assertion failing.  If this is fixed, we can pass 0,
# and remove the lifetime hacks above!  See http://bugzilla.mozilla.org/show_bug.cgi?id=99163

src/s/u/Sublime-Text-2-Plugins---Settings-HEAD/plugins/SublimeCodeIntel/libs/koXMLDatasetInfo.py   Sublime-Text-2-Plugins---Settings(Download)
    try:
        from xpcom import components, _xpcom
        from xpcom.server import WrapObject, UnwrapObject
        from xpcom._xpcom import PROXY_SYNC, PROXY_ALWAYS, PROXY_ASYNC, getProxyForObject
        _xpcom_ = True
                PROXY_ALWAYS | PROXY_SYNC)
 
            self._wrapped = WrapObject(self, components.interfaces.nsIObserver)
            self._prefSvc.prefs.prefObserverService.addObserver(self._wrapped,'xmlCatalogPaths',0);
 

src/s/u/SublimeText2-Config-HEAD/Packages/SublimeCodeIntel/libs/koXMLDatasetInfo.py   SublimeText2-Config(Download)
    try:
        from xpcom import components, _xpcom
        from xpcom.server import WrapObject, UnwrapObject
        from xpcom._xpcom import PROXY_SYNC, PROXY_ALWAYS, PROXY_ASYNC, getProxyForObject
        _xpcom_ = True
                PROXY_ALWAYS | PROXY_SYNC)
 
            self._wrapped = WrapObject(self, components.interfaces.nsIObserver)
            self._prefSvc.prefs.prefObserverService.addObserver(self._wrapped,'xmlCatalogPaths',0);
 

src/s/u/sublime-text-2-packages-HEAD/SublimeCodeIntel/libs/koXMLDatasetInfo.py   sublime-text-2-packages(Download)
    try:
        from xpcom import components, _xpcom
        from xpcom.server import WrapObject, UnwrapObject
        from xpcom._xpcom import PROXY_SYNC, PROXY_ALWAYS, PROXY_ASYNC, getProxyForObject
        _xpcom_ = True
                PROXY_ALWAYS | PROXY_SYNC)
 
            self._wrapped = WrapObject(self, components.interfaces.nsIObserver)
            self._prefSvc.prefs.prefObserverService.addObserver(self._wrapped,'xmlCatalogPaths',0);
 

src/f/e/FED-Sublime-Settings-HEAD/SublimeCodeIntel/libs/koXMLDatasetInfo.py   FED-Sublime-Settings(Download)
    try:
        from xpcom import components, _xpcom
        from xpcom.server import WrapObject
        _xpcom_ = True
    except ImportError:
                    components.interfaces.koIPrefService)
 
            self._wrapped = WrapObject(self, components.interfaces.nsIObserver)
            self._prefSvc.prefs.prefObserverService.addObserver(
                self._wrapped, 'xmlCatalogPaths', 0)

src/p/y/pyjs-HEAD/pyjs/runners/sessionhistory.py   pyjs(Download)
    def __init__(self):
        gobject.GObject.__init__(self)
 
        self._wrapped_self = xpcom.server.WrapObject( \
                self, interfaces.nsISHistoryListener)

src/p/y/pyjs-HEAD/pyjs/runners/progresslistener.py   pyjs(Download)
 
        self._wrapped_self = xpcom.server.WrapObject( \
                self, interfaces.nsIWebProgressListener)
        weak_ref = xpcom.client.WeakReference(self._wrapped_self)
 

src/p/y/pyjx-0.1.3/pyjs/runners/sessionhistory.py   pyjx(Download)
    def __init__(self):
        gobject.GObject.__init__(self)
 
        self._wrapped_self = xpcom.server.WrapObject( \
                self, interfaces.nsISHistoryListener)

  1 | 2  Next