summaryrefslogtreecommitdiffstats
path: root/devtools/client/inspector/fonts/actions/index.js
blob: 21597b8c414a8abd610355463ce0cfbef31a5d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* 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 { createEnum } = require("resource://devtools/client/shared/enum.js");

createEnum(
  [
    // Reset font editor to intial state.
    "RESET_EDITOR",

    // Set the font editor disabled state which prevents users from interacting with inputs.
    "SET_FONT_EDITOR_DISABLED",

    // Apply the variation settings of a font instance.
    "APPLY_FONT_VARIATION_INSTANCE",

    // Update the custom font variation instance with the current axes values.
    "UPDATE_CUSTOM_INSTANCE",

    // Update the value of a variable font axis.
    "UPDATE_AXIS_VALUE",

    // Update font editor with applicable fonts and user-defined CSS font properties.
    "UPDATE_EDITOR_STATE",

    // Update the list of fonts.
    "UPDATE_FONTS",

    // Update the preview text.
    "UPDATE_PREVIEW_TEXT",

    // Update the value of a CSS font property
    "UPDATE_PROPERTY_VALUE",

    // Update the warning message with the reason for not showing the font editor
    "UPDATE_WARNING_MESSAGE",
  ],
  module.exports
);