/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; const EventEmitter = require("devtools/shared/event-emitter"); loader.lazyRequireGetter( this, "HTMLTooltip", "devtools/client/shared/widgets/tooltip/HTMLTooltip", true ); loader.lazyRequireGetter(this, "colorUtils", "devtools/shared/css/color", true); const HTML_NS = "http://www.w3.org/1999/xhtml"; let itemIdCounter = 0; /** * Autocomplete popup UI implementation. * * @constructor * @param {Document} toolboxDoc * The toolbox document to attach the autocomplete popup panel. * @param {Object} options * An object consiting any of the following options: * - listId {String} The id for the list