blob: eaa8603c7354a5c8e71e9a2e6161824063804fb6 [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.
#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_);
ScriptWrappable::Trace(visitor);
}
} // namespace blink