#include "third_party/blink/renderer/bindings/core/v8/v8_selection.h"
#include "third_party/blink/public/mojom/origin_trial_feature/origin_trial_feature.mojom-shared.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_get_composed_ranges_options.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_node.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_range.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_set_return_value_for_core.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_static_range.h"
#include "third_party/blink/renderer/core/dom/node.h"
#include "third_party/blink/renderer/core/dom/range.h"
#include "third_party/blink/renderer/core/dom/static_range.h"
#include "third_party/blink/renderer/core/editing/dom_selection.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/core/html/custom/ce_reactions_scope.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 V8Selection::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 V8Selection::wrapper_type_info_{ … };
#if defined(COMPONENT_BUILD) && defined(WIN32) && defined(__clang__)
#pragma clang diagnostic pop
#endif
const WrapperTypeInfo& DOMSelection::wrapper_type_info_ = …;
static_assert …;
namespace {
namespace v8_selection {
void AnchorNodeAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void AnchorOffsetAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void FocusNodeAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void FocusOffsetAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void IsCollapsedAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void RangeCountAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void TypeAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void DirectionAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void BaseNodeAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void BaseOffsetAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ExtentNodeAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ExtentOffsetAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void AddRangeOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CollapseOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CollapseToEndOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CollapseToStartOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ContainsNodeOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void DeleteFromDocumentOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void EmptyOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ExtendOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void GetComposedRangesOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void GetRangeAtOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ModifyOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void RemoveAllRangesOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void RemoveRangeOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void SelectAllChildrenOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void SetBaseAndExtentOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void SetPositionOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ToStringOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
}
usingnamespacev8_selection;
}
void V8Selection::InstallInterfaceTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> interface_template) { … }
void V8Selection::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 V8Selection::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) { … }
}