DragTargetParentContext.sys.mjs (1040B)
1 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ 2 /* This Target Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 import { DragParentContextBase } from "./DragParentContextBase.sys.mjs"; 7 8 /* global content */ 9 export class DragTargetParentContext extends DragParentContextBase { 10 constructor(aBrowsingContext, aParams, aSpecialPowers) { 11 super("dragTarget", aBrowsingContext, aParams, aSpecialPowers); 12 } 13 14 initialize() { 15 return this.runRemoteFn( 16 params => { 17 let { createDragTargetChildContext } = ChromeUtils.importESModule( 18 "chrome://mochikit/content/tests/SimpleTest/DragTargetChildContext.sys.mjs" 19 ); 20 // eslint-disable-next-line no-undef 21 createDragTargetChildContext(content.window, params, ok, is, info); 22 }, 23 [this.params] 24 ); 25 } 26 27 checkDropOrDragLeave() { 28 return this.runRemote("checkDropOrDragLeave"); 29 } 30 }