/* 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/. */ var Cu = Components.utils; var Ci = Components.interfaces; const { require } = Cu.import("resource://devtools/shared/Loader.jsm", {}); const { getDevices, getDeviceString } = require("devtools/client/shared/devices"); const { Simulators, Simulator } = require("devtools/client/webide/modules/simulators"); const Services = require("Services"); const EventEmitter = require("devtools/shared/event-emitter"); const promise = require("promise"); const utils = require("devtools/client/webide/modules/utils"); const Strings = Services.strings.createBundle("chrome://devtools/locale/webide.properties"); var SimulatorEditor = { // Available Firefox OS Simulator addons (key: `addon.id`). _addons: {}, // Available device simulation profiles (key: `device.name`). _devices: {}, // The names of supported simulation options. _deviceOptions: [], // The