public void UnregisterStyleSheet(string sheetURI, uint type)
        {
            nsIIOService ios = Xpcom.GetService <nsIIOService>("@mozilla.org/network/io-service;1");

            ios = Xpcom.QueryInterface <nsIIOService>(ios);
            nsIURI ssURI = ios.NewURI(new nsAUTF8String(sheetURI), null, null);

            if (StyleSheetService.sheetRegistered(ssURI, type))
            {
                StyleSheetService.unregisterSheet(ssURI, type);
            }
        }
        public bool IsStyleSheetRegistered(string sheetURI, uint type)
        {
            nsIIOService ios = Xpcom.GetService <nsIIOService>("@mozilla.org/network/io-service;1");

            ios = Xpcom.QueryInterface <nsIIOService>(ios);
            nsIURI ssURI = ios.NewURI(new nsAUTF8String(sheetURI), null, null);

            if (!StyleSheetService.sheetRegistered(ssURI, type))
            {
                return(false);
            }
            return(true);
        }
Ejemplo n.º 3
0
 public void BeforeEachTestSetup()
 {
     Xpcom.Initialize(XpComTests.XulRunnerLocation);
     m_instance = Xpcom.GetService <nsIIOService>("@mozilla.org/network/io-service;1");
     Assert.IsNotNull(m_instance);
 }
Ejemplo n.º 4
0
        public static nsIIOService GetProxy(Mono.WebBrowser.IWebBrowser control, nsIIOService obj)
        {
            object o = Base.GetProxyForObject(control, typeof(nsIIOService).GUID, obj);

            return(o as nsIIOService);
        }
Ejemplo n.º 5
0
 public void BeforeEachTestSetup()
 {
     Xpcom.Initialize(XpComTests.XulRunnerLocation);
     m_instance = Xpcom.GetService<nsIIOService>("@mozilla.org/network/io-service;1");
     Assert.IsNotNull(m_instance);
 }
Ejemplo n.º 6
0
		public static nsIIOService GetProxy (Mono.WebBrowser.IWebBrowser control, nsIIOService obj)
		{
			object o = Base.GetProxyForObject (control, typeof(nsIIOService).GUID, obj);
			return o as nsIIOService;
		}