@triniwiz/nativescript-masonkit 1.0.0-alpha.4 → 1.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common.d.ts +7 -9
- package/common.js +277 -552
- package/common.js.map +1 -1
- package/helpers.d.ts +32 -10
- package/helpers.js +772 -286
- package/helpers.js.map +1 -1
- package/index.android.d.ts +6 -2
- package/index.android.js +21 -3
- package/index.android.js.map +1 -1
- package/index.d.ts +64 -7
- package/index.ios.d.ts +9 -6
- package/index.ios.js +39 -25
- package/index.ios.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/include.gradle +18 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +108 -64
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +47 -20
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +6692 -794
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +216 -128
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +47 -20
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +6692 -794
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +6692 -794
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +58 -21
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +43 -43
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/build.xcconfig +1 -2
- package/platforms/ios/src/MasonV8Module.h +583 -0
- package/platforms/ios/src/MasonV8Module.mm +1005 -0
- package/platforms/ios/src/{include → cpp/include}/mason_native.h +47 -20
- package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
- package/platforms/ios/src/module.modulemap +2 -2
- package/platforms/new_native_src/cpp/Caches.cpp +36 -0
- package/platforms/new_native_src/cpp/Caches.h +42 -0
- package/platforms/new_native_src/cpp/Common.h +34 -0
- package/platforms/new_native_src/cpp/ConcurrentMap.h +57 -0
- package/platforms/new_native_src/cpp/Helpers.cpp +101 -0
- package/platforms/new_native_src/cpp/Helpers.h +364 -0
- package/platforms/new_native_src/cpp/MasonImpl.cpp +68 -0
- package/platforms/new_native_src/cpp/MasonImpl.h +40 -0
- package/platforms/new_native_src/cpp/MasonNodeImpl.cpp +89 -0
- package/platforms/new_native_src/cpp/MasonNodeImpl.h +47 -0
- package/platforms/new_native_src/cpp/MasonStyleImpl.cpp +2181 -0
- package/platforms/new_native_src/cpp/MasonStyleImpl.h +420 -0
- package/platforms/{ios/Mason.xcframework/ios-arm64/Mason.framework/PrivateHeaders → new_native_src/cpp/include}/mason_native.h +464 -168
- package/platforms/new_native_src/cpp/include/robin_hood.h +2544 -0
- package/pods/Headers/include/APIDesign.md +72 -0
- package/pods/Headers/include/DEPS +10 -0
- package/pods/Headers/include/DIR_METADATA +11 -0
- package/pods/Headers/include/OWNERS +23 -0
- package/pods/Headers/include/cppgc/DEPS +8 -0
- package/pods/Headers/include/cppgc/OWNERS +2 -0
- package/pods/Headers/include/cppgc/README.md +133 -0
- package/pods/Headers/include/cppgc/allocation.h +310 -0
- package/pods/Headers/include/cppgc/common.h +29 -0
- package/pods/Headers/include/cppgc/cross-thread-persistent.h +465 -0
- package/pods/Headers/include/cppgc/custom-space.h +97 -0
- package/pods/Headers/include/cppgc/default-platform.h +67 -0
- package/pods/Headers/include/cppgc/ephemeron-pair.h +30 -0
- package/pods/Headers/include/cppgc/explicit-management.h +100 -0
- package/pods/Headers/include/cppgc/garbage-collected.h +106 -0
- package/pods/Headers/include/cppgc/heap-consistency.h +266 -0
- package/pods/Headers/include/cppgc/heap-state.h +82 -0
- package/pods/Headers/include/cppgc/heap-statistics.h +120 -0
- package/pods/Headers/include/cppgc/heap.h +206 -0
- package/pods/Headers/include/cppgc/internal/api-constants.h +55 -0
- package/pods/Headers/include/cppgc/internal/atomic-entry-flag.h +48 -0
- package/pods/Headers/include/cppgc/internal/caged-heap-local-data.h +79 -0
- package/pods/Headers/include/cppgc/internal/compiler-specific.h +38 -0
- package/pods/Headers/include/cppgc/internal/finalizer-trait.h +93 -0
- package/pods/Headers/include/cppgc/internal/gc-info.h +156 -0
- package/pods/Headers/include/cppgc/internal/logging.h +50 -0
- package/pods/Headers/include/cppgc/internal/name-trait.h +122 -0
- package/pods/Headers/include/cppgc/internal/persistent-node.h +216 -0
- package/pods/Headers/include/cppgc/internal/pointer-policies.h +186 -0
- package/pods/Headers/include/cppgc/internal/write-barrier.h +435 -0
- package/pods/Headers/include/cppgc/liveness-broker.h +77 -0
- package/pods/Headers/include/cppgc/macros.h +26 -0
- package/pods/Headers/include/cppgc/member.h +291 -0
- package/pods/Headers/include/cppgc/name-provider.h +65 -0
- package/pods/Headers/include/cppgc/object-size-trait.h +58 -0
- package/pods/Headers/include/cppgc/persistent.h +370 -0
- package/pods/Headers/include/cppgc/platform.h +156 -0
- package/pods/Headers/include/cppgc/prefinalizer.h +75 -0
- package/pods/Headers/include/cppgc/process-heap-statistics.h +36 -0
- package/pods/Headers/include/cppgc/sentinel-pointer.h +32 -0
- package/pods/Headers/include/cppgc/source-location.h +92 -0
- package/pods/Headers/include/cppgc/testing.h +106 -0
- package/pods/Headers/include/cppgc/trace-trait.h +116 -0
- package/pods/Headers/include/cppgc/type-traits.h +240 -0
- package/pods/Headers/include/cppgc/visitor.h +379 -0
- package/pods/Headers/include/js_protocol-1.2.json +936 -0
- package/pods/Headers/include/js_protocol-1.3.json +1112 -0
- package/pods/Headers/include/js_protocol.pdl +1709 -0
- package/pods/Headers/include/libffi/arm64/ffi.h +524 -0
- package/pods/Headers/include/libffi/arm64/ffitarget.h +92 -0
- package/pods/Headers/include/libffi/x86_64/ffi.h +524 -0
- package/pods/Headers/include/libffi/x86_64/ffitarget.h +147 -0
- package/pods/Headers/include/libffi.h +12 -0
- package/pods/Headers/include/libplatform/DEPS +9 -0
- package/pods/Headers/include/libplatform/libplatform-export.h +29 -0
- package/pods/Headers/include/libplatform/libplatform.h +106 -0
- package/pods/Headers/include/libplatform/v8-tracing.h +333 -0
- package/pods/Headers/include/v8-array-buffer.h +433 -0
- package/pods/Headers/include/v8-callbacks.h +397 -0
- package/pods/Headers/include/v8-container.h +129 -0
- package/pods/Headers/include/v8-context.h +407 -0
- package/pods/Headers/include/v8-cppgc.h +215 -0
- package/pods/Headers/include/v8-data.h +80 -0
- package/pods/Headers/include/v8-date.h +43 -0
- package/pods/Headers/include/v8-debug.h +168 -0
- package/pods/Headers/include/v8-embedder-heap.h +218 -0
- package/pods/Headers/include/v8-embedder-state-scope.h +51 -0
- package/pods/Headers/include/v8-exception.h +217 -0
- package/pods/Headers/include/v8-extension.h +62 -0
- package/pods/Headers/include/v8-external.h +37 -0
- package/pods/Headers/include/v8-fast-api-calls.h +939 -0
- package/pods/Headers/include/v8-forward.h +81 -0
- package/pods/Headers/include/v8-function-callback.h +475 -0
- package/pods/Headers/include/v8-function.h +125 -0
- package/pods/Headers/include/v8-initialization.h +315 -0
- package/pods/Headers/include/v8-inspector-protocol.h +13 -0
- package/pods/Headers/include/v8-inspector.h +376 -0
- package/pods/Headers/include/v8-internal.h +661 -0
- package/pods/Headers/include/v8-isolate.h +1709 -0
- package/pods/Headers/include/v8-json.h +47 -0
- package/pods/Headers/include/v8-local-handle.h +455 -0
- package/pods/Headers/include/v8-locker.h +149 -0
- package/pods/Headers/include/v8-maybe.h +137 -0
- package/pods/Headers/include/v8-memory-span.h +43 -0
- package/pods/Headers/include/v8-message.h +216 -0
- package/pods/Headers/include/v8-metrics.h +255 -0
- package/pods/Headers/include/v8-microtask-queue.h +152 -0
- package/pods/Headers/include/v8-microtask.h +28 -0
- package/pods/Headers/include/v8-object.h +775 -0
- package/pods/Headers/include/v8-persistent-handle.h +590 -0
- package/pods/Headers/include/v8-platform.h +1092 -0
- package/pods/Headers/include/v8-primitive-object.h +118 -0
- package/pods/Headers/include/v8-primitive.h +866 -0
- package/pods/Headers/include/v8-profiler.h +1198 -0
- package/pods/Headers/include/v8-promise.h +174 -0
- package/pods/Headers/include/v8-proxy.h +50 -0
- package/pods/Headers/include/v8-regexp.h +105 -0
- package/pods/Headers/include/v8-script.h +748 -0
- package/pods/Headers/include/v8-snapshot.h +196 -0
- package/pods/Headers/include/v8-statistics.h +217 -0
- package/pods/Headers/include/v8-template.h +1079 -0
- package/pods/Headers/include/v8-traced-handle.h +420 -0
- package/pods/Headers/include/v8-typed-array.h +282 -0
- package/pods/Headers/include/v8-unwinder-state.h +31 -0
- package/pods/Headers/include/v8-unwinder.h +132 -0
- package/pods/Headers/include/v8-util.h +658 -0
- package/pods/Headers/include/v8-value-serializer-version.h +24 -0
- package/pods/Headers/include/v8-value-serializer.h +279 -0
- package/pods/Headers/include/v8-value.h +526 -0
- package/pods/Headers/include/v8-version-string.h +38 -0
- package/pods/Headers/include/v8-version.h +20 -0
- package/pods/Headers/include/v8-wasm-trap-handler-posix.h +31 -0
- package/pods/Headers/include/v8-wasm-trap-handler-win.h +28 -0
- package/pods/Headers/include/v8-wasm.h +257 -0
- package/pods/Headers/include/v8-weak-callback-info.h +86 -0
- package/pods/Headers/include/v8.h +88 -0
- package/pods/Headers/include/v8config.h +605 -0
- package/pods/Headers/inspector/InspectorServer.h +20 -0
- package/pods/Headers/inspector/JsV8InspectorClient.h +66 -0
- package/pods/Headers/inspector/base/trace_event/common/trace_event_common.h +1123 -0
- package/pods/Headers/inspector/base64.h +9 -0
- package/pods/Headers/inspector/src/base/address-region.h +95 -0
- package/pods/Headers/inspector/src/base/atomic-utils.h +219 -0
- package/pods/Headers/inspector/src/base/atomicops.h +332 -0
- package/pods/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +89 -0
- package/pods/Headers/inspector/src/base/base-export.h +31 -0
- package/pods/Headers/inspector/src/base/bits.h +343 -0
- package/pods/Headers/inspector/src/base/build_config.h +234 -0
- package/pods/Headers/inspector/src/base/compiler-specific.h +136 -0
- package/pods/Headers/inspector/src/base/export-template.h +163 -0
- package/pods/Headers/inspector/src/base/flags.h +130 -0
- package/pods/Headers/inspector/src/base/immediate-crash.h +162 -0
- package/pods/Headers/inspector/src/base/lazy-instance.h +258 -0
- package/pods/Headers/inspector/src/base/logging.h +417 -0
- package/pods/Headers/inspector/src/base/macros.h +423 -0
- package/pods/Headers/inspector/src/base/memory.h +89 -0
- package/pods/Headers/inspector/src/base/once.h +108 -0
- package/pods/Headers/inspector/src/base/optional.h +882 -0
- package/pods/Headers/inspector/src/base/platform/mutex.h +370 -0
- package/pods/Headers/inspector/src/base/platform/platform.h +476 -0
- package/pods/Headers/inspector/src/base/platform/semaphore.h +108 -0
- package/pods/Headers/inspector/src/base/platform/v8-time.h +513 -0
- package/pods/Headers/inspector/src/base/platform/wrappers.h +73 -0
- package/pods/Headers/inspector/src/base/safe_conversions.h +389 -0
- package/pods/Headers/inspector/src/base/safe_conversions_impl.h +822 -0
- package/pods/Headers/inspector/src/base/template-utils.h +113 -0
- package/pods/Headers/inspector/src/base/v8-fallthrough.h +21 -0
- package/pods/Headers/inspector/src/common/checks.h +38 -0
- package/pods/Headers/inspector/src/common/globals.h +1842 -0
- package/pods/Headers/inspector/src/debug/debug-interface.h +667 -0
- package/pods/Headers/inspector/src/debug/interface-types.h +175 -0
- package/pods/Headers/inspector/src/init/v8.h +52 -0
- package/pods/Headers/inspector/src/inspector/custom-preview.h +24 -0
- package/pods/Headers/inspector/src/inspector/injected-script.h +251 -0
- package/pods/Headers/inspector/src/inspector/inspected-context.h +79 -0
- package/pods/Headers/inspector/src/inspector/protocol/CSS.h +2148 -0
- package/pods/Headers/inspector/src/inspector/protocol/Console.h +211 -0
- package/pods/Headers/inspector/src/inspector/protocol/DOM.h +1008 -0
- package/pods/Headers/inspector/src/inspector/protocol/Debugger.h +892 -0
- package/pods/Headers/inspector/src/inspector/protocol/Forward.h +75 -0
- package/pods/Headers/inspector/src/inspector/protocol/HeapProfiler.h +346 -0
- package/pods/Headers/inspector/src/inspector/protocol/Log.h +342 -0
- package/pods/Headers/inspector/src/inspector/protocol/Network.h +2528 -0
- package/pods/Headers/inspector/src/inspector/protocol/Overlay.h +281 -0
- package/pods/Headers/inspector/src/inspector/protocol/Page.h +1189 -0
- package/pods/Headers/inspector/src/inspector/protocol/Profiler.h +1001 -0
- package/pods/Headers/inspector/src/inspector/protocol/Protocol.h +617 -0
- package/pods/Headers/inspector/src/inspector/protocol/Runtime.h +1696 -0
- package/pods/Headers/inspector/src/inspector/protocol/Schema.h +146 -0
- package/pods/Headers/inspector/src/inspector/protocol/Security.h +793 -0
- package/pods/Headers/inspector/src/inspector/remote-object-id.h +54 -0
- package/pods/Headers/inspector/src/inspector/search-util.h +26 -0
- package/pods/Headers/inspector/src/inspector/string-16.h +180 -0
- package/pods/Headers/inspector/src/inspector/string-util.h +128 -0
- package/pods/Headers/inspector/src/inspector/v8-console-agent-impl.h +48 -0
- package/pods/Headers/inspector/src/inspector/v8-console-message.h +147 -0
- package/pods/Headers/inspector/src/inspector/v8-console.h +173 -0
- package/pods/Headers/inspector/src/inspector/v8-css-agent-impl.h +62 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +248 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger-id.h +44 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger-script.h +123 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger.h +257 -0
- package/pods/Headers/inspector/src/inspector/v8-dom-agent-impl.h +91 -0
- package/pods/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +80 -0
- package/pods/Headers/inspector/src/inspector/v8-inspector-impl.h +191 -0
- package/pods/Headers/inspector/src/inspector/v8-inspector-session-impl.h +156 -0
- package/pods/Headers/inspector/src/inspector/v8-log-agent-impl.h +34 -0
- package/pods/Headers/inspector/src/inspector/v8-network-agent-impl.h +71 -0
- package/pods/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +24 -0
- package/pods/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +70 -0
- package/pods/Headers/inspector/src/inspector/v8-page-agent-impl.h +88 -0
- package/pods/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +104 -0
- package/pods/Headers/inspector/src/inspector/v8-regex.h +38 -0
- package/pods/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +157 -0
- package/pods/Headers/inspector/src/inspector/v8-schema-agent-impl.h +38 -0
- package/pods/Headers/inspector/src/inspector/v8-stack-trace-impl.h +164 -0
- package/pods/Headers/inspector/src/inspector/v8-string-conversions.h +17 -0
- package/pods/Headers/inspector/src/inspector/v8-value-utils.h +23 -0
- package/pods/Headers/inspector/src/inspector/value-mirror.h +87 -0
- package/pods/Headers/inspector/src/libplatform/default-platform.h +92 -0
- package/pods/Headers/inspector/src/logging/tracing-flags.h +50 -0
- package/pods/Headers/inspector/src/numbers/conversions.h +183 -0
- package/pods/Headers/inspector/src/tracing/trace-event.h +664 -0
- package/pods/Headers/inspector/src/utils/allocation.h +367 -0
- package/pods/Headers/inspector/src/utils/vector.h +324 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +305 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +314 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +62 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +6 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +58 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +47 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +80 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +52 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +26 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +104 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +39 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +406 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +32 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +158 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +99 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +139 -0
- package/pods/Headers/inspector/utils.h +32 -0
- package/pods/Headers/inspector/v8-inspector-platform.h +44 -0
- package/pods/Headers/jsi/decorator.h +762 -0
- package/pods/Headers/jsi/instrumentation.h +117 -0
- package/pods/Headers/jsi/jsi-inl.h +322 -0
- package/pods/Headers/jsi/jsi.h +1387 -0
- package/pods/Headers/jsi/jsilib.h +59 -0
- package/pods/Headers/jsi/threadsafe.h +79 -0
- package/pods/Headers/runtime/ArgConverter.h +61 -0
- package/pods/Headers/runtime/ArrayAdapter.h +13 -0
- package/pods/Headers/runtime/Caches.h +98 -0
- package/pods/Headers/runtime/ClassBuilder.h +61 -0
- package/pods/Headers/runtime/Common.h +9 -0
- package/pods/Headers/runtime/ConcurrentMap.h +55 -0
- package/pods/Headers/runtime/ConcurrentQueue.h +28 -0
- package/pods/Headers/runtime/Console.h +27 -0
- package/pods/Headers/runtime/Constants.h +15 -0
- package/pods/Headers/runtime/DataWrapper.h +671 -0
- package/pods/Headers/runtime/DictionaryAdapter.h +13 -0
- package/pods/Headers/runtime/ExtVector.h +21 -0
- package/pods/Headers/runtime/FFICall.h +105 -0
- package/pods/Headers/runtime/FastEnumerationAdapter.h +13 -0
- package/pods/Headers/runtime/FunctionReference.h +18 -0
- package/pods/Headers/runtime/Helpers.h +84 -0
- package/pods/Headers/runtime/InlineFunctions.h +16 -0
- package/pods/Headers/runtime/Interop.h +202 -0
- package/pods/Headers/runtime/KnownUnknownClassPair.h +35 -0
- package/pods/Headers/runtime/Metadata.h +981 -0
- package/pods/Headers/runtime/MetadataBuilder.h +72 -0
- package/pods/Headers/runtime/MetadataInlines.h +157 -0
- package/pods/Headers/runtime/ModuleInternal.h +59 -0
- package/pods/Headers/runtime/NSDataAdapter.h +13 -0
- package/pods/Headers/runtime/NativeScriptException.h +27 -0
- package/pods/Headers/runtime/ObjectManager.h +31 -0
- package/pods/Headers/runtime/OneByteStringResource.h +21 -0
- package/pods/Headers/runtime/Pointer.h +26 -0
- package/pods/Headers/runtime/PromiseProxy.h +15 -0
- package/pods/Headers/runtime/Reference.h +38 -0
- package/pods/Headers/runtime/Runtime.h +67 -0
- package/pods/Headers/runtime/RuntimeConfig.h +17 -0
- package/pods/Headers/runtime/SetTimeout.h +34 -0
- package/pods/Headers/runtime/SimpleAllocator.h +23 -0
- package/pods/Headers/runtime/StringHasher.h +315 -0
- package/pods/Headers/runtime/SymbolIterator.h +18 -0
- package/pods/Headers/runtime/SymbolLoader.h +27 -0
- package/pods/Headers/runtime/TNSDerivedClass.h +8 -0
- package/pods/Headers/runtime/TSHelpers.h +15 -0
- package/pods/Headers/runtime/Tasks.h +19 -0
- package/pods/Headers/runtime/UnmanagedType.h +21 -0
- package/pods/Headers/runtime/WeakRef.h +15 -0
- package/pods/Headers/runtime/Worker.h +26 -0
- package/pods/Headers/runtime/robin_hood.h +2184 -0
- package/pods/Headers/v8runtime/HostProxy.h +71 -0
- package/pods/Headers/v8runtime/JSIV8ValueConverter.h +70 -0
- package/pods/Headers/v8runtime/V8PointerValue.h +44 -0
- package/pods/Headers/v8runtime/V8Runtime.h +215 -0
- package/pods/Headers/v8runtime/V8RuntimeConfig.h +26 -0
- package/pods/Headers/v8runtime/V8RuntimeFactory.h +21 -0
- package/pods/NativeScript.podspec +68 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/PrivateHeaders/mason_native.h +0 -676
- package/platforms/ios/src/JSIModule.h +0 -217
- package/platforms/ios/src/JSIModule.mm +0 -2788
|
@@ -0,0 +1,1008 @@
|
|
|
1
|
+
// This file is generated by TypeBuilder_h.template.
|
|
2
|
+
|
|
3
|
+
// Copyright (c) 2016 The Chromium Authors. All rights reserved.
|
|
4
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
5
|
+
// found in the LICENSE file.
|
|
6
|
+
|
|
7
|
+
#ifndef v8_inspector_protocol_DOM_h
|
|
8
|
+
#define v8_inspector_protocol_DOM_h
|
|
9
|
+
|
|
10
|
+
#include "src/inspector/protocol/Protocol.h"
|
|
11
|
+
// For each imported domain we generate a ValueConversions struct instead of a full domain definition
|
|
12
|
+
// and include Domain::API version from there.
|
|
13
|
+
#include "src/inspector/protocol/Runtime.h"
|
|
14
|
+
|
|
15
|
+
namespace v8_inspector {
|
|
16
|
+
namespace protocol {
|
|
17
|
+
namespace DOM {
|
|
18
|
+
using NodeId = int;
|
|
19
|
+
using BackendNodeId = int;
|
|
20
|
+
class BackendNode;
|
|
21
|
+
using PseudoType = String;
|
|
22
|
+
using ShadowRootType = String;
|
|
23
|
+
class Node;
|
|
24
|
+
class RGBA;
|
|
25
|
+
class BoxModel;
|
|
26
|
+
class ShapeOutsideInfo;
|
|
27
|
+
class Rect;
|
|
28
|
+
|
|
29
|
+
// ------------- Forward and enum declarations.
|
|
30
|
+
|
|
31
|
+
namespace PseudoTypeEnum {
|
|
32
|
+
extern const char FirstLine[];
|
|
33
|
+
extern const char FirstLetter[];
|
|
34
|
+
extern const char Before[];
|
|
35
|
+
extern const char After[];
|
|
36
|
+
extern const char Marker[];
|
|
37
|
+
extern const char Backdrop[];
|
|
38
|
+
extern const char Selection[];
|
|
39
|
+
extern const char FirstLineInherited[];
|
|
40
|
+
extern const char Scrollbar[];
|
|
41
|
+
extern const char ScrollbarThumb[];
|
|
42
|
+
extern const char ScrollbarButton[];
|
|
43
|
+
extern const char ScrollbarTrack[];
|
|
44
|
+
extern const char ScrollbarTrackPiece[];
|
|
45
|
+
extern const char ScrollbarCorner[];
|
|
46
|
+
extern const char Resizer[];
|
|
47
|
+
extern const char InputListButton[];
|
|
48
|
+
} // namespace PseudoTypeEnum
|
|
49
|
+
|
|
50
|
+
namespace ShadowRootTypeEnum {
|
|
51
|
+
extern const char UserAgent[];
|
|
52
|
+
extern const char Open[];
|
|
53
|
+
extern const char Closed[];
|
|
54
|
+
} // namespace ShadowRootTypeEnum
|
|
55
|
+
|
|
56
|
+
// ------------- Type and builder declarations.
|
|
57
|
+
|
|
58
|
+
class BackendNode : public ::v8_crdtp::ProtocolObject<BackendNode> {
|
|
59
|
+
public:
|
|
60
|
+
~BackendNode() override { }
|
|
61
|
+
|
|
62
|
+
int getNodeType() { return m_nodeType; }
|
|
63
|
+
void setNodeType(int value) { m_nodeType = value; }
|
|
64
|
+
|
|
65
|
+
String getNodeName() { return m_nodeName; }
|
|
66
|
+
void setNodeName(const String& value) { m_nodeName = value; }
|
|
67
|
+
|
|
68
|
+
int getBackendNodeId() { return m_backendNodeId; }
|
|
69
|
+
void setBackendNodeId(int value) { m_backendNodeId = value; }
|
|
70
|
+
|
|
71
|
+
template<int STATE>
|
|
72
|
+
class BackendNodeBuilder {
|
|
73
|
+
public:
|
|
74
|
+
enum {
|
|
75
|
+
NoFieldsSet = 0,
|
|
76
|
+
NodeTypeSet = 1 << 1,
|
|
77
|
+
NodeNameSet = 1 << 2,
|
|
78
|
+
BackendNodeIdSet = 1 << 3,
|
|
79
|
+
AllFieldsSet = (NodeTypeSet | NodeNameSet | BackendNodeIdSet | 0)};
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
BackendNodeBuilder<STATE | NodeTypeSet>& setNodeType(int value)
|
|
83
|
+
{
|
|
84
|
+
static_assert(!(STATE & NodeTypeSet), "property nodeType should not be set yet");
|
|
85
|
+
m_result->setNodeType(value);
|
|
86
|
+
return castState<NodeTypeSet>();
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
BackendNodeBuilder<STATE | NodeNameSet>& setNodeName(const String& value)
|
|
90
|
+
{
|
|
91
|
+
static_assert(!(STATE & NodeNameSet), "property nodeName should not be set yet");
|
|
92
|
+
m_result->setNodeName(value);
|
|
93
|
+
return castState<NodeNameSet>();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
BackendNodeBuilder<STATE | BackendNodeIdSet>& setBackendNodeId(int value)
|
|
97
|
+
{
|
|
98
|
+
static_assert(!(STATE & BackendNodeIdSet), "property backendNodeId should not be set yet");
|
|
99
|
+
m_result->setBackendNodeId(value);
|
|
100
|
+
return castState<BackendNodeIdSet>();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
std::unique_ptr<BackendNode> build()
|
|
104
|
+
{
|
|
105
|
+
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
106
|
+
return std::move(m_result);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
private:
|
|
110
|
+
friend class BackendNode;
|
|
111
|
+
BackendNodeBuilder() : m_result(new BackendNode()) { }
|
|
112
|
+
|
|
113
|
+
template<int STEP> BackendNodeBuilder<STATE | STEP>& castState()
|
|
114
|
+
{
|
|
115
|
+
return *reinterpret_cast<BackendNodeBuilder<STATE | STEP>*>(this);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
std::unique_ptr<protocol::DOM::BackendNode> m_result;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
static BackendNodeBuilder<0> create()
|
|
122
|
+
{
|
|
123
|
+
return BackendNodeBuilder<0>();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
private:
|
|
127
|
+
DECLARE_SERIALIZATION_SUPPORT();
|
|
128
|
+
|
|
129
|
+
BackendNode()
|
|
130
|
+
{
|
|
131
|
+
m_nodeType = 0;
|
|
132
|
+
m_backendNodeId = 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
int m_nodeType;
|
|
136
|
+
String m_nodeName;
|
|
137
|
+
int m_backendNodeId;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
class Node : public ::v8_crdtp::ProtocolObject<Node> {
|
|
142
|
+
public:
|
|
143
|
+
~Node() override { }
|
|
144
|
+
|
|
145
|
+
int getNodeId() { return m_nodeId; }
|
|
146
|
+
void setNodeId(int value) { m_nodeId = value; }
|
|
147
|
+
|
|
148
|
+
bool hasParentId() { return m_parentId.isJust(); }
|
|
149
|
+
int getParentId(int defaultValue) { return m_parentId.isJust() ? m_parentId.fromJust() : defaultValue; }
|
|
150
|
+
void setParentId(int value) { m_parentId = value; }
|
|
151
|
+
|
|
152
|
+
int getBackendNodeId() { return m_backendNodeId; }
|
|
153
|
+
void setBackendNodeId(int value) { m_backendNodeId = value; }
|
|
154
|
+
|
|
155
|
+
int getNodeType() { return m_nodeType; }
|
|
156
|
+
void setNodeType(int value) { m_nodeType = value; }
|
|
157
|
+
|
|
158
|
+
String getNodeName() { return m_nodeName; }
|
|
159
|
+
void setNodeName(const String& value) { m_nodeName = value; }
|
|
160
|
+
|
|
161
|
+
String getLocalName() { return m_localName; }
|
|
162
|
+
void setLocalName(const String& value) { m_localName = value; }
|
|
163
|
+
|
|
164
|
+
String getNodeValue() { return m_nodeValue; }
|
|
165
|
+
void setNodeValue(const String& value) { m_nodeValue = value; }
|
|
166
|
+
|
|
167
|
+
bool hasChildNodeCount() { return m_childNodeCount.isJust(); }
|
|
168
|
+
int getChildNodeCount(int defaultValue) { return m_childNodeCount.isJust() ? m_childNodeCount.fromJust() : defaultValue; }
|
|
169
|
+
void setChildNodeCount(int value) { m_childNodeCount = value; }
|
|
170
|
+
|
|
171
|
+
bool hasChildren() { return m_children.isJust(); }
|
|
172
|
+
protocol::Array<protocol::DOM::Node>* getChildren(protocol::Array<protocol::DOM::Node>* defaultValue) { return m_children.isJust() ? m_children.fromJust() : defaultValue; }
|
|
173
|
+
void setChildren(std::unique_ptr<protocol::Array<protocol::DOM::Node>> value) { m_children = std::move(value); }
|
|
174
|
+
|
|
175
|
+
bool hasAttributes() { return m_attributes.isJust(); }
|
|
176
|
+
protocol::Array<String>* getAttributes(protocol::Array<String>* defaultValue) { return m_attributes.isJust() ? m_attributes.fromJust() : defaultValue; }
|
|
177
|
+
void setAttributes(std::unique_ptr<protocol::Array<String>> value) { m_attributes = std::move(value); }
|
|
178
|
+
|
|
179
|
+
bool hasDocumentURL() { return m_documentURL.isJust(); }
|
|
180
|
+
String getDocumentURL(const String& defaultValue) { return m_documentURL.isJust() ? m_documentURL.fromJust() : defaultValue; }
|
|
181
|
+
void setDocumentURL(const String& value) { m_documentURL = value; }
|
|
182
|
+
|
|
183
|
+
bool hasBaseURL() { return m_baseURL.isJust(); }
|
|
184
|
+
String getBaseURL(const String& defaultValue) { return m_baseURL.isJust() ? m_baseURL.fromJust() : defaultValue; }
|
|
185
|
+
void setBaseURL(const String& value) { m_baseURL = value; }
|
|
186
|
+
|
|
187
|
+
bool hasPublicId() { return m_publicId.isJust(); }
|
|
188
|
+
String getPublicId(const String& defaultValue) { return m_publicId.isJust() ? m_publicId.fromJust() : defaultValue; }
|
|
189
|
+
void setPublicId(const String& value) { m_publicId = value; }
|
|
190
|
+
|
|
191
|
+
bool hasSystemId() { return m_systemId.isJust(); }
|
|
192
|
+
String getSystemId(const String& defaultValue) { return m_systemId.isJust() ? m_systemId.fromJust() : defaultValue; }
|
|
193
|
+
void setSystemId(const String& value) { m_systemId = value; }
|
|
194
|
+
|
|
195
|
+
bool hasInternalSubset() { return m_internalSubset.isJust(); }
|
|
196
|
+
String getInternalSubset(const String& defaultValue) { return m_internalSubset.isJust() ? m_internalSubset.fromJust() : defaultValue; }
|
|
197
|
+
void setInternalSubset(const String& value) { m_internalSubset = value; }
|
|
198
|
+
|
|
199
|
+
bool hasXmlVersion() { return m_xmlVersion.isJust(); }
|
|
200
|
+
String getXmlVersion(const String& defaultValue) { return m_xmlVersion.isJust() ? m_xmlVersion.fromJust() : defaultValue; }
|
|
201
|
+
void setXmlVersion(const String& value) { m_xmlVersion = value; }
|
|
202
|
+
|
|
203
|
+
bool hasName() { return m_name.isJust(); }
|
|
204
|
+
String getName(const String& defaultValue) { return m_name.isJust() ? m_name.fromJust() : defaultValue; }
|
|
205
|
+
void setName(const String& value) { m_name = value; }
|
|
206
|
+
|
|
207
|
+
bool hasValue() { return m_value.isJust(); }
|
|
208
|
+
String getValue(const String& defaultValue) { return m_value.isJust() ? m_value.fromJust() : defaultValue; }
|
|
209
|
+
void setValue(const String& value) { m_value = value; }
|
|
210
|
+
|
|
211
|
+
bool hasPseudoType() { return m_pseudoType.isJust(); }
|
|
212
|
+
String getPseudoType(const String& defaultValue) { return m_pseudoType.isJust() ? m_pseudoType.fromJust() : defaultValue; }
|
|
213
|
+
void setPseudoType(const String& value) { m_pseudoType = value; }
|
|
214
|
+
|
|
215
|
+
bool hasShadowRootType() { return m_shadowRootType.isJust(); }
|
|
216
|
+
String getShadowRootType(const String& defaultValue) { return m_shadowRootType.isJust() ? m_shadowRootType.fromJust() : defaultValue; }
|
|
217
|
+
void setShadowRootType(const String& value) { m_shadowRootType = value; }
|
|
218
|
+
|
|
219
|
+
bool hasFrameId() { return m_frameId.isJust(); }
|
|
220
|
+
String getFrameId(const String& defaultValue) { return m_frameId.isJust() ? m_frameId.fromJust() : defaultValue; }
|
|
221
|
+
void setFrameId(const String& value) { m_frameId = value; }
|
|
222
|
+
|
|
223
|
+
bool hasContentDocument() { return m_contentDocument.isJust(); }
|
|
224
|
+
protocol::DOM::Node* getContentDocument(protocol::DOM::Node* defaultValue) { return m_contentDocument.isJust() ? m_contentDocument.fromJust() : defaultValue; }
|
|
225
|
+
void setContentDocument(std::unique_ptr<protocol::DOM::Node> value) { m_contentDocument = std::move(value); }
|
|
226
|
+
|
|
227
|
+
bool hasShadowRoots() { return m_shadowRoots.isJust(); }
|
|
228
|
+
protocol::Array<protocol::DOM::Node>* getShadowRoots(protocol::Array<protocol::DOM::Node>* defaultValue) { return m_shadowRoots.isJust() ? m_shadowRoots.fromJust() : defaultValue; }
|
|
229
|
+
void setShadowRoots(std::unique_ptr<protocol::Array<protocol::DOM::Node>> value) { m_shadowRoots = std::move(value); }
|
|
230
|
+
|
|
231
|
+
bool hasTemplateContent() { return m_templateContent.isJust(); }
|
|
232
|
+
protocol::DOM::Node* getTemplateContent(protocol::DOM::Node* defaultValue) { return m_templateContent.isJust() ? m_templateContent.fromJust() : defaultValue; }
|
|
233
|
+
void setTemplateContent(std::unique_ptr<protocol::DOM::Node> value) { m_templateContent = std::move(value); }
|
|
234
|
+
|
|
235
|
+
bool hasPseudoElements() { return m_pseudoElements.isJust(); }
|
|
236
|
+
protocol::Array<protocol::DOM::Node>* getPseudoElements(protocol::Array<protocol::DOM::Node>* defaultValue) { return m_pseudoElements.isJust() ? m_pseudoElements.fromJust() : defaultValue; }
|
|
237
|
+
void setPseudoElements(std::unique_ptr<protocol::Array<protocol::DOM::Node>> value) { m_pseudoElements = std::move(value); }
|
|
238
|
+
|
|
239
|
+
bool hasImportedDocument() { return m_importedDocument.isJust(); }
|
|
240
|
+
protocol::DOM::Node* getImportedDocument(protocol::DOM::Node* defaultValue) { return m_importedDocument.isJust() ? m_importedDocument.fromJust() : defaultValue; }
|
|
241
|
+
void setImportedDocument(std::unique_ptr<protocol::DOM::Node> value) { m_importedDocument = std::move(value); }
|
|
242
|
+
|
|
243
|
+
bool hasDistributedNodes() { return m_distributedNodes.isJust(); }
|
|
244
|
+
protocol::Array<protocol::DOM::BackendNode>* getDistributedNodes(protocol::Array<protocol::DOM::BackendNode>* defaultValue) { return m_distributedNodes.isJust() ? m_distributedNodes.fromJust() : defaultValue; }
|
|
245
|
+
void setDistributedNodes(std::unique_ptr<protocol::Array<protocol::DOM::BackendNode>> value) { m_distributedNodes = std::move(value); }
|
|
246
|
+
|
|
247
|
+
bool hasIsSVG() { return m_isSVG.isJust(); }
|
|
248
|
+
bool getIsSVG(bool defaultValue) { return m_isSVG.isJust() ? m_isSVG.fromJust() : defaultValue; }
|
|
249
|
+
void setIsSVG(bool value) { m_isSVG = value; }
|
|
250
|
+
|
|
251
|
+
template<int STATE>
|
|
252
|
+
class NodeBuilder {
|
|
253
|
+
public:
|
|
254
|
+
enum {
|
|
255
|
+
NoFieldsSet = 0,
|
|
256
|
+
NodeIdSet = 1 << 1,
|
|
257
|
+
BackendNodeIdSet = 1 << 2,
|
|
258
|
+
NodeTypeSet = 1 << 3,
|
|
259
|
+
NodeNameSet = 1 << 4,
|
|
260
|
+
LocalNameSet = 1 << 5,
|
|
261
|
+
NodeValueSet = 1 << 6,
|
|
262
|
+
AllFieldsSet = (NodeIdSet | BackendNodeIdSet | NodeTypeSet | NodeNameSet | LocalNameSet | NodeValueSet | 0)};
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
NodeBuilder<STATE | NodeIdSet>& setNodeId(int value)
|
|
266
|
+
{
|
|
267
|
+
static_assert(!(STATE & NodeIdSet), "property nodeId should not be set yet");
|
|
268
|
+
m_result->setNodeId(value);
|
|
269
|
+
return castState<NodeIdSet>();
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
NodeBuilder<STATE>& setParentId(int value)
|
|
273
|
+
{
|
|
274
|
+
m_result->setParentId(value);
|
|
275
|
+
return *this;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
NodeBuilder<STATE | BackendNodeIdSet>& setBackendNodeId(int value)
|
|
279
|
+
{
|
|
280
|
+
static_assert(!(STATE & BackendNodeIdSet), "property backendNodeId should not be set yet");
|
|
281
|
+
m_result->setBackendNodeId(value);
|
|
282
|
+
return castState<BackendNodeIdSet>();
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
NodeBuilder<STATE | NodeTypeSet>& setNodeType(int value)
|
|
286
|
+
{
|
|
287
|
+
static_assert(!(STATE & NodeTypeSet), "property nodeType should not be set yet");
|
|
288
|
+
m_result->setNodeType(value);
|
|
289
|
+
return castState<NodeTypeSet>();
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
NodeBuilder<STATE | NodeNameSet>& setNodeName(const String& value)
|
|
293
|
+
{
|
|
294
|
+
static_assert(!(STATE & NodeNameSet), "property nodeName should not be set yet");
|
|
295
|
+
m_result->setNodeName(value);
|
|
296
|
+
return castState<NodeNameSet>();
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
NodeBuilder<STATE | LocalNameSet>& setLocalName(const String& value)
|
|
300
|
+
{
|
|
301
|
+
static_assert(!(STATE & LocalNameSet), "property localName should not be set yet");
|
|
302
|
+
m_result->setLocalName(value);
|
|
303
|
+
return castState<LocalNameSet>();
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
NodeBuilder<STATE | NodeValueSet>& setNodeValue(const String& value)
|
|
307
|
+
{
|
|
308
|
+
static_assert(!(STATE & NodeValueSet), "property nodeValue should not be set yet");
|
|
309
|
+
m_result->setNodeValue(value);
|
|
310
|
+
return castState<NodeValueSet>();
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
NodeBuilder<STATE>& setChildNodeCount(int value)
|
|
314
|
+
{
|
|
315
|
+
m_result->setChildNodeCount(value);
|
|
316
|
+
return *this;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
NodeBuilder<STATE>& setChildren(std::unique_ptr<protocol::Array<protocol::DOM::Node>> value)
|
|
320
|
+
{
|
|
321
|
+
m_result->setChildren(std::move(value));
|
|
322
|
+
return *this;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
NodeBuilder<STATE>& setAttributes(std::unique_ptr<protocol::Array<String>> value)
|
|
326
|
+
{
|
|
327
|
+
m_result->setAttributes(std::move(value));
|
|
328
|
+
return *this;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
NodeBuilder<STATE>& setDocumentURL(const String& value)
|
|
332
|
+
{
|
|
333
|
+
m_result->setDocumentURL(value);
|
|
334
|
+
return *this;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
NodeBuilder<STATE>& setBaseURL(const String& value)
|
|
338
|
+
{
|
|
339
|
+
m_result->setBaseURL(value);
|
|
340
|
+
return *this;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
NodeBuilder<STATE>& setPublicId(const String& value)
|
|
344
|
+
{
|
|
345
|
+
m_result->setPublicId(value);
|
|
346
|
+
return *this;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
NodeBuilder<STATE>& setSystemId(const String& value)
|
|
350
|
+
{
|
|
351
|
+
m_result->setSystemId(value);
|
|
352
|
+
return *this;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
NodeBuilder<STATE>& setInternalSubset(const String& value)
|
|
356
|
+
{
|
|
357
|
+
m_result->setInternalSubset(value);
|
|
358
|
+
return *this;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
NodeBuilder<STATE>& setXmlVersion(const String& value)
|
|
362
|
+
{
|
|
363
|
+
m_result->setXmlVersion(value);
|
|
364
|
+
return *this;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
NodeBuilder<STATE>& setName(const String& value)
|
|
368
|
+
{
|
|
369
|
+
m_result->setName(value);
|
|
370
|
+
return *this;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
NodeBuilder<STATE>& setValue(const String& value)
|
|
374
|
+
{
|
|
375
|
+
m_result->setValue(value);
|
|
376
|
+
return *this;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
NodeBuilder<STATE>& setPseudoType(const String& value)
|
|
380
|
+
{
|
|
381
|
+
m_result->setPseudoType(value);
|
|
382
|
+
return *this;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
NodeBuilder<STATE>& setShadowRootType(const String& value)
|
|
386
|
+
{
|
|
387
|
+
m_result->setShadowRootType(value);
|
|
388
|
+
return *this;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
NodeBuilder<STATE>& setFrameId(const String& value)
|
|
392
|
+
{
|
|
393
|
+
m_result->setFrameId(value);
|
|
394
|
+
return *this;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
NodeBuilder<STATE>& setContentDocument(std::unique_ptr<protocol::DOM::Node> value)
|
|
398
|
+
{
|
|
399
|
+
m_result->setContentDocument(std::move(value));
|
|
400
|
+
return *this;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
NodeBuilder<STATE>& setShadowRoots(std::unique_ptr<protocol::Array<protocol::DOM::Node>> value)
|
|
404
|
+
{
|
|
405
|
+
m_result->setShadowRoots(std::move(value));
|
|
406
|
+
return *this;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
NodeBuilder<STATE>& setTemplateContent(std::unique_ptr<protocol::DOM::Node> value)
|
|
410
|
+
{
|
|
411
|
+
m_result->setTemplateContent(std::move(value));
|
|
412
|
+
return *this;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
NodeBuilder<STATE>& setPseudoElements(std::unique_ptr<protocol::Array<protocol::DOM::Node>> value)
|
|
416
|
+
{
|
|
417
|
+
m_result->setPseudoElements(std::move(value));
|
|
418
|
+
return *this;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
NodeBuilder<STATE>& setImportedDocument(std::unique_ptr<protocol::DOM::Node> value)
|
|
422
|
+
{
|
|
423
|
+
m_result->setImportedDocument(std::move(value));
|
|
424
|
+
return *this;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
NodeBuilder<STATE>& setDistributedNodes(std::unique_ptr<protocol::Array<protocol::DOM::BackendNode>> value)
|
|
428
|
+
{
|
|
429
|
+
m_result->setDistributedNodes(std::move(value));
|
|
430
|
+
return *this;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
NodeBuilder<STATE>& setIsSVG(bool value)
|
|
434
|
+
{
|
|
435
|
+
m_result->setIsSVG(value);
|
|
436
|
+
return *this;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
std::unique_ptr<Node> build()
|
|
440
|
+
{
|
|
441
|
+
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
442
|
+
return std::move(m_result);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
private:
|
|
446
|
+
friend class Node;
|
|
447
|
+
NodeBuilder() : m_result(new Node()) { }
|
|
448
|
+
|
|
449
|
+
template<int STEP> NodeBuilder<STATE | STEP>& castState()
|
|
450
|
+
{
|
|
451
|
+
return *reinterpret_cast<NodeBuilder<STATE | STEP>*>(this);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
std::unique_ptr<protocol::DOM::Node> m_result;
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
static NodeBuilder<0> create()
|
|
458
|
+
{
|
|
459
|
+
return NodeBuilder<0>();
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
private:
|
|
463
|
+
DECLARE_SERIALIZATION_SUPPORT();
|
|
464
|
+
|
|
465
|
+
Node()
|
|
466
|
+
{
|
|
467
|
+
m_nodeId = 0;
|
|
468
|
+
m_backendNodeId = 0;
|
|
469
|
+
m_nodeType = 0;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
int m_nodeId;
|
|
473
|
+
Maybe<int> m_parentId;
|
|
474
|
+
int m_backendNodeId;
|
|
475
|
+
int m_nodeType;
|
|
476
|
+
String m_nodeName;
|
|
477
|
+
String m_localName;
|
|
478
|
+
String m_nodeValue;
|
|
479
|
+
Maybe<int> m_childNodeCount;
|
|
480
|
+
Maybe<protocol::Array<protocol::DOM::Node>> m_children;
|
|
481
|
+
Maybe<protocol::Array<String>> m_attributes;
|
|
482
|
+
Maybe<String> m_documentURL;
|
|
483
|
+
Maybe<String> m_baseURL;
|
|
484
|
+
Maybe<String> m_publicId;
|
|
485
|
+
Maybe<String> m_systemId;
|
|
486
|
+
Maybe<String> m_internalSubset;
|
|
487
|
+
Maybe<String> m_xmlVersion;
|
|
488
|
+
Maybe<String> m_name;
|
|
489
|
+
Maybe<String> m_value;
|
|
490
|
+
Maybe<String> m_pseudoType;
|
|
491
|
+
Maybe<String> m_shadowRootType;
|
|
492
|
+
Maybe<String> m_frameId;
|
|
493
|
+
Maybe<protocol::DOM::Node> m_contentDocument;
|
|
494
|
+
Maybe<protocol::Array<protocol::DOM::Node>> m_shadowRoots;
|
|
495
|
+
Maybe<protocol::DOM::Node> m_templateContent;
|
|
496
|
+
Maybe<protocol::Array<protocol::DOM::Node>> m_pseudoElements;
|
|
497
|
+
Maybe<protocol::DOM::Node> m_importedDocument;
|
|
498
|
+
Maybe<protocol::Array<protocol::DOM::BackendNode>> m_distributedNodes;
|
|
499
|
+
Maybe<bool> m_isSVG;
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
class RGBA : public ::v8_crdtp::ProtocolObject<RGBA> {
|
|
504
|
+
public:
|
|
505
|
+
~RGBA() override { }
|
|
506
|
+
|
|
507
|
+
int getR() { return m_r; }
|
|
508
|
+
void setR(int value) { m_r = value; }
|
|
509
|
+
|
|
510
|
+
int getG() { return m_g; }
|
|
511
|
+
void setG(int value) { m_g = value; }
|
|
512
|
+
|
|
513
|
+
int getB() { return m_b; }
|
|
514
|
+
void setB(int value) { m_b = value; }
|
|
515
|
+
|
|
516
|
+
bool hasA() { return m_a.isJust(); }
|
|
517
|
+
double getA(double defaultValue) { return m_a.isJust() ? m_a.fromJust() : defaultValue; }
|
|
518
|
+
void setA(double value) { m_a = value; }
|
|
519
|
+
|
|
520
|
+
template<int STATE>
|
|
521
|
+
class RGBABuilder {
|
|
522
|
+
public:
|
|
523
|
+
enum {
|
|
524
|
+
NoFieldsSet = 0,
|
|
525
|
+
RSet = 1 << 1,
|
|
526
|
+
GSet = 1 << 2,
|
|
527
|
+
BSet = 1 << 3,
|
|
528
|
+
AllFieldsSet = (RSet | GSet | BSet | 0)};
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
RGBABuilder<STATE | RSet>& setR(int value)
|
|
532
|
+
{
|
|
533
|
+
static_assert(!(STATE & RSet), "property r should not be set yet");
|
|
534
|
+
m_result->setR(value);
|
|
535
|
+
return castState<RSet>();
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
RGBABuilder<STATE | GSet>& setG(int value)
|
|
539
|
+
{
|
|
540
|
+
static_assert(!(STATE & GSet), "property g should not be set yet");
|
|
541
|
+
m_result->setG(value);
|
|
542
|
+
return castState<GSet>();
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
RGBABuilder<STATE | BSet>& setB(int value)
|
|
546
|
+
{
|
|
547
|
+
static_assert(!(STATE & BSet), "property b should not be set yet");
|
|
548
|
+
m_result->setB(value);
|
|
549
|
+
return castState<BSet>();
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
RGBABuilder<STATE>& setA(double value)
|
|
553
|
+
{
|
|
554
|
+
m_result->setA(value);
|
|
555
|
+
return *this;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
std::unique_ptr<RGBA> build()
|
|
559
|
+
{
|
|
560
|
+
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
561
|
+
return std::move(m_result);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
private:
|
|
565
|
+
friend class RGBA;
|
|
566
|
+
RGBABuilder() : m_result(new RGBA()) { }
|
|
567
|
+
|
|
568
|
+
template<int STEP> RGBABuilder<STATE | STEP>& castState()
|
|
569
|
+
{
|
|
570
|
+
return *reinterpret_cast<RGBABuilder<STATE | STEP>*>(this);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
std::unique_ptr<protocol::DOM::RGBA> m_result;
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
static RGBABuilder<0> create()
|
|
577
|
+
{
|
|
578
|
+
return RGBABuilder<0>();
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
private:
|
|
582
|
+
DECLARE_SERIALIZATION_SUPPORT();
|
|
583
|
+
|
|
584
|
+
RGBA()
|
|
585
|
+
{
|
|
586
|
+
m_r = 0;
|
|
587
|
+
m_g = 0;
|
|
588
|
+
m_b = 0;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
int m_r;
|
|
592
|
+
int m_g;
|
|
593
|
+
int m_b;
|
|
594
|
+
Maybe<double> m_a;
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
class BoxModel : public ::v8_crdtp::ProtocolObject<BoxModel> {
|
|
599
|
+
public:
|
|
600
|
+
~BoxModel() override { }
|
|
601
|
+
|
|
602
|
+
protocol::Array<double>* getContent() { return m_content.get(); }
|
|
603
|
+
void setContent(std::unique_ptr<protocol::Array<double>> value) { m_content = std::move(value); }
|
|
604
|
+
|
|
605
|
+
protocol::Array<double>* getPadding() { return m_padding.get(); }
|
|
606
|
+
void setPadding(std::unique_ptr<protocol::Array<double>> value) { m_padding = std::move(value); }
|
|
607
|
+
|
|
608
|
+
protocol::Array<double>* getBorder() { return m_border.get(); }
|
|
609
|
+
void setBorder(std::unique_ptr<protocol::Array<double>> value) { m_border = std::move(value); }
|
|
610
|
+
|
|
611
|
+
protocol::Array<double>* getMargin() { return m_margin.get(); }
|
|
612
|
+
void setMargin(std::unique_ptr<protocol::Array<double>> value) { m_margin = std::move(value); }
|
|
613
|
+
|
|
614
|
+
int getWidth() { return m_width; }
|
|
615
|
+
void setWidth(int value) { m_width = value; }
|
|
616
|
+
|
|
617
|
+
int getHeight() { return m_height; }
|
|
618
|
+
void setHeight(int value) { m_height = value; }
|
|
619
|
+
|
|
620
|
+
bool hasShapeOutside() { return m_shapeOutside.isJust(); }
|
|
621
|
+
protocol::DOM::ShapeOutsideInfo* getShapeOutside(protocol::DOM::ShapeOutsideInfo* defaultValue) { return m_shapeOutside.isJust() ? m_shapeOutside.fromJust() : defaultValue; }
|
|
622
|
+
void setShapeOutside(std::unique_ptr<protocol::DOM::ShapeOutsideInfo> value) { m_shapeOutside = std::move(value); }
|
|
623
|
+
|
|
624
|
+
template<int STATE>
|
|
625
|
+
class BoxModelBuilder {
|
|
626
|
+
public:
|
|
627
|
+
enum {
|
|
628
|
+
NoFieldsSet = 0,
|
|
629
|
+
ContentSet = 1 << 1,
|
|
630
|
+
PaddingSet = 1 << 2,
|
|
631
|
+
BorderSet = 1 << 3,
|
|
632
|
+
MarginSet = 1 << 4,
|
|
633
|
+
WidthSet = 1 << 5,
|
|
634
|
+
HeightSet = 1 << 6,
|
|
635
|
+
AllFieldsSet = (ContentSet | PaddingSet | BorderSet | MarginSet | WidthSet | HeightSet | 0)};
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
BoxModelBuilder<STATE | ContentSet>& setContent(std::unique_ptr<protocol::Array<double>> value)
|
|
639
|
+
{
|
|
640
|
+
static_assert(!(STATE & ContentSet), "property content should not be set yet");
|
|
641
|
+
m_result->setContent(std::move(value));
|
|
642
|
+
return castState<ContentSet>();
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
BoxModelBuilder<STATE | PaddingSet>& setPadding(std::unique_ptr<protocol::Array<double>> value)
|
|
646
|
+
{
|
|
647
|
+
static_assert(!(STATE & PaddingSet), "property padding should not be set yet");
|
|
648
|
+
m_result->setPadding(std::move(value));
|
|
649
|
+
return castState<PaddingSet>();
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
BoxModelBuilder<STATE | BorderSet>& setBorder(std::unique_ptr<protocol::Array<double>> value)
|
|
653
|
+
{
|
|
654
|
+
static_assert(!(STATE & BorderSet), "property border should not be set yet");
|
|
655
|
+
m_result->setBorder(std::move(value));
|
|
656
|
+
return castState<BorderSet>();
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
BoxModelBuilder<STATE | MarginSet>& setMargin(std::unique_ptr<protocol::Array<double>> value)
|
|
660
|
+
{
|
|
661
|
+
static_assert(!(STATE & MarginSet), "property margin should not be set yet");
|
|
662
|
+
m_result->setMargin(std::move(value));
|
|
663
|
+
return castState<MarginSet>();
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
BoxModelBuilder<STATE | WidthSet>& setWidth(int value)
|
|
667
|
+
{
|
|
668
|
+
static_assert(!(STATE & WidthSet), "property width should not be set yet");
|
|
669
|
+
m_result->setWidth(value);
|
|
670
|
+
return castState<WidthSet>();
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
BoxModelBuilder<STATE | HeightSet>& setHeight(int value)
|
|
674
|
+
{
|
|
675
|
+
static_assert(!(STATE & HeightSet), "property height should not be set yet");
|
|
676
|
+
m_result->setHeight(value);
|
|
677
|
+
return castState<HeightSet>();
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
BoxModelBuilder<STATE>& setShapeOutside(std::unique_ptr<protocol::DOM::ShapeOutsideInfo> value)
|
|
681
|
+
{
|
|
682
|
+
m_result->setShapeOutside(std::move(value));
|
|
683
|
+
return *this;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
std::unique_ptr<BoxModel> build()
|
|
687
|
+
{
|
|
688
|
+
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
689
|
+
return std::move(m_result);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
private:
|
|
693
|
+
friend class BoxModel;
|
|
694
|
+
BoxModelBuilder() : m_result(new BoxModel()) { }
|
|
695
|
+
|
|
696
|
+
template<int STEP> BoxModelBuilder<STATE | STEP>& castState()
|
|
697
|
+
{
|
|
698
|
+
return *reinterpret_cast<BoxModelBuilder<STATE | STEP>*>(this);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
std::unique_ptr<protocol::DOM::BoxModel> m_result;
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
static BoxModelBuilder<0> create()
|
|
705
|
+
{
|
|
706
|
+
return BoxModelBuilder<0>();
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
private:
|
|
710
|
+
DECLARE_SERIALIZATION_SUPPORT();
|
|
711
|
+
|
|
712
|
+
BoxModel()
|
|
713
|
+
{
|
|
714
|
+
m_width = 0;
|
|
715
|
+
m_height = 0;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
std::unique_ptr<protocol::Array<double>> m_content;
|
|
719
|
+
std::unique_ptr<protocol::Array<double>> m_padding;
|
|
720
|
+
std::unique_ptr<protocol::Array<double>> m_border;
|
|
721
|
+
std::unique_ptr<protocol::Array<double>> m_margin;
|
|
722
|
+
int m_width;
|
|
723
|
+
int m_height;
|
|
724
|
+
Maybe<protocol::DOM::ShapeOutsideInfo> m_shapeOutside;
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
class ShapeOutsideInfo : public ::v8_crdtp::ProtocolObject<ShapeOutsideInfo> {
|
|
729
|
+
public:
|
|
730
|
+
~ShapeOutsideInfo() override { }
|
|
731
|
+
|
|
732
|
+
protocol::Array<double>* getBounds() { return m_bounds.get(); }
|
|
733
|
+
void setBounds(std::unique_ptr<protocol::Array<double>> value) { m_bounds = std::move(value); }
|
|
734
|
+
|
|
735
|
+
protocol::Array<protocol::Value>* getShape() { return m_shape.get(); }
|
|
736
|
+
void setShape(std::unique_ptr<protocol::Array<protocol::Value>> value) { m_shape = std::move(value); }
|
|
737
|
+
|
|
738
|
+
protocol::Array<protocol::Value>* getMarginShape() { return m_marginShape.get(); }
|
|
739
|
+
void setMarginShape(std::unique_ptr<protocol::Array<protocol::Value>> value) { m_marginShape = std::move(value); }
|
|
740
|
+
|
|
741
|
+
template<int STATE>
|
|
742
|
+
class ShapeOutsideInfoBuilder {
|
|
743
|
+
public:
|
|
744
|
+
enum {
|
|
745
|
+
NoFieldsSet = 0,
|
|
746
|
+
BoundsSet = 1 << 1,
|
|
747
|
+
ShapeSet = 1 << 2,
|
|
748
|
+
MarginShapeSet = 1 << 3,
|
|
749
|
+
AllFieldsSet = (BoundsSet | ShapeSet | MarginShapeSet | 0)};
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
ShapeOutsideInfoBuilder<STATE | BoundsSet>& setBounds(std::unique_ptr<protocol::Array<double>> value)
|
|
753
|
+
{
|
|
754
|
+
static_assert(!(STATE & BoundsSet), "property bounds should not be set yet");
|
|
755
|
+
m_result->setBounds(std::move(value));
|
|
756
|
+
return castState<BoundsSet>();
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
ShapeOutsideInfoBuilder<STATE | ShapeSet>& setShape(std::unique_ptr<protocol::Array<protocol::Value>> value)
|
|
760
|
+
{
|
|
761
|
+
static_assert(!(STATE & ShapeSet), "property shape should not be set yet");
|
|
762
|
+
m_result->setShape(std::move(value));
|
|
763
|
+
return castState<ShapeSet>();
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
ShapeOutsideInfoBuilder<STATE | MarginShapeSet>& setMarginShape(std::unique_ptr<protocol::Array<protocol::Value>> value)
|
|
767
|
+
{
|
|
768
|
+
static_assert(!(STATE & MarginShapeSet), "property marginShape should not be set yet");
|
|
769
|
+
m_result->setMarginShape(std::move(value));
|
|
770
|
+
return castState<MarginShapeSet>();
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
std::unique_ptr<ShapeOutsideInfo> build()
|
|
774
|
+
{
|
|
775
|
+
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
776
|
+
return std::move(m_result);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
private:
|
|
780
|
+
friend class ShapeOutsideInfo;
|
|
781
|
+
ShapeOutsideInfoBuilder() : m_result(new ShapeOutsideInfo()) { }
|
|
782
|
+
|
|
783
|
+
template<int STEP> ShapeOutsideInfoBuilder<STATE | STEP>& castState()
|
|
784
|
+
{
|
|
785
|
+
return *reinterpret_cast<ShapeOutsideInfoBuilder<STATE | STEP>*>(this);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
std::unique_ptr<protocol::DOM::ShapeOutsideInfo> m_result;
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
static ShapeOutsideInfoBuilder<0> create()
|
|
792
|
+
{
|
|
793
|
+
return ShapeOutsideInfoBuilder<0>();
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
private:
|
|
797
|
+
DECLARE_SERIALIZATION_SUPPORT();
|
|
798
|
+
|
|
799
|
+
ShapeOutsideInfo()
|
|
800
|
+
{
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
std::unique_ptr<protocol::Array<double>> m_bounds;
|
|
804
|
+
std::unique_ptr<protocol::Array<protocol::Value>> m_shape;
|
|
805
|
+
std::unique_ptr<protocol::Array<protocol::Value>> m_marginShape;
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
class Rect : public ::v8_crdtp::ProtocolObject<Rect> {
|
|
810
|
+
public:
|
|
811
|
+
~Rect() override { }
|
|
812
|
+
|
|
813
|
+
double getX() { return m_x; }
|
|
814
|
+
void setX(double value) { m_x = value; }
|
|
815
|
+
|
|
816
|
+
double getY() { return m_y; }
|
|
817
|
+
void setY(double value) { m_y = value; }
|
|
818
|
+
|
|
819
|
+
double getWidth() { return m_width; }
|
|
820
|
+
void setWidth(double value) { m_width = value; }
|
|
821
|
+
|
|
822
|
+
double getHeight() { return m_height; }
|
|
823
|
+
void setHeight(double value) { m_height = value; }
|
|
824
|
+
|
|
825
|
+
template<int STATE>
|
|
826
|
+
class RectBuilder {
|
|
827
|
+
public:
|
|
828
|
+
enum {
|
|
829
|
+
NoFieldsSet = 0,
|
|
830
|
+
XSet = 1 << 1,
|
|
831
|
+
YSet = 1 << 2,
|
|
832
|
+
WidthSet = 1 << 3,
|
|
833
|
+
HeightSet = 1 << 4,
|
|
834
|
+
AllFieldsSet = (XSet | YSet | WidthSet | HeightSet | 0)};
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
RectBuilder<STATE | XSet>& setX(double value)
|
|
838
|
+
{
|
|
839
|
+
static_assert(!(STATE & XSet), "property x should not be set yet");
|
|
840
|
+
m_result->setX(value);
|
|
841
|
+
return castState<XSet>();
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
RectBuilder<STATE | YSet>& setY(double value)
|
|
845
|
+
{
|
|
846
|
+
static_assert(!(STATE & YSet), "property y should not be set yet");
|
|
847
|
+
m_result->setY(value);
|
|
848
|
+
return castState<YSet>();
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
RectBuilder<STATE | WidthSet>& setWidth(double value)
|
|
852
|
+
{
|
|
853
|
+
static_assert(!(STATE & WidthSet), "property width should not be set yet");
|
|
854
|
+
m_result->setWidth(value);
|
|
855
|
+
return castState<WidthSet>();
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
RectBuilder<STATE | HeightSet>& setHeight(double value)
|
|
859
|
+
{
|
|
860
|
+
static_assert(!(STATE & HeightSet), "property height should not be set yet");
|
|
861
|
+
m_result->setHeight(value);
|
|
862
|
+
return castState<HeightSet>();
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
std::unique_ptr<Rect> build()
|
|
866
|
+
{
|
|
867
|
+
static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
|
|
868
|
+
return std::move(m_result);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
private:
|
|
872
|
+
friend class Rect;
|
|
873
|
+
RectBuilder() : m_result(new Rect()) { }
|
|
874
|
+
|
|
875
|
+
template<int STEP> RectBuilder<STATE | STEP>& castState()
|
|
876
|
+
{
|
|
877
|
+
return *reinterpret_cast<RectBuilder<STATE | STEP>*>(this);
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
std::unique_ptr<protocol::DOM::Rect> m_result;
|
|
881
|
+
};
|
|
882
|
+
|
|
883
|
+
static RectBuilder<0> create()
|
|
884
|
+
{
|
|
885
|
+
return RectBuilder<0>();
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
private:
|
|
889
|
+
DECLARE_SERIALIZATION_SUPPORT();
|
|
890
|
+
|
|
891
|
+
Rect()
|
|
892
|
+
{
|
|
893
|
+
m_x = 0;
|
|
894
|
+
m_y = 0;
|
|
895
|
+
m_width = 0;
|
|
896
|
+
m_height = 0;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
double m_x;
|
|
900
|
+
double m_y;
|
|
901
|
+
double m_width;
|
|
902
|
+
double m_height;
|
|
903
|
+
};
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
// ------------- Backend interface.
|
|
907
|
+
|
|
908
|
+
class Backend {
|
|
909
|
+
public:
|
|
910
|
+
virtual ~Backend() { }
|
|
911
|
+
|
|
912
|
+
virtual DispatchResponse collectClassNamesFromSubtree(int in_nodeId, std::unique_ptr<protocol::Array<String>>* out_classNames) = 0;
|
|
913
|
+
virtual DispatchResponse copyTo(int in_nodeId, int in_targetNodeId, Maybe<int> in_insertBeforeNodeId, int* out_nodeId) = 0;
|
|
914
|
+
virtual DispatchResponse describeNode(Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectId, Maybe<int> in_depth, Maybe<bool> in_pierce, std::unique_ptr<protocol::DOM::Node>* out_node) = 0;
|
|
915
|
+
virtual DispatchResponse disable() = 0;
|
|
916
|
+
virtual DispatchResponse discardSearchResults(const String& in_searchId) = 0;
|
|
917
|
+
virtual DispatchResponse enable() = 0;
|
|
918
|
+
virtual DispatchResponse focus(Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectId) = 0;
|
|
919
|
+
virtual DispatchResponse getAttributes(int in_nodeId, std::unique_ptr<protocol::Array<String>>* out_attributes) = 0;
|
|
920
|
+
virtual DispatchResponse getBoxModel(Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectId, std::unique_ptr<protocol::DOM::BoxModel>* out_model) = 0;
|
|
921
|
+
virtual DispatchResponse getContentQuads(Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectId, std::unique_ptr<protocol::Array<protocol::Array<double>>>* out_quads) = 0;
|
|
922
|
+
virtual DispatchResponse getDocument(Maybe<int> in_depth, Maybe<bool> in_pierce, std::unique_ptr<protocol::DOM::Node>* out_root) = 0;
|
|
923
|
+
virtual DispatchResponse getFlattenedDocument(Maybe<int> in_depth, Maybe<bool> in_pierce, std::unique_ptr<protocol::Array<protocol::DOM::Node>>* out_nodes) = 0;
|
|
924
|
+
virtual DispatchResponse getNodeForLocation(int in_x, int in_y, Maybe<bool> in_includeUserAgentShadowDOM, Maybe<bool> in_ignorePointerEventsNone, int* out_backendNodeId, String* out_frameId, Maybe<int>* out_nodeId) = 0;
|
|
925
|
+
virtual DispatchResponse getOuterHTML(Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectId, String* out_outerHTML) = 0;
|
|
926
|
+
virtual DispatchResponse getRelayoutBoundary(int in_nodeId, int* out_nodeId) = 0;
|
|
927
|
+
virtual DispatchResponse getSearchResults(const String& in_searchId, int in_fromIndex, int in_toIndex, std::unique_ptr<protocol::Array<int>>* out_nodeIds) = 0;
|
|
928
|
+
virtual DispatchResponse markUndoableState() = 0;
|
|
929
|
+
virtual DispatchResponse moveTo(int in_nodeId, int in_targetNodeId, Maybe<int> in_insertBeforeNodeId, int* out_nodeId) = 0;
|
|
930
|
+
virtual DispatchResponse performSearch(const String& in_query, Maybe<bool> in_includeUserAgentShadowDOM, String* out_searchId, int* out_resultCount) = 0;
|
|
931
|
+
virtual DispatchResponse pushNodeByPathToFrontend(const String& in_path, int* out_nodeId) = 0;
|
|
932
|
+
virtual DispatchResponse pushNodesByBackendIdsToFrontend(std::unique_ptr<protocol::Array<int>> in_backendNodeIds, std::unique_ptr<protocol::Array<int>>* out_nodeIds) = 0;
|
|
933
|
+
virtual DispatchResponse querySelector(int in_nodeId, const String& in_selector, int* out_nodeId) = 0;
|
|
934
|
+
virtual DispatchResponse querySelectorAll(int in_nodeId, const String& in_selector, std::unique_ptr<protocol::Array<int>>* out_nodeIds) = 0;
|
|
935
|
+
virtual DispatchResponse redo() = 0;
|
|
936
|
+
virtual DispatchResponse removeAttribute(int in_nodeId, const String& in_name) = 0;
|
|
937
|
+
virtual DispatchResponse removeNode(int in_nodeId) = 0;
|
|
938
|
+
virtual DispatchResponse requestChildNodes(int in_nodeId, Maybe<int> in_depth, Maybe<bool> in_pierce) = 0;
|
|
939
|
+
virtual DispatchResponse requestNode(const String& in_objectId, int* out_nodeId) = 0;
|
|
940
|
+
virtual DispatchResponse resolveNode(Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectGroup, Maybe<int> in_executionContextId, std::unique_ptr<protocol::Runtime::RemoteObject>* out_object) = 0;
|
|
941
|
+
virtual DispatchResponse setAttributeValue(int in_nodeId, const String& in_name, const String& in_value) = 0;
|
|
942
|
+
virtual DispatchResponse setAttributesAsText(int in_nodeId, const String& in_text, Maybe<String> in_name) = 0;
|
|
943
|
+
virtual DispatchResponse setFileInputFiles(std::unique_ptr<protocol::Array<String>> in_files, Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectId) = 0;
|
|
944
|
+
virtual DispatchResponse setNodeStackTracesEnabled(bool in_enable) = 0;
|
|
945
|
+
virtual DispatchResponse getNodeStackTraces(int in_nodeId, Maybe<protocol::Runtime::StackTrace>* out_creation) = 0;
|
|
946
|
+
virtual DispatchResponse getFileInfo(const String& in_objectId, String* out_path) = 0;
|
|
947
|
+
virtual DispatchResponse setInspectedNode(int in_nodeId) = 0;
|
|
948
|
+
virtual DispatchResponse setNodeName(int in_nodeId, const String& in_name, int* out_nodeId) = 0;
|
|
949
|
+
virtual DispatchResponse setNodeValue(int in_nodeId, const String& in_value) = 0;
|
|
950
|
+
virtual DispatchResponse setOuterHTML(int in_nodeId, const String& in_outerHTML) = 0;
|
|
951
|
+
virtual DispatchResponse undo() = 0;
|
|
952
|
+
virtual DispatchResponse getFrameOwner(const String& in_frameId, int* out_backendNodeId, Maybe<int>* out_nodeId) = 0;
|
|
953
|
+
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
// ------------- Frontend interface.
|
|
957
|
+
|
|
958
|
+
class Frontend {
|
|
959
|
+
public:
|
|
960
|
+
explicit Frontend(FrontendChannel* frontend_channel) : frontend_channel_(frontend_channel) {}
|
|
961
|
+
void attributeModified(int nodeId, const String& name, const String& value);
|
|
962
|
+
void attributeRemoved(int nodeId, const String& name);
|
|
963
|
+
void characterDataModified(int nodeId, const String& characterData);
|
|
964
|
+
void childNodeCountUpdated(int nodeId, int childNodeCount);
|
|
965
|
+
void childNodeInserted(int parentNodeId, int previousNodeId, std::unique_ptr<protocol::DOM::Node> node);
|
|
966
|
+
void childNodeRemoved(int parentNodeId, int nodeId);
|
|
967
|
+
void distributedNodesUpdated(int insertionPointId, std::unique_ptr<protocol::Array<protocol::DOM::BackendNode>> distributedNodes);
|
|
968
|
+
void documentUpdated();
|
|
969
|
+
void inlineStyleInvalidated(std::unique_ptr<protocol::Array<int>> nodeIds);
|
|
970
|
+
void pseudoElementAdded(int parentId, std::unique_ptr<protocol::DOM::Node> pseudoElement);
|
|
971
|
+
void pseudoElementRemoved(int parentId, int pseudoElementId);
|
|
972
|
+
void setChildNodes(int parentId, std::unique_ptr<protocol::Array<protocol::DOM::Node>> nodes);
|
|
973
|
+
void shadowRootPopped(int hostId, int rootId);
|
|
974
|
+
void shadowRootPushed(int hostId, std::unique_ptr<protocol::DOM::Node> root);
|
|
975
|
+
|
|
976
|
+
void flush();
|
|
977
|
+
void sendRawNotification(std::unique_ptr<Serializable>);
|
|
978
|
+
private:
|
|
979
|
+
FrontendChannel* frontend_channel_;
|
|
980
|
+
};
|
|
981
|
+
|
|
982
|
+
// ------------- Dispatcher.
|
|
983
|
+
|
|
984
|
+
class Dispatcher {
|
|
985
|
+
public:
|
|
986
|
+
static void wire(UberDispatcher*, Backend*);
|
|
987
|
+
|
|
988
|
+
private:
|
|
989
|
+
Dispatcher() { }
|
|
990
|
+
};
|
|
991
|
+
|
|
992
|
+
// ------------- Metainfo.
|
|
993
|
+
|
|
994
|
+
class Metainfo {
|
|
995
|
+
public:
|
|
996
|
+
using BackendClass = Backend;
|
|
997
|
+
using FrontendClass = Frontend;
|
|
998
|
+
using DispatcherClass = Dispatcher;
|
|
999
|
+
static const char domainName[];
|
|
1000
|
+
static const char commandPrefix[];
|
|
1001
|
+
static const char version[];
|
|
1002
|
+
};
|
|
1003
|
+
|
|
1004
|
+
} // namespace DOM
|
|
1005
|
+
} // namespace v8_inspector
|
|
1006
|
+
} // namespace protocol
|
|
1007
|
+
|
|
1008
|
+
#endif // !defined(v8_inspector_protocol_DOM_h)
|