tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

XRBoundedReferenceSpace.h (1374B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef mozilla_dom_XRBoundedReferenceSpace_h_
      8 #define mozilla_dom_XRBoundedReferenceSpace_h_
      9 
     10 #include "gfxVR.h"
     11 #include "mozilla/DOMEventTargetHelper.h"
     12 #include "mozilla/dom/WebXRBinding.h"
     13 #include "mozilla/dom/XRReferenceSpace.h"
     14 
     15 namespace mozilla::dom {
     16 
     17 class DOMPointReadOnly;
     18 class XRSession;
     19 
     20 class XRBoundedReferenceSpace final : public XRReferenceSpace {
     21 public:
     22  explicit XRBoundedReferenceSpace(nsIGlobalObject* aParent,
     23                                   XRSession* aSession,
     24                                   XRNativeOrigin* aNativeOrigin);
     25 
     26  // WebIDL Boilerplate
     27  JSObject* WrapObject(JSContext* aCx,
     28                       JS::Handle<JSObject*> aGivenProto) override;
     29 
     30  // WebIDL Members
     31  void GetBoundsGeometry(nsTArray<RefPtr<DOMPointReadOnly>>& result);
     32  already_AddRefed<XRReferenceSpace> GetOffsetReferenceSpace(
     33      const XRRigidTransform& aOriginOffset) override;
     34 
     35 protected:
     36  virtual ~XRBoundedReferenceSpace() = default;
     37 };
     38 
     39 }  // namespace mozilla::dom
     40 
     41 #endif  // mozilla_dom_XRBoundedReferenceSpace_h_