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

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

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

            contextStack.Pop();
        }
예제 #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);
 }