1 // Copyright 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_XR_XR_SPHERICAL_HARMONICS_H_
6 #define THIRD_PARTY_BLINK_RENDERER_MODULES_XR_XR_SPHERICAL_HARMONICS_H_
7 
8 #include "device/vr/public/mojom/vr_service.mojom-blink-forward.h"
9 #include "third_party/blink/renderer/core/typed_arrays/dom_typed_array.h"
10 #include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
11 
12 namespace blink {
13 
14 class DOMPointReadOnly;
15 
16 class XRSphericalHarmonics : public ScriptWrappable {
17   DEFINE_WRAPPERTYPEINFO();
18 
19  public:
20   XRSphericalHarmonics(
21       const device::mojom::blink::XRSphericalHarmonics& spherical_harmonics);
22 
23   DOMPointReadOnly* orientation() const;
24   DOMFloat32Array* coefficients() const;
25 
26   void Trace(Visitor* visitor) override;
27 
28  private:
29   Member<DOMFloat32Array> coefficients_;
30   Member<DOMPointReadOnly> orientation_;
31 };
32 
33 }  // namespace blink
34 
35 #endif  // THIRD_PARTY_BLINK_RENDERER_MODULES_XR_XR_SPHERICAL_HARMONICS_H_
36