Gecko:Printing API: Difference between revisions

IDL updates
(add editors section)
(IDL updates)
Line 35: Line 35:
  });
  });


== IDL addition ==
== IDL additions ==
 
interface WindowEventHandlers {
attribute EventHandler onprint;
...
};


  interface PrintPageHandler {
  interface PrintPageHandler {
  Promise getPageElement(PrintState state);
  Promise getPageElement(PrintState state);
  }
  };
   
   
  interface PrintState {
  interface PrintState {
Line 46: Line 51:
  readonly attribute double currentPage;
  readonly attribute double currentPage;
  readonly attribute boolean isPreview;
  readonly attribute boolean isPreview;
  }
  };
   
   
  dictionary PrintOptions {
  dictionary PrintOptions {
Line 54: Line 59:
  };
  };
   
   
  interface Printing {
  interface WindowPrinting {
   Promise startPrintJob(PrintPageHandler handler,
   Promise startPrintJob(PrintPageHandler handler,
   optional (unrestricted double or PrintOptions) options);
   optional (unrestricted double or PrintOptions) options);
  };
  };
   
   
  Window implements Printing;
  Window implements WindowPrinting;


== Bugs ==
== Bugs ==
31

edits