blob: 230eb8da2556a0d670054d8726af0890749e21a7 [file] [log] [blame]
// Copyright 2020 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_LAYER_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_XR_XR_LAYER_H_
#include "third_party/blink/renderer/core/dom/events/event_target.h"
namespace blink {
class XRSession;
class XRLayer : public EventTargetWithInlineData {
DEFINE_WRAPPERTYPEINFO();
public:
explicit XRLayer(XRSession*);
~XRLayer() override = default;
XRSession* session() const { return session_; }
// EventTarget overrides.
ExecutionContext* GetExecutionContext() const override;
const AtomicString& InterfaceName() const override;
void Trace(Visitor*) const override;
private:
const Member<XRSession> session_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_XR_XR_LAYER_H_