// Copyright 2026 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_XR_XR_MESH_SET_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_XR_XR_MESH_SET_H_

// This header is automatically generated by the bindings system because
// you defined "setlike<XRMesh>" in your IDL file.
#include "third_party/blink/renderer/bindings/modules/v8/v8_sync_iterator_xr_mesh_set.h"
#include "third_party/blink/renderer/modules/xr/xr_mesh.h"
#include "third_party/blink/renderer/modules/xr/xr_setlike.h"
#include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
#include "third_party/blink/renderer/platform/heap/collection_support/heap_hash_set.h"

namespace blink {

class XRMeshSet : public ScriptWrappable, public XRSetlike<XRMeshSet, XRMesh> {
  DEFINE_WRAPPERTYPEINFO();

 public:
  explicit XRMeshSet(HeapHashSet<Member<XRMesh>> meshes);

  void Trace(Visitor* visitor) const override;

 protected:
  // Implements the XRSetlike interface to expose the underlying data to JS.
  const HeapHashSet<Member<XRMesh>>& elements() const override;

 private:
  HeapHashSet<Member<XRMesh>> meshes_;
};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_MODULES_XR_XR_MESH_SET_H_
