From 32eb58af1c854fa94d592c6be0002acfdf60f285 Mon Sep 17 00:00:00 2001 From: KimlikDAO-bot Date: Sun, 2 Mar 2025 00:06:33 -0800 Subject: [PATCH] Add missing drag event handlers to HTMLElement --- externs/browser/html5.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/externs/browser/html5.js b/externs/browser/html5.js index 55f245296fb..18e32c4a3a4 100644 --- a/externs/browser/html5.js +++ b/externs/browser/html5.js @@ -1991,6 +1991,21 @@ HTMLElement.prototype.formResetCallback; */ HTMLElement.prototype.formStateRestoreCallback = function(state, reason) {}; +/** @type {?function(!DragEvent)} */ +HTMLElement.prototype.ondrag; +/** @type {?function(!DragEvent)} */ +HTMLElement.prototype.ondragend; +/** @type {?function(!DragEvent)} */ +HTMLElement.prototype.ondragenter; +/** @type {?function(!DragEvent)} */ +HTMLElement.prototype.ondragleave; +/** @type {?function(!DragEvent)} */ +HTMLElement.prototype.ondragover; +/** @type {?function(!DragEvent)} */ +HTMLElement.prototype.ondragstart; +/** @type {?function(!DragEvent)} */ +HTMLElement.prototype.ondrop; + /** * @see https://dom.spec.whatwg.org/#dictdef-getrootnodeoptions * @typedef {{