Support ClipboardEvent in definitions generated from idl

This commit is contained in:
Shagen Ogandzhanian
2018-12-18 15:07:34 +01:00
parent d90a92ae06
commit ca4521d57d
19 changed files with 166 additions and 17 deletions
@@ -31,6 +31,7 @@ val urls = listOf(
"https://w3c.github.io/mediacapture-main/" to "org.w3c.dom.mediacapture",
"http://www.w3.org/TR/DOM-Parsing/" to "org.w3c.dom.parsing",
"https://w3c.github.io/clipboard-apis" to "org.w3c.dom.clipboard",
"https://raw.githubusercontent.com/whatwg/url/master/url.html" to "org.w3c.dom.url",
"https://www.w3.org/TR/SVG2/single-page.html" to "org.w3c.dom.svg",
@@ -108,6 +109,11 @@ val eventSpecifierMapper = mapOf<String, String>(
"ondragstart" to "DragEvent",
"ondrop" to "DragEvent",
"oncopy" to "ClipboardEvent",
"oncut" to "ClipboardEvent",
"onpaste" to "ClipboardEvent",
"onfetch" to "FetchEvent",
"onblur" to "FocusEvent",