Esempio n. 1
0
 public void ImportCookies(string filename)
 {
     _cookieManager.ImportCookies((nsIFile)Xpcom.NewNativeLocalFile(filename));
 }
Esempio n. 2
0
 internal GeckoResponse(nsIRequest request)
 {
     Channel     = Xpcom.QueryInterface <nsIChannel>(request);
     HttpChannel = Xpcom.QueryInterface <nsIHttpChannel>(request);
 }
Esempio n. 3
0
        public CookieManager()
        {
            var manager = Xpcom.GetService <nsICookieManager2>("@mozilla.org/cookiemanager;1");

            _cookieManager = Xpcom.QueryInterface <nsICookieManager2>(manager);
        }
Esempio n. 4
0
 public GeckoMIMEInputStream()
 {
     InputStream = Xpcom.CreateInstance <nsIMIMEInputStream>("@mozilla.org/network/mime-input-stream;1");
 }
Esempio n. 5
0
        public void Print()
        {
            nsIWebBrowserPrint print = Xpcom.QueryInterface <nsIWebBrowserPrint>(this.DomWindow);

            print.Print(null, null);
        }
Esempio n. 6
0
        public void Dispose()
        {
            nsIJSContextStack contextStack = Xpcom.GetService <nsIJSContextStack>("@mozilla.org/js/xpc/ContextStack;1");

            contextStack.Pop();
        }
Esempio n. 7
0
 static GeckoPreferences()
 {
     // ensure we're initialized
     Xpcom.Initialize();
     PrefService = Xpcom.GetService <nsIPrefService>("@mozilla.org/preferences-service;1");
 }
 public GeckoStyleSheetService()
 {
     StyleSheetService = Xpcom.GetService <nsIStyleSheetService>("@mozilla.org/content/style-sheet-service;1");
     StyleSheetService = Xpcom.QueryInterface <nsIStyleSheetService>(StyleSheetService);
 }