/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* vim: set ft=javascript ts=2 et sw=2 tw=80: */ /* 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"); const {createNode} = require("devtools/client/animationinspector/utils"); const { LocalizationHelper } = require("devtools/shared/l10n"); const L10N = new LocalizationHelper("devtools/client/locales/animationinspector.properties"); // List of playback rate presets displayed in the timeline toolbar. const PLAYBACK_RATES = [.1, .25, .5, 1, 2, 5, 10]; /** * UI component responsible for displaying a playback rate selector UI. * The rendering logic is such that a predefined list of rates is generated. * If *all* animations passed to render share the same rate, then that rate is * selected in the