@triniwiz/nativescript-masonkit 1.0.0-alpha.5 → 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 +10744 -1631
- 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 +10744 -1631
- 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 +10744 -1631
- 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,156 @@
|
|
|
1
|
+
// Copyright 2016 the V8 project authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
#ifndef V8_INSPECTOR_V8_INSPECTOR_SESSION_IMPL_H_
|
|
6
|
+
#define V8_INSPECTOR_V8_INSPECTOR_SESSION_IMPL_H_
|
|
7
|
+
|
|
8
|
+
#include <memory>
|
|
9
|
+
#include <vector>
|
|
10
|
+
|
|
11
|
+
#include "src/base/macros.h"
|
|
12
|
+
#include "src/inspector/protocol/Forward.h"
|
|
13
|
+
#include "src/inspector/protocol/Runtime.h"
|
|
14
|
+
#include "src/inspector/protocol/Schema.h"
|
|
15
|
+
|
|
16
|
+
#include "src/inspector/v8-css-agent-impl.h"
|
|
17
|
+
#include "src/inspector/v8-dom-agent-impl.h"
|
|
18
|
+
#include "src/inspector/v8-log-agent-impl.h"
|
|
19
|
+
#include "src/inspector/v8-network-agent-impl.h"
|
|
20
|
+
#include "src/inspector/v8-overlay-agent-impl.h"
|
|
21
|
+
#include "src/inspector/v8-page-agent-impl.h"
|
|
22
|
+
|
|
23
|
+
#include "include/v8-inspector.h"
|
|
24
|
+
|
|
25
|
+
namespace v8_inspector {
|
|
26
|
+
|
|
27
|
+
class InjectedScript;
|
|
28
|
+
class RemoteObjectIdBase;
|
|
29
|
+
class V8ConsoleAgentImpl;
|
|
30
|
+
class V8DebuggerAgentImpl;
|
|
31
|
+
class V8InspectorImpl;
|
|
32
|
+
class V8HeapProfilerAgentImpl;
|
|
33
|
+
class V8ProfilerAgentImpl;
|
|
34
|
+
class V8RuntimeAgentImpl;
|
|
35
|
+
class V8SchemaAgentImpl;
|
|
36
|
+
|
|
37
|
+
using protocol::Response;
|
|
38
|
+
|
|
39
|
+
class V8InspectorSessionImpl : public V8InspectorSession,
|
|
40
|
+
public protocol::FrontendChannel {
|
|
41
|
+
public:
|
|
42
|
+
static std::unique_ptr<V8InspectorSessionImpl> create(V8InspectorImpl*,
|
|
43
|
+
int contextGroupId,
|
|
44
|
+
int sessionId,
|
|
45
|
+
V8Inspector::Channel*,
|
|
46
|
+
StringView state);
|
|
47
|
+
~V8InspectorSessionImpl() override;
|
|
48
|
+
V8InspectorSessionImpl(const V8InspectorSessionImpl&) = delete;
|
|
49
|
+
V8InspectorSessionImpl& operator=(const V8InspectorSessionImpl&) = delete;
|
|
50
|
+
|
|
51
|
+
V8InspectorImpl* inspector() const { return m_inspector; }
|
|
52
|
+
V8ConsoleAgentImpl* consoleAgent() { return m_consoleAgent.get(); }
|
|
53
|
+
V8DebuggerAgentImpl* debuggerAgent() { return m_debuggerAgent.get(); }
|
|
54
|
+
V8SchemaAgentImpl* schemaAgent() { return m_schemaAgent.get(); }
|
|
55
|
+
V8ProfilerAgentImpl* profilerAgent() { return m_profilerAgent.get(); }
|
|
56
|
+
V8RuntimeAgentImpl* runtimeAgent() { return m_runtimeAgent.get(); }
|
|
57
|
+
V8NetworkAgentImpl* networkArgent() { return m_networkAgent.get(); }
|
|
58
|
+
V8DOMAgentImpl* domArgent() { return m_domAgent.get(); }
|
|
59
|
+
int contextGroupId() const { return m_contextGroupId; }
|
|
60
|
+
int sessionId() const { return m_sessionId; }
|
|
61
|
+
|
|
62
|
+
std::unique_ptr<V8InspectorSession::CommandLineAPIScope>
|
|
63
|
+
initializeCommandLineAPIScope(int executionContextId) override;
|
|
64
|
+
|
|
65
|
+
Response findInjectedScript(int contextId, InjectedScript*&);
|
|
66
|
+
Response findInjectedScript(RemoteObjectIdBase*, InjectedScript*&);
|
|
67
|
+
void reset();
|
|
68
|
+
void discardInjectedScripts();
|
|
69
|
+
void reportAllContexts(V8RuntimeAgentImpl*);
|
|
70
|
+
void setCustomObjectFormatterEnabled(bool);
|
|
71
|
+
std::unique_ptr<protocol::Runtime::RemoteObject> wrapObject(
|
|
72
|
+
v8::Local<v8::Context>, v8::Local<v8::Value>, const String16& groupName,
|
|
73
|
+
bool generatePreview);
|
|
74
|
+
std::unique_ptr<protocol::Runtime::RemoteObject> wrapTable(
|
|
75
|
+
v8::Local<v8::Context>, v8::Local<v8::Object> table,
|
|
76
|
+
v8::MaybeLocal<v8::Array> columns);
|
|
77
|
+
std::vector<std::unique_ptr<protocol::Schema::Domain>> supportedDomainsImpl();
|
|
78
|
+
Response unwrapObject(const String16& objectId, v8::Local<v8::Value>*,
|
|
79
|
+
v8::Local<v8::Context>*, String16* objectGroup);
|
|
80
|
+
void releaseObjectGroup(const String16& objectGroup);
|
|
81
|
+
|
|
82
|
+
// V8InspectorSession implementation.
|
|
83
|
+
void dispatchProtocolMessage(StringView message) override;
|
|
84
|
+
std::vector<uint8_t> state() override;
|
|
85
|
+
std::vector<std::unique_ptr<protocol::Schema::API::Domain>> supportedDomains()
|
|
86
|
+
override;
|
|
87
|
+
void addInspectedObject(
|
|
88
|
+
std::unique_ptr<V8InspectorSession::Inspectable>) override;
|
|
89
|
+
void schedulePauseOnNextStatement(StringView breakReason,
|
|
90
|
+
StringView breakDetails) override;
|
|
91
|
+
void cancelPauseOnNextStatement() override;
|
|
92
|
+
void breakProgram(StringView breakReason, StringView breakDetails) override;
|
|
93
|
+
void setSkipAllPauses(bool) override;
|
|
94
|
+
void resume(bool terminateOnResume = false) override;
|
|
95
|
+
void stepOver() override;
|
|
96
|
+
std::vector<std::unique_ptr<protocol::Debugger::API::SearchMatch>>
|
|
97
|
+
searchInTextByLines(StringView text, StringView query, bool caseSensitive,
|
|
98
|
+
bool isRegex) override;
|
|
99
|
+
void releaseObjectGroup(StringView objectGroup) override;
|
|
100
|
+
bool unwrapObject(std::unique_ptr<StringBuffer>*, StringView objectId,
|
|
101
|
+
v8::Local<v8::Value>*, v8::Local<v8::Context>*,
|
|
102
|
+
std::unique_ptr<StringBuffer>* objectGroup) override;
|
|
103
|
+
std::unique_ptr<protocol::Runtime::API::RemoteObject> wrapObject(
|
|
104
|
+
v8::Local<v8::Context>, v8::Local<v8::Value>, StringView groupName,
|
|
105
|
+
bool generatePreview) override;
|
|
106
|
+
|
|
107
|
+
V8InspectorSession::Inspectable* inspectedObject(unsigned num);
|
|
108
|
+
static const unsigned kInspectedObjectBufferSize = 5;
|
|
109
|
+
|
|
110
|
+
void triggerPreciseCoverageDeltaUpdate(StringView occassion) override;
|
|
111
|
+
|
|
112
|
+
private:
|
|
113
|
+
V8InspectorSessionImpl(V8InspectorImpl*, int contextGroupId, int sessionId,
|
|
114
|
+
V8Inspector::Channel*, StringView state);
|
|
115
|
+
protocol::DictionaryValue* agentState(const String16& name);
|
|
116
|
+
|
|
117
|
+
// protocol::FrontendChannel implementation.
|
|
118
|
+
void SendProtocolResponse(
|
|
119
|
+
int callId, std::unique_ptr<protocol::Serializable> message) override;
|
|
120
|
+
void SendProtocolNotification(
|
|
121
|
+
std::unique_ptr<protocol::Serializable> message) override;
|
|
122
|
+
void FallThrough(int callId, v8_crdtp::span<uint8_t> method,
|
|
123
|
+
v8_crdtp::span<uint8_t> message) override;
|
|
124
|
+
void FlushProtocolNotifications() override;
|
|
125
|
+
|
|
126
|
+
std::unique_ptr<StringBuffer> serializeForFrontend(
|
|
127
|
+
std::unique_ptr<protocol::Serializable> message);
|
|
128
|
+
int m_contextGroupId;
|
|
129
|
+
int m_sessionId;
|
|
130
|
+
V8InspectorImpl* m_inspector;
|
|
131
|
+
V8Inspector::Channel* m_channel;
|
|
132
|
+
bool m_customObjectFormatterEnabled;
|
|
133
|
+
|
|
134
|
+
protocol::UberDispatcher m_dispatcher;
|
|
135
|
+
std::unique_ptr<protocol::DictionaryValue> m_state;
|
|
136
|
+
|
|
137
|
+
std::unique_ptr<V8RuntimeAgentImpl> m_runtimeAgent;
|
|
138
|
+
std::unique_ptr<V8DebuggerAgentImpl> m_debuggerAgent;
|
|
139
|
+
std::unique_ptr<V8HeapProfilerAgentImpl> m_heapProfilerAgent;
|
|
140
|
+
std::unique_ptr<V8ProfilerAgentImpl> m_profilerAgent;
|
|
141
|
+
std::unique_ptr<V8ConsoleAgentImpl> m_consoleAgent;
|
|
142
|
+
std::unique_ptr<V8SchemaAgentImpl> m_schemaAgent;
|
|
143
|
+
std::unique_ptr<V8PageAgentImpl> m_pageAgent;
|
|
144
|
+
std::unique_ptr<V8NetworkAgentImpl> m_networkAgent;
|
|
145
|
+
std::unique_ptr<V8DOMAgentImpl> m_domAgent;
|
|
146
|
+
std::unique_ptr<V8CSSAgentImpl> m_cssAgent;
|
|
147
|
+
std::unique_ptr<V8OverlayAgentImpl> m_overlayAgent;
|
|
148
|
+
std::unique_ptr<V8LogAgentImpl> m_logAgent;
|
|
149
|
+
std::vector<std::unique_ptr<V8InspectorSession::Inspectable>>
|
|
150
|
+
m_inspectedObjects;
|
|
151
|
+
bool use_binary_protocol_ = false;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
} // namespace v8_inspector
|
|
155
|
+
|
|
156
|
+
#endif // V8_INSPECTOR_V8_INSPECTOR_SESSION_IMPL_H_
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#ifndef v8_log_agent_impl_h
|
|
2
|
+
#define v8_log_agent_impl_h
|
|
3
|
+
|
|
4
|
+
#include "src/inspector/protocol/Log.h"
|
|
5
|
+
|
|
6
|
+
namespace v8_inspector {
|
|
7
|
+
|
|
8
|
+
class V8InspectorSessionImpl;
|
|
9
|
+
|
|
10
|
+
using v8_inspector::protocol::DispatchResponse;
|
|
11
|
+
|
|
12
|
+
class V8LogAgentImpl : public protocol::Log::Backend {
|
|
13
|
+
public:
|
|
14
|
+
V8LogAgentImpl(V8InspectorSessionImpl* session, protocol::FrontendChannel* frontend, protocol::DictionaryValue* state);
|
|
15
|
+
~V8LogAgentImpl() override;
|
|
16
|
+
DispatchResponse enable() override;
|
|
17
|
+
DispatchResponse disable() override;
|
|
18
|
+
DispatchResponse clear() override;
|
|
19
|
+
DispatchResponse startViolationsReport(std::unique_ptr<protocol::Array<protocol::Log::ViolationSetting>> in_config) override;
|
|
20
|
+
DispatchResponse stopViolationsReport() override;
|
|
21
|
+
|
|
22
|
+
static void EntryAdded(const std::string& text, std::string verbosityLevel, std::string url, int lineNumber);
|
|
23
|
+
|
|
24
|
+
private:
|
|
25
|
+
protocol::Log::Frontend m_frontend;
|
|
26
|
+
protocol::DictionaryValue* m_state;
|
|
27
|
+
bool m_enabled;
|
|
28
|
+
|
|
29
|
+
static V8LogAgentImpl* instance_;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
#endif /* v8_log_agent_impl_h */
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
#ifndef v8_network_agent_impl_h
|
|
2
|
+
#define v8_network_agent_impl_h
|
|
3
|
+
|
|
4
|
+
#include <string>
|
|
5
|
+
#include <map>
|
|
6
|
+
#include "utils.h"
|
|
7
|
+
#include "src/inspector/v8-inspector-impl.h"
|
|
8
|
+
#include "src/inspector/protocol/Network.h"
|
|
9
|
+
#include "src/inspector/protocol/Protocol.h"
|
|
10
|
+
|
|
11
|
+
namespace v8_inspector {
|
|
12
|
+
|
|
13
|
+
class V8InspectorSessionImpl;
|
|
14
|
+
|
|
15
|
+
using v8_inspector::protocol::Maybe;
|
|
16
|
+
using String = v8_inspector::String16;
|
|
17
|
+
using v8_inspector::protocol::DispatchResponse;
|
|
18
|
+
|
|
19
|
+
class V8NetworkAgentImpl : public protocol::Network::Backend {
|
|
20
|
+
public:
|
|
21
|
+
V8NetworkAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*,
|
|
22
|
+
protocol::DictionaryValue* state);
|
|
23
|
+
~V8NetworkAgentImpl() override;
|
|
24
|
+
V8NetworkAgentImpl(const V8NetworkAgentImpl&) = delete;
|
|
25
|
+
V8NetworkAgentImpl& operator=(const V8NetworkAgentImpl&) = delete;
|
|
26
|
+
|
|
27
|
+
DispatchResponse enable(Maybe<int> in_maxTotalBufferSize, Maybe<int> in_maxResourceBufferSize, Maybe<int> in_maxPostDataSize) override;
|
|
28
|
+
DispatchResponse disable() override;
|
|
29
|
+
|
|
30
|
+
DispatchResponse setExtraHTTPHeaders(std::unique_ptr<protocol::Network::Headers> in_headers) override;
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
|
+
* Returns content served for the given request.
|
|
34
|
+
* The content of each response is stored in `m_responses` when a request completes.
|
|
35
|
+
* @param in_requestId
|
|
36
|
+
*/
|
|
37
|
+
void getResponseBody(const String& in_requestId, std::unique_ptr<GetResponseBodyCallback> callback) override;
|
|
38
|
+
|
|
39
|
+
DispatchResponse setCacheDisabled(bool in_cacheDisabled) override;
|
|
40
|
+
|
|
41
|
+
DispatchResponse canClearBrowserCache(bool* out_result) override;
|
|
42
|
+
DispatchResponse canClearBrowserCookies(bool* out_result) override;
|
|
43
|
+
DispatchResponse emulateNetworkConditions(bool in_offline, double in_latency, double in_downloadThroughput, double in_uploadThroughput, Maybe<String> in_connectionType) override;
|
|
44
|
+
DispatchResponse getCertificate(const String& in_origin, std::unique_ptr<protocol::Array<String>>* out_tableNames) override;
|
|
45
|
+
void getRequestPostData(const String& in_requestId, std::unique_ptr<GetRequestPostDataCallback> callback) override;
|
|
46
|
+
DispatchResponse replayXHR(const String& in_requestId) override;
|
|
47
|
+
DispatchResponse searchInResponseBody(const String& in_requestId, const String& in_query, Maybe<bool> in_caseSensitive, Maybe<bool> in_isRegex, std::unique_ptr<protocol::Array<protocol::Debugger::SearchMatch>>* out_result) override;
|
|
48
|
+
DispatchResponse setBlockedURLs(std::unique_ptr<protocol::Array<String>> in_urls) override;
|
|
49
|
+
DispatchResponse setBypassServiceWorker(bool in_bypass) override;
|
|
50
|
+
DispatchResponse setDataSizeLimitsForTest(int in_maxTotalSize, int in_maxResourceSize) override;
|
|
51
|
+
|
|
52
|
+
const bool enabled() {
|
|
53
|
+
return m_enabled;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
void dispatch(std::string message);
|
|
57
|
+
private:
|
|
58
|
+
protocol::Network::Frontend m_frontend;
|
|
59
|
+
protocol::DictionaryValue* m_state;
|
|
60
|
+
V8InspectorImpl* m_inspector;
|
|
61
|
+
V8InspectorSessionImpl* m_session;
|
|
62
|
+
bool m_enabled;
|
|
63
|
+
|
|
64
|
+
void RequestWillBeSent(const v8::Local<v8::Object>& obj);
|
|
65
|
+
void ResponseReceived(const v8::Local<v8::Object>& obj);
|
|
66
|
+
void LoadingFinished(const v8::Local<v8::Object>& obj);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
#endif /* v8_network_agent_impl_h */
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#ifndef NSV8DebuggerAgentImpl_h
|
|
2
|
+
#define NSV8DebuggerAgentImpl_h
|
|
3
|
+
|
|
4
|
+
#include "src/inspector/v8-debugger-agent-impl.h"
|
|
5
|
+
|
|
6
|
+
namespace v8_inspector {
|
|
7
|
+
|
|
8
|
+
class NSV8DebuggerAgentImpl : public V8DebuggerAgentImpl {
|
|
9
|
+
public:
|
|
10
|
+
NSV8DebuggerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, protocol::DictionaryValue *state);
|
|
11
|
+
|
|
12
|
+
NSV8DebuggerAgentImpl(const NSV8DebuggerAgentImpl&) = delete;
|
|
13
|
+
NSV8DebuggerAgentImpl& operator=(const NSV8DebuggerAgentImpl&) = delete;
|
|
14
|
+
|
|
15
|
+
Response getPossibleBreakpoints(
|
|
16
|
+
std::unique_ptr<protocol::Debugger::Location> start,
|
|
17
|
+
Maybe<protocol::Debugger::Location> end,
|
|
18
|
+
Maybe<bool> restrictToFunction,
|
|
19
|
+
std::unique_ptr<protocol::Array<protocol::Debugger::BreakLocation>>* locations) override;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
#endif /* NSV8DebuggerAgentImpl_h */
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
#ifndef v8_overlay_agent_impl_h
|
|
2
|
+
#define v8_overlay_agent_impl_h
|
|
3
|
+
|
|
4
|
+
#include "src/inspector/protocol/Overlay.h"
|
|
5
|
+
|
|
6
|
+
namespace v8_inspector {
|
|
7
|
+
|
|
8
|
+
class V8InspectorSessionImpl;
|
|
9
|
+
|
|
10
|
+
using v8_inspector::protocol::Maybe;
|
|
11
|
+
using String = v8_inspector::String16;
|
|
12
|
+
using v8_inspector::protocol::DispatchResponse;
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class V8OverlayAgentImpl : public protocol::Overlay::Backend {
|
|
16
|
+
public:
|
|
17
|
+
V8OverlayAgentImpl(V8InspectorSessionImpl *, protocol::FrontendChannel *,
|
|
18
|
+
protocol::DictionaryValue *state);
|
|
19
|
+
|
|
20
|
+
~V8OverlayAgentImpl() override;
|
|
21
|
+
V8OverlayAgentImpl(const V8OverlayAgentImpl&) = delete;
|
|
22
|
+
V8OverlayAgentImpl& operator=(const V8OverlayAgentImpl&) = delete;
|
|
23
|
+
|
|
24
|
+
DispatchResponse enable() override;
|
|
25
|
+
DispatchResponse disable() override;
|
|
26
|
+
DispatchResponse setShowFPSCounter(bool in_show) override;
|
|
27
|
+
DispatchResponse setPausedInDebuggerMessage(const Maybe<String> in_message) override;
|
|
28
|
+
DispatchResponse setShowAdHighlights(bool in_show) override;
|
|
29
|
+
|
|
30
|
+
DispatchResponse
|
|
31
|
+
highlightNode(std::unique_ptr<protocol::Overlay::HighlightConfig> in_highlightConfig,
|
|
32
|
+
Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectId,
|
|
33
|
+
Maybe<String> in_selector) override;
|
|
34
|
+
|
|
35
|
+
DispatchResponse
|
|
36
|
+
highlightFrame(const String &in_frameId, Maybe<protocol::DOM::RGBA> in_contentColor,
|
|
37
|
+
Maybe<protocol::DOM::RGBA> in_contentOutlineColor) override;
|
|
38
|
+
|
|
39
|
+
DispatchResponse hideHighlight() override;
|
|
40
|
+
|
|
41
|
+
DispatchResponse getHighlightObjectForTest(int in_nodeId,
|
|
42
|
+
Maybe<bool> in_includeDistance, Maybe<bool> in_includeStyle, std::unique_ptr<protocol::DictionaryValue>* out_highlight) override;
|
|
43
|
+
|
|
44
|
+
DispatchResponse highlightQuad(std::unique_ptr<protocol::Array<double>> in_quad,
|
|
45
|
+
Maybe<protocol::DOM::RGBA> in_color,
|
|
46
|
+
Maybe<protocol::DOM::RGBA> in_outlineColor) override;
|
|
47
|
+
|
|
48
|
+
DispatchResponse highlightRect(int in_x, int in_y, int in_width, int in_height,
|
|
49
|
+
Maybe<protocol::DOM::RGBA> in_color,
|
|
50
|
+
Maybe<protocol::DOM::RGBA> in_outlineColor) override;
|
|
51
|
+
|
|
52
|
+
DispatchResponse setInspectMode(const String &in_mode,
|
|
53
|
+
Maybe<protocol::Overlay::HighlightConfig> in_highlightConfig) override;
|
|
54
|
+
|
|
55
|
+
DispatchResponse setShowDebugBorders(bool in_show) override;
|
|
56
|
+
DispatchResponse setShowPaintRects(bool in_result) override;
|
|
57
|
+
DispatchResponse setShowScrollBottleneckRects(bool in_show) override;
|
|
58
|
+
DispatchResponse setShowHitTestBorders(bool in_show) override;
|
|
59
|
+
DispatchResponse setShowViewportSizeOnResize(bool in_show) override;
|
|
60
|
+
DispatchResponse setShowLayoutShiftRegions(bool in_result) override;
|
|
61
|
+
|
|
62
|
+
private:
|
|
63
|
+
protocol::Overlay::Frontend m_frontend;
|
|
64
|
+
protocol::DictionaryValue *m_state;
|
|
65
|
+
bool m_enabled;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
#endif /* v8_overlay_agent_impl_h */
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
#ifndef v8_page_agent_impl_h
|
|
2
|
+
#define v8_page_agent_impl_h
|
|
3
|
+
|
|
4
|
+
#include <vector>
|
|
5
|
+
#include <map>
|
|
6
|
+
#include "src/inspector/protocol/Page.h"
|
|
7
|
+
#include "src/inspector/protocol/Protocol.h"
|
|
8
|
+
|
|
9
|
+
namespace v8_inspector {
|
|
10
|
+
|
|
11
|
+
class V8InspectorImpl;
|
|
12
|
+
class V8InspectorSessionImpl;
|
|
13
|
+
|
|
14
|
+
using v8_inspector::protocol::Maybe;
|
|
15
|
+
using String = v8_inspector::String16;
|
|
16
|
+
using protocol::DispatchResponse;
|
|
17
|
+
|
|
18
|
+
class V8PageAgentImpl : public protocol::Page::Backend {
|
|
19
|
+
public:
|
|
20
|
+
V8PageAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, protocol::DictionaryValue* state);
|
|
21
|
+
~V8PageAgentImpl() override;
|
|
22
|
+
V8PageAgentImpl(const V8PageAgentImpl&) = delete;
|
|
23
|
+
V8PageAgentImpl& operator=(const V8PageAgentImpl&) = delete;
|
|
24
|
+
|
|
25
|
+
DispatchResponse enable() override;
|
|
26
|
+
DispatchResponse disable() override;
|
|
27
|
+
DispatchResponse addScriptToEvaluateOnLoad(const String& in_scriptSource, String* out_identifier) override;
|
|
28
|
+
DispatchResponse removeScriptToEvaluateOnLoad(const String& in_identifier) override;
|
|
29
|
+
DispatchResponse reload(Maybe<bool> in_ignoreCache, Maybe<String> in_scriptToEvaluateOnLoad) override;
|
|
30
|
+
DispatchResponse getResourceTree(std::unique_ptr<protocol::Page::FrameResourceTree>* out_frameTree) override;
|
|
31
|
+
void getResourceContent(const String& in_frameId, const String& in_url, std::unique_ptr<GetResourceContentCallback> callback) override;
|
|
32
|
+
void searchInResource(const String& in_frameId, const String& in_url, const String& in_query, Maybe<bool> in_caseSensitive, Maybe<bool> in_isRegex, std::unique_ptr<SearchInResourceCallback> callback) override;
|
|
33
|
+
DispatchResponse setDocumentContent(const String& in_frameId, const String& in_html) override;
|
|
34
|
+
DispatchResponse addScriptToEvaluateOnNewDocument(const String& in_source, Maybe<String> in_worldName, String* out_identifier) override;
|
|
35
|
+
DispatchResponse createIsolatedWorld(const String& in_frameId, Maybe<String> in_worldName, Maybe<bool> in_grantUniveralAccess, int* out_executionContextId) override;
|
|
36
|
+
DispatchResponse getFrameTree(std::unique_ptr<protocol::Page::FrameTree>* out_frameTree) override;
|
|
37
|
+
DispatchResponse getLayoutMetrics(std::unique_ptr<protocol::Page::LayoutViewport>* out_layoutViewport, std::unique_ptr<protocol::Page::VisualViewport>* out_visualViewport, std::unique_ptr<protocol::DOM::Rect>* out_contentSize) override;
|
|
38
|
+
DispatchResponse removeScriptToEvaluateOnNewDocument(const String& in_identifier) override;
|
|
39
|
+
DispatchResponse setAdBlockingEnabled(bool in_enabled) override;
|
|
40
|
+
DispatchResponse setBypassCSP(bool in_enabled) override;
|
|
41
|
+
DispatchResponse setFontFamilies(std::unique_ptr<protocol::Page::FontFamilies> in_fontFamilies) override;
|
|
42
|
+
DispatchResponse setFontSizes(std::unique_ptr<protocol::Page::FontSizes> in_fontSizes) override;
|
|
43
|
+
DispatchResponse setLifecycleEventsEnabled(bool in_enabled) override;
|
|
44
|
+
DispatchResponse startScreencast(Maybe<String> in_format, Maybe<int> in_quality, Maybe<int> in_maxWidth, Maybe<int> in_maxHeight, Maybe<int> in_everyNthFrame) override;
|
|
45
|
+
DispatchResponse stopLoading() override;
|
|
46
|
+
DispatchResponse stopScreencast() override;
|
|
47
|
+
DispatchResponse setProduceCompilationCache(bool in_enabled) override;
|
|
48
|
+
DispatchResponse addCompilationCache(const String& in_url, const protocol::Binary& in_data) override;
|
|
49
|
+
DispatchResponse clearCompilationCache() override;
|
|
50
|
+
DispatchResponse generateTestReport(const String& in_message, Maybe<String> in_group) override;
|
|
51
|
+
DispatchResponse waitForDebugger() override;
|
|
52
|
+
DispatchResponse setInterceptFileChooserDialog(bool in_enabled) override;
|
|
53
|
+
DispatchResponse getInstallabilityErrors(std::unique_ptr<protocol::Array<String>>* out_errors) override;
|
|
54
|
+
DispatchResponse getManifestIcons(Maybe<protocol::Binary>* out_primaryIcon) override;
|
|
55
|
+
|
|
56
|
+
void restore();
|
|
57
|
+
void reset();
|
|
58
|
+
const bool enabled() {
|
|
59
|
+
return m_enabled;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
private:
|
|
63
|
+
V8InspectorImpl* m_inspector;
|
|
64
|
+
v8::Isolate* m_isolate;
|
|
65
|
+
V8InspectorSessionImpl* m_session;
|
|
66
|
+
protocol::Page::Frontend m_frontend;
|
|
67
|
+
protocol::DictionaryValue* m_state;
|
|
68
|
+
bool m_enabled;
|
|
69
|
+
const std::string m_frameIdentifier;
|
|
70
|
+
const std::string m_frameUrl;
|
|
71
|
+
|
|
72
|
+
static std::map<std::string, const char*> s_mimeTypeMap;
|
|
73
|
+
|
|
74
|
+
struct PageEntry {
|
|
75
|
+
std::string Name;
|
|
76
|
+
std::string Type;
|
|
77
|
+
std::string MimeType;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
std::string GetResourceType(std::string fullPath);
|
|
81
|
+
void ReadEntries(std::string baseDir, std::vector<PageEntry>& entries);
|
|
82
|
+
bool HasTextContent(std::string type);
|
|
83
|
+
String16 GetResourceContent(const String& url, bool& shouldEncode);
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
#endif /* v8_page_agent_impl_h */
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// Copyright 2015 the V8 project authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
#ifndef V8_INSPECTOR_V8_PROFILER_AGENT_IMPL_H_
|
|
6
|
+
#define V8_INSPECTOR_V8_PROFILER_AGENT_IMPL_H_
|
|
7
|
+
|
|
8
|
+
#include <memory>
|
|
9
|
+
#include <vector>
|
|
10
|
+
|
|
11
|
+
#include "src/base/macros.h"
|
|
12
|
+
#include "src/inspector/protocol/Forward.h"
|
|
13
|
+
#include "src/inspector/protocol/Profiler.h"
|
|
14
|
+
|
|
15
|
+
namespace v8 {
|
|
16
|
+
class CpuProfiler;
|
|
17
|
+
class Isolate;
|
|
18
|
+
} // namespace v8
|
|
19
|
+
|
|
20
|
+
namespace v8_inspector {
|
|
21
|
+
|
|
22
|
+
class V8InspectorSessionImpl;
|
|
23
|
+
|
|
24
|
+
using protocol::Maybe;
|
|
25
|
+
using protocol::Response;
|
|
26
|
+
|
|
27
|
+
class V8ProfilerAgentImpl : public protocol::Profiler::Backend {
|
|
28
|
+
public:
|
|
29
|
+
V8ProfilerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*,
|
|
30
|
+
protocol::DictionaryValue* state);
|
|
31
|
+
~V8ProfilerAgentImpl() override;
|
|
32
|
+
V8ProfilerAgentImpl(const V8ProfilerAgentImpl&) = delete;
|
|
33
|
+
V8ProfilerAgentImpl& operator=(const V8ProfilerAgentImpl&) = delete;
|
|
34
|
+
|
|
35
|
+
bool enabled() const { return m_enabled; }
|
|
36
|
+
void restore();
|
|
37
|
+
|
|
38
|
+
Response enable() override;
|
|
39
|
+
Response disable() override;
|
|
40
|
+
Response setSamplingInterval(int) override;
|
|
41
|
+
Response start() override;
|
|
42
|
+
Response stop(std::unique_ptr<protocol::Profiler::Profile>*) override;
|
|
43
|
+
|
|
44
|
+
Response startPreciseCoverage(Maybe<bool> binary, Maybe<bool> detailed,
|
|
45
|
+
Maybe<bool> allow_triggered_updates,
|
|
46
|
+
double* out_timestamp) override;
|
|
47
|
+
Response stopPreciseCoverage() override;
|
|
48
|
+
Response takePreciseCoverage(
|
|
49
|
+
std::unique_ptr<protocol::Array<protocol::Profiler::ScriptCoverage>>*
|
|
50
|
+
out_result,
|
|
51
|
+
double* out_timestamp) override;
|
|
52
|
+
Response getBestEffortCoverage(
|
|
53
|
+
std::unique_ptr<protocol::Array<protocol::Profiler::ScriptCoverage>>*
|
|
54
|
+
out_result) override;
|
|
55
|
+
|
|
56
|
+
Response startTypeProfile() override;
|
|
57
|
+
Response stopTypeProfile() override;
|
|
58
|
+
Response takeTypeProfile(
|
|
59
|
+
std::unique_ptr<protocol::Array<protocol::Profiler::ScriptTypeProfile>>*
|
|
60
|
+
out_result) override;
|
|
61
|
+
|
|
62
|
+
Response enableCounters() override;
|
|
63
|
+
Response disableCounters() override;
|
|
64
|
+
Response getCounters(
|
|
65
|
+
std::unique_ptr<protocol::Array<protocol::Profiler::CounterInfo>>*
|
|
66
|
+
out_result) override;
|
|
67
|
+
|
|
68
|
+
Response enableRuntimeCallStats() override;
|
|
69
|
+
Response disableRuntimeCallStats() override;
|
|
70
|
+
Response getRuntimeCallStats(
|
|
71
|
+
std::unique_ptr<
|
|
72
|
+
protocol::Array<protocol::Profiler::RuntimeCallCounterInfo>>*
|
|
73
|
+
out_result) override;
|
|
74
|
+
|
|
75
|
+
void consoleProfile(const String16& title);
|
|
76
|
+
void consoleProfileEnd(const String16& title);
|
|
77
|
+
|
|
78
|
+
void triggerPreciseCoverageDeltaUpdate(const String16& occassion);
|
|
79
|
+
|
|
80
|
+
private:
|
|
81
|
+
String16 nextProfileId();
|
|
82
|
+
|
|
83
|
+
void startProfiling(const String16& title);
|
|
84
|
+
std::unique_ptr<protocol::Profiler::Profile> stopProfiling(
|
|
85
|
+
const String16& title, bool serialize);
|
|
86
|
+
|
|
87
|
+
V8InspectorSessionImpl* m_session;
|
|
88
|
+
v8::Isolate* m_isolate;
|
|
89
|
+
v8::CpuProfiler* m_profiler = nullptr;
|
|
90
|
+
protocol::DictionaryValue* m_state;
|
|
91
|
+
protocol::Profiler::Frontend m_frontend;
|
|
92
|
+
bool m_enabled = false;
|
|
93
|
+
bool m_recordingCPUProfile = false;
|
|
94
|
+
class ProfileDescriptor;
|
|
95
|
+
std::vector<ProfileDescriptor> m_startedProfiles;
|
|
96
|
+
String16 m_frontendInitiatedProfileId;
|
|
97
|
+
int m_startedProfilesCount = 0;
|
|
98
|
+
std::shared_ptr<V8Inspector::Counters> m_counters;
|
|
99
|
+
bool m_runtime_call_stats_enabled = false;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
} // namespace v8_inspector
|
|
103
|
+
|
|
104
|
+
#endif // V8_INSPECTOR_V8_PROFILER_AGENT_IMPL_H_
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Copyright 2016 the V8 project authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
#ifndef V8_INSPECTOR_V8_REGEX_H_
|
|
6
|
+
#define V8_INSPECTOR_V8_REGEX_H_
|
|
7
|
+
|
|
8
|
+
#include "src/base/macros.h"
|
|
9
|
+
#include "src/inspector/string-16.h"
|
|
10
|
+
|
|
11
|
+
#include "include/v8.h"
|
|
12
|
+
|
|
13
|
+
namespace v8_inspector {
|
|
14
|
+
|
|
15
|
+
class V8InspectorImpl;
|
|
16
|
+
|
|
17
|
+
enum MultilineMode { MultilineDisabled, MultilineEnabled };
|
|
18
|
+
|
|
19
|
+
class V8Regex {
|
|
20
|
+
public:
|
|
21
|
+
V8Regex(V8InspectorImpl*, const String16&, bool caseSensitive,
|
|
22
|
+
bool multiline = false);
|
|
23
|
+
V8Regex(const V8Regex&) = delete;
|
|
24
|
+
V8Regex& operator=(const V8Regex&) = delete;
|
|
25
|
+
int match(const String16&, int startFrom = 0,
|
|
26
|
+
int* matchLength = nullptr) const;
|
|
27
|
+
bool isValid() const { return !m_regex.IsEmpty(); }
|
|
28
|
+
const String16& errorMessage() const { return m_errorMessage; }
|
|
29
|
+
|
|
30
|
+
private:
|
|
31
|
+
V8InspectorImpl* m_inspector;
|
|
32
|
+
v8::Global<v8::RegExp> m_regex;
|
|
33
|
+
String16 m_errorMessage;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
} // namespace v8_inspector
|
|
37
|
+
|
|
38
|
+
#endif // V8_INSPECTOR_V8_REGEX_H_
|