summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/xr/xr_anchor_set.h
blob: fecd15421b2ac86acce1b5f3119f659abbc569d2 (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
// Copyright 2019 The Chromium Authors. All rights reserved.
// 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_ANCHOR_SET_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_XR_XR_ANCHOR_SET_H_

#include "third_party/blink/renderer/bindings/core/v8/iterable.h"
#include "third_party/blink/renderer/modules/xr/xr_anchor.h"
#include "third_party/blink/renderer/modules/xr/xr_setlike.h"
#include "third_party/blink/renderer/platform/bindings/script_wrappable.h"

namespace blink {

class XRAnchorSet : public ScriptWrappable, public XRSetlike<XRAnchor> {
  DEFINE_WRAPPERTYPEINFO();

 public:
  explicit XRAnchorSet(HeapHashSet<Member<XRAnchor>> anchors);

  void Trace(Visitor* visitor) override;

 protected:
  const HeapHashSet<Member<XRAnchor>>& elements() const override;

 private:
  HeapHashSet<Member<XRAnchor>> anchors_;
};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_MODULES_XR_XR_ANCHOR_SET_H_