31
edits
Tschneider (talk | contribs) (add editors section) |
Tschneider (talk | contribs) (IDL updates) |
||
| Line 35: | Line 35: | ||
}); | }); | ||
== IDL | == 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 | interface WindowPrinting { | ||
Promise startPrintJob(PrintPageHandler handler, | Promise startPrintJob(PrintPageHandler handler, | ||
optional (unrestricted double or PrintOptions) options); | optional (unrestricted double or PrintOptions) options); | ||
}; | }; | ||
Window implements | Window implements WindowPrinting; | ||
== Bugs == | == Bugs == | ||
edits