def __init__(self): WebView.__init__(self) self.show_all() self.load_uri(os.path.join(BASEPATH, "juego.swf"))
def __init__(self): WebView.__init__(self) self.show_all() self.load_uri(os.path.join(BASEPATH, "juego.swf"))
def __init__(self): WebView.__init__(self) window_creator = WindowCreator(self) cls = components.classes['@mozilla.org/embedcomp/window-watcher;1'] window_watcher = cls.getService(interfaces.nsIWindowWatcher) window_watcher.setWindowCreator(window_creator) self.connect('realize', self._realize_cb)
def __init__(self): WebView.__init__(self) browser = self.get_browser() self._renderer = browser.queryInterface(interfaces.nsIWebBrowserStream) cls = components.classes["@mozilla.org/network/io-service;1"] self._ioService = cls.getService(interfaces.nsIIOService) self._content_listener = ContentListener() self.__c = xpcom.server.WrapObject(self._content_listener, interfaces.nsIURIContentListener) # this isn't working, so __c is a member # weak_ref = xpcom.client.WeakReference(self.__c) browser.parentURIContentListener = self.__c
def __init__(self): WebView.__init__(self) browser = self.get_browser() self._renderer = browser.queryInterface(interfaces.nsIWebBrowserStream) cls = components.classes["@mozilla.org/network/io-service;1"] self._ioService = cls.getService(interfaces.nsIIOService) self._content_listener = ContentListener() self.__c = xpcom.server.WrapObject(self._content_listener, interfaces.nsIURIContentListener) # this isn't working, so __c is a member #weak_ref = xpcom.client.WeakReference(self.__c) browser.parentURIContentListener = self.__c
def __init__(self, application, appdir): WebView.__init__(self) self.platform = 'hulahop' self.progress = ProgressListener() self.application = application self.appdir = appdir self.already_initialised = False io_service_class = components.classes[ \ "@mozilla.org/network/io-service;1"] io_service = io_service_class.getService(interfaces.nsIIOService) # Use xpcom to turn off "offline mode" detection, which disables # access to localhost for no good reason. (Trac #6250.) io_service2 = io_service_class.getService(interfaces.nsIIOService2) io_service2.manageOfflineStatus = False self.progress.connect('loading-stop', self._loaded) self.progress.connect('loading-progress', self._loading)
def __init__(self, application, appdir): WebView.__init__(self) self.platform = 'hulahop' self.progress = ProgressListener() self.application = application self.appdir = appdir self.already_initialised = False io_service_class = components.classes[ \ "@mozilla.org/network/io-service;1"] io_service = io_service_class.getService(interfaces.nsIIOService) # Use xpcom to turn off "offline mode" detection, which disables # access to localhost for no good reason. (Trac #6250.) io_service2 = io_service_class.getService(interfaces.nsIIOService2) io_service2.manageOfflineStatus = False self.progress.connect('loading-stop', self._loaded) self.progress.connect('loading-progress', self._loading)
def __init__(self): GeckoWebView.__init__(self) io_service_class = components.classes[ \ "@mozilla.org/network/io-service;1"] io_service = io_service_class.getService(interfaces.nsIIOService) # Use xpcom to turn off "offline mode" detection, which disables # access to localhost for no good reason. (Trac #6250.) io_service2 = io_service_class.getService(interfaces.nsIIOService2) io_service2.manageOfflineStatus = False # enable typeahead cls = components.classes["@mozilla.org/typeaheadfind;1"] self.typeahead = cls.createInstance(interfaces.nsITypeAheadFind) # don't pick up the sugar theme - use the native mozilla one instead cls = components.classes['@mozilla.org/preferences-service;1'] pref_service = cls.getService(components.interfaces.nsIPrefService) branch = pref_service.getBranch("mozilla.widget.") branch.setBoolPref("disable-native-theme", True)
def __init__(self): WebView.__init__(self) self.history = HistoryListener() self.progress = ProgressListener() self.userscript = ScriptListener() cls = components.classes["@mozilla.org/typeaheadfind;1"] self.typeahead = cls.createInstance(interfaces.nsITypeAheadFind) self._jobject = None io_service_class = components.classes[ \ "@mozilla.org/network/io-service;1"] io_service = io_service_class.getService(interfaces.nsIIOService) # Use xpcom to turn off "offline mode" detection, which disables # access to localhost for no good reason. (Trac #6250.) io_service2 = io_service_class.getService(interfaces.nsIIOService2) io_service2.manageOfflineStatus = False cls = components.classes['@mozilla.org/content/style-sheet-service;1'] self.style_sheet_service = cls.getService( interfaces.nsIStyleSheetService) if os.path.exists(Browser.AGENT_SHEET): agent_sheet_uri = io_service.newURI('file:///' + Browser.AGENT_SHEET, None, None) self.style_sheet_service.loadAndRegisterSheet(agent_sheet_uri, interfaces.nsIStyleSheetService.AGENT_SHEET) if os.path.exists(Browser.USER_SHEET): self.user_sheet_uri = io_service.newURI('file:///' + Browser.USER_SHEET, None, None) self.style_sheet_service.loadAndRegisterSheet(self.user_sheet_uri, interfaces.nsIStyleSheetService.USER_SHEET)
def __init__(self): WebView.__init__(self) self.progress = ProgressListener()
def __init__(self): WebView.__init__(self)