예제 #1
0
        public string toDataURL()
        {
            var retval = new nsAString();

            DOMHTMLElement.ToDataURL(null, null, retval);
            return(retval.ToString());
        }
예제 #2
0
 public string toDataURL(string type)
 {
     using (nsAString retval = new nsAString(), param = new nsAString(type))
     {
         DOMHTMLElement.ToDataURL(param, null, 2, retval);
         return(retval.ToString());
     }
 }
 public string ToDataURL(string type)
 {
     using (var context = new AutoJSContext(GlobalJSContextHolder.BackstageJSContext))
         using (nsAString retval = new nsAString(), param = new nsAString(type))
         {
             JsVal js = default(JsVal);
             DOMHTMLElement.ToDataURL(param, ref js, context.ContextPointer, retval);
             return(retval.ToString());
         }
 }
 public string toDataURL(string type)
 {
     using (nsAString retval = new nsAString(), param = new nsAString(type))
     {
         var instance = Xpcom.CreateInstance <nsIVariant>(Contracts.Variant);
         DOMHTMLElement.ToDataURL(param, instance, 2, retval);
         Marshal.ReleaseComObject(instance);
         return(retval.ToString());
     }
 }