blob: b9f495fa40d36a650453b9e7007805e660e50847 [file] [log] [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/xr/xr_layer.h"
#include "third_party/blink/renderer/modules/event_target_modules.h"
#include "third_party/blink/renderer/modules/xr/xr_session.h"
namespace blink {
XRLayer::XRLayer(XRSession* session) : session_(session) {}
ExecutionContext* XRLayer::GetExecutionContext() const {
return session_->GetExecutionContext();
}
const AtomicString& XRLayer::InterfaceName() const {
return event_target_names::kXRLayer;
}
void XRLayer::Trace(Visitor* visitor) const {
visitor->Trace(session_);
EventTargetWithInlineData::Trace(visitor);
}
} // namespace blink