blob: eaa8603c7354a5c8e71e9a2e6161824063804fb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// 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
|