From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- devtools/client/inspector/grids/types.js | 57 ++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 devtools/client/inspector/grids/types.js (limited to 'devtools/client/inspector/grids/types.js') diff --git a/devtools/client/inspector/grids/types.js b/devtools/client/inspector/grids/types.js new file mode 100644 index 0000000000..b2a936fef2 --- /dev/null +++ b/devtools/client/inspector/grids/types.js @@ -0,0 +1,57 @@ +/* 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 PropTypes = require("resource://devtools/client/shared/vendor/react-prop-types.js"); + +/** + * A single grid container in the document. + */ +exports.grid = { + // The id of the grid + id: PropTypes.number, + + // The color for the grid overlay highlighter + color: PropTypes.string, + + // The text direction of the grid container + direction: PropTypes.string, + + // Whether or not the grid checkbox is disabled as a result of hitting the + // maximum number of grid highlighters shown. + disabled: PropTypes.bool, + + // The grid fragment object of the grid container + gridFragments: PropTypes.array, + + // Whether or not the grid highlighter is highlighting the grid + highlighted: PropTypes.bool, + + // Whether or not the grid is a subgrid + isSubgrid: PropTypes.bool, + + // The node front of the grid container + nodeFront: PropTypes.object, + + // If the grid is a subgrid, this references the parent node front actor ID + parentNodeActorID: PropTypes.string, + + // Array of ids belonging to the subgrid within the grid container + subgrids: PropTypes.arrayOf(PropTypes.number), + + // The writing mode of the grid container + writingMode: PropTypes.string, +}; + +/** + * The grid highlighter settings on what to display in its grid overlay in the document. + */ +exports.highlighterSettings = { + // Whether or not the grid highlighter should show the grid line numbers + showGridLineNumbers: PropTypes.bool, + + // Whether or not the grid highlighter extends the grid lines infinitely + showInfiniteLines: PropTypes.bool, +}; -- cgit v1.2.3