#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_session.h"
#include "third_party/blink/public/mojom/origin_trial_feature/origin_trial_feature.mojom-shared.h"
#include "third_party/blink/renderer/bindings/core/v8/frozen_array.h"
#include "third_party/blink/renderer/bindings/core/v8/generated_code_helper.h"
#include "third_party/blink/renderer/bindings/core/v8/native_value_traits_impl.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_event_handler_non_null.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_event_target.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_set_return_value_for_core.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_depth_data_format.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_depth_usage.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_dom_overlay_state.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_environment_blend_mode.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_frame_request_callback.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_hit_test_options_init.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_hit_test_source.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_image_tracking_score.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_input_source_array.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_interaction_mode.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_light_probe.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_light_probe_init.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_reference_space.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_reference_space_type.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_reflection_format.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_render_state.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_render_state_init.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_transient_input_hit_test_options_init.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_transient_input_hit_test_source.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_xr_visibility_state.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/modules/xr/xr_dom_overlay_state.h"
#include "third_party/blink/renderer/modules/xr/xr_hit_test_source.h"
#include "third_party/blink/renderer/modules/xr/xr_input_source_array.h"
#include "third_party/blink/renderer/modules/xr/xr_light_probe.h"
#include "third_party/blink/renderer/modules/xr/xr_reference_space.h"
#include "third_party/blink/renderer/modules/xr/xr_render_state.h"
#include "third_party/blink/renderer/modules/xr/xr_session.h"
#include "third_party/blink/renderer/modules/xr/xr_transient_input_hit_test_source.h"
#include "third_party/blink/renderer/platform/bindings/exception_messages.h"
#include "third_party/blink/renderer/platform/bindings/idl_member_installer.h"
#include "third_party/blink/renderer/platform/bindings/runtime_call_stats.h"
#include "third_party/blink/renderer/platform/bindings/v8_binding.h"
#include "third_party/blink/renderer/platform/bindings/wrapper_type_info.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
namespace blink {
bool V8XRSession::IsExposed(ExecutionContext* execution_context) { … }
#if defined(COMPONENT_BUILD) && defined(WIN32) && defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wglobal-constructors"
#endif
const WrapperTypeInfo V8XRSession::wrapper_type_info_{ … };
#if defined(COMPONENT_BUILD) && defined(WIN32) && defined(__clang__)
#pragma clang diagnostic pop
#endif
const WrapperTypeInfo& XRSession::wrapper_type_info_ = …;
static_assert …;
namespace {
namespace v8_xr_session {
void EnvironmentBlendModeAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void InteractionModeAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void VisibilityStateAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void FrameRateAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void SupportedFrameRatesAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void RenderStateAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void InputSourcesAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void DOMOverlayStateAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void PreferredReflectionFormatAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void EnabledFeaturesAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void IsSystemKeyboardSupportedAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnendAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnendAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnselectAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnselectAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OninputsourceschangeAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OninputsourceschangeAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnselectstartAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnselectstartAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnselectendAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnselectendAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnvisibilitychangeAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnvisibilitychangeAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnsqueezeAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnsqueezeAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnsqueezestartAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnsqueezestartAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnsqueezeendAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnsqueezeendAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnframeratechangeAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OnframeratechangeAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void DepthUsageAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void DepthDataFormatAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CancelAnimationFrameOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void EndOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void GetTrackedImageScoresOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void RequestAnimationFrameOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void RequestHitTestSourceOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void RequestHitTestSourceForTransientInputOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void RequestLightProbeOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void RequestReferenceSpaceOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void UpdateRenderStateOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void UpdateTargetFrameRateOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
}
usingnamespacev8_xr_session;
}
void V8XRSession::InstallInterfaceTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> interface_template) { … }
void V8XRSession::InstallUnconditionalProperties(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> instance_template, v8::Local<v8::Template> prototype_template, v8::Local<v8::Template> interface_template) { … }
void V8XRSession::InstallContextIndependentProperties(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> instance_template, v8::Local<v8::Template> prototype_template, v8::Local<v8::Template> interface_template) { … }
void V8XRSession::InstallContextDependentProperties(v8::Local<v8::Context> context, const DOMWrapperWorld& world, v8::Local<v8::Object> instance_object, v8::Local<v8::Object> prototype_object, v8::Local<v8::Object> interface_object, v8::Local<v8::Template> interface_template, FeatureSelector feature_selector) { … }
}