// chrome/browser/lens/core/mojom/polygon.mojom-webui.ts is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import { mojo } from '//resources/mojo/mojo/public/js/bindings.js';
export const PolygonSpec = { $: {} };
export const VertexSpec = { $: {} };
export const Polygon_VertexOrderingSpec = { $: mojo.internal.Enum() };
export var Polygon_VertexOrdering;
(function (Polygon_VertexOrdering) {
    Polygon_VertexOrdering[Polygon_VertexOrdering["MIN_VALUE"] = 0] = "MIN_VALUE";
    Polygon_VertexOrdering[Polygon_VertexOrdering["MAX_VALUE"] = 2] = "MAX_VALUE";
    Polygon_VertexOrdering[Polygon_VertexOrdering["kUnspecified"] = 0] = "kUnspecified";
    Polygon_VertexOrdering[Polygon_VertexOrdering["kClockwise"] = 1] = "kClockwise";
    Polygon_VertexOrdering[Polygon_VertexOrdering["kCounterClockwise"] = 2] = "kCounterClockwise";
})(Polygon_VertexOrdering || (Polygon_VertexOrdering = {}));
export const Polygon_CoordinateTypeSpec = { $: mojo.internal.Enum() };
export var Polygon_CoordinateType;
(function (Polygon_CoordinateType) {
    Polygon_CoordinateType[Polygon_CoordinateType["MIN_VALUE"] = 0] = "MIN_VALUE";
    Polygon_CoordinateType[Polygon_CoordinateType["MAX_VALUE"] = 2] = "MAX_VALUE";
    Polygon_CoordinateType[Polygon_CoordinateType["kUnspecified"] = 0] = "kUnspecified";
    Polygon_CoordinateType[Polygon_CoordinateType["kNormalized"] = 1] = "kNormalized";
    Polygon_CoordinateType[Polygon_CoordinateType["kImage"] = 2] = "kImage";
})(Polygon_CoordinateType || (Polygon_CoordinateType = {}));
mojo.internal.Struct(PolygonSpec.$, 'Polygon', [
    mojo.internal.StructField('vertex', 0, 0, mojo.internal.Array(VertexSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('vertexOrdering', 8, 0, Polygon_VertexOrderingSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('coordinateType', 12, 0, Polygon_CoordinateTypeSpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(VertexSpec.$, 'Vertex', [
    mojo.internal.StructField('x', 0, 0, mojo.internal.Float, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('y', 4, 0, mojo.internal.Float, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
