Changeset 262203 in webkit
- Timestamp:
- May 27, 2020, 11:09:46 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 deleted
- 64 edited
- 96 copied
-
Source/JavaScriptCore/CMakeLists.txt (modified) (5 diffs)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig (modified) (2 diffs)
-
Source/JavaScriptCore/DerivedSources-input.xcfilelist (modified) (4 diffs)
-
Source/JavaScriptCore/DerivedSources.make (modified) (8 diffs)
-
Source/JavaScriptCore/Scripts/generate-derived-sources.sh (modified) (1 diff)
-
Source/JavaScriptCore/inspector/protocol/CPUProfiler.json (modified) (1 diff)
-
Source/JavaScriptCore/inspector/protocol/Canvas.json (modified) (10 diffs)
-
Source/JavaScriptCore/inspector/protocol/DOM.json (modified) (2 diffs)
-
Source/JavaScriptCore/inspector/protocol/IndexedDB.json (modified) (1 diff)
-
Source/JavaScriptCore/inspector/protocol/Inspector.json (modified) (1 diff)
-
Source/JavaScriptCore/inspector/protocol/Memory.json (modified) (1 diff)
-
Source/JavaScriptCore/inspector/protocol/Page.json (modified) (5 diffs)
-
Source/JavaScriptCore/inspector/protocol/ServiceWorker.json (modified) (1 diff)
-
Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator_templates.py (modified) (2 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_alternate_backend_dispatcher_header.py (modified) (3 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_backend_dispatcher_header.py (modified) (5 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_backend_dispatcher_implementation.py (modified) (8 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_frontend_dispatcher_header.py (modified) (2 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_frontend_dispatcher_implementation.py (modified) (2 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_protocol_types_header.py (modified) (10 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_protocol_types_implementation.py (modified) (5 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generate_js_backend_commands.py (modified) (6 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_backend_dispatcher_header.py (modified) (2 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_backend_dispatcher_implementation.py (modified) (2 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_header.py (modified) (11 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_header.py (modified) (4 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py (modified) (4 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_types_implementation.py (modified) (3 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generator.py (modified) (4 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/generator_templates.py (modified) (1 diff)
-
Source/JavaScriptCore/inspector/scripts/codegen/models.py (modified) (10 diffs)
-
Source/JavaScriptCore/inspector/scripts/codegen/objc_generator_templates.py (modified) (1 diff)
-
Source/JavaScriptCore/inspector/scripts/codegen/preprocess.pl (added)
-
Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py (modified) (7 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/all (deleted)
-
Source/JavaScriptCore/inspector/scripts/tests/command-targetType-matching-domain-debuggableType.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/command-targetType-matching-domain-debuggableType.json )
-
Source/JavaScriptCore/inspector/scripts/tests/commands-with-async-attribute.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/commands-with-async-attribute.json )
-
Source/JavaScriptCore/inspector/scripts/tests/commands-with-optional-call-return-parameters.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/commands-with-optional-call-return-parameters.json )
-
Source/JavaScriptCore/inspector/scripts/tests/definitions-with-mac-platform.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/mac/definitions-with-mac-platform.json ) (3 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/domain-debuggableTypes.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/domain-debuggableTypes.json )
-
Source/JavaScriptCore/inspector/scripts/tests/domain-targetType-matching-domain-debuggableType.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/domain-targetType-matching-domain-debuggableType.json )
-
Source/JavaScriptCore/inspector/scripts/tests/domain-targetTypes.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/domain-targetTypes.json )
-
Source/JavaScriptCore/inspector/scripts/tests/domains-with-varying-command-sizes.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/domains-with-varying-command-sizes.json )
-
Source/JavaScriptCore/inspector/scripts/tests/enum-values.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/enum-values.json )
-
Source/JavaScriptCore/inspector/scripts/tests/event-targetType-matching-domain-debuggableType.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/event-targetType-matching-domain-debuggableType.json )
-
Source/JavaScriptCore/inspector/scripts/tests/events-with-optional-parameters.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/events-with-optional-parameters.json )
-
Source/JavaScriptCore/inspector/scripts/tests/expected (added)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/command-targetType-matching-domain-debuggableType.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/command-targetType-matching-domain-debuggableType.json-result ) (26 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-async-attribute.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/commands-with-async-attribute.json-result ) (36 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/commands-with-optional-call-return-parameters.json-result ) (37 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/definitions-with-mac-platform.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/mac/expected/definitions-with-mac-platform.json-result ) (43 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/domain-debuggableTypes.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/domain-debuggableTypes.json-result ) (26 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/domain-targetType-matching-domain-debuggableType.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/domain-targetType-matching-domain-debuggableType.json-result ) (26 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/domain-targetTypes.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/domain-targetTypes.json-result ) (26 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/domains-with-varying-command-sizes.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/domains-with-varying-command-sizes.json-result ) (36 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/enum-values.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/enum-values.json-result ) (30 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/event-targetType-matching-domain-debuggableType.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/event-targetType-matching-domain-debuggableType.json-result ) (26 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/events-with-optional-parameters.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/events-with-optional-parameters.json-result ) (24 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-command-targetType-matching-domain-debuggableType.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-command-targetType-matching-domain-debuggableType.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-command-targetTypes-type.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-command-targetTypes-type.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-command-targetTypes-value.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-command-targetTypes-value.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-domain-debuggableTypes-type.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-debuggableTypes-type.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-domain-debuggableTypes-value.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-debuggableTypes-value.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-domain-targetType-matching-domain-debuggableType.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-targetType-matching-domain-debuggableType.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-domain-targetTypes-type.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-targetTypes-type.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-domain-targetTypes-value.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-targetTypes-value.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-duplicate-command-call-parameter-names.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-duplicate-command-call-parameter-names.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-duplicate-command-return-parameter-names.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-duplicate-command-return-parameter-names.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-duplicate-event-parameter-names.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-duplicate-event-parameter-names.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-duplicate-type-declarations.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-duplicate-type-declarations.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-duplicate-type-member-names.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-duplicate-type-member-names.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-enum-with-no-values.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-enum-with-no-values.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-event-targetType-matching-domain-debuggableType.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-event-targetType-matching-domain-debuggableType.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-event-targetTypes-type.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-event-targetTypes-type.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-event-targetTypes-value.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-event-targetTypes-value.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-number-typed-optional-parameter-flag.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-number-typed-optional-parameter-flag.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-number-typed-optional-type-member.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-number-typed-optional-type-member.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-string-typed-optional-parameter-flag.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-string-typed-optional-parameter-flag.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-string-typed-optional-type-member.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-string-typed-optional-type-member.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-type-declaration-using-type-reference.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-type-declaration-using-type-reference.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-type-reference-as-primitive-type.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-type-reference-as-primitive-type.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-type-with-lowercase-name.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-type-with-lowercase-name.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-unknown-type-reference-in-type-declaration.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-unknown-type-reference-in-type-declaration.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/fail-on-unknown-type-reference-in-type-member.json-error (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-unknown-type-reference-in-type-member.json-error )
-
Source/JavaScriptCore/inspector/scripts/tests/expected/generate-domains-with-feature-guards.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/generate-domains-with-feature-guards.json-result ) (42 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/same-type-id-different-domain.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/same-type-id-different-domain.json-result ) (21 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/shadowed-optional-type-setters.json-result ) (26 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/should-strip-comments.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/should-strip-comments.json-result ) (21 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-aliased-primitive-type.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/type-declaration-aliased-primitive-type.json-result ) (21 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-array-type.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/type-declaration-array-type.json-result ) (26 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-enum-type.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/type-declaration-enum-type.json-result ) (27 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-object-type.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/type-declaration-object-type.json-result ) (34 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/type-requiring-runtime-casts.json-result ) (30 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/type-with-open-parameters.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/type-with-open-parameters.json-result ) (23 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/expected/version.json-result (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/version.json-result ) (22 diffs)
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-command-targetType-matching-domain-debuggableType.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-command-targetType-matching-domain-debuggableType.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-command-targetTypes-type.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-command-targetTypes-type.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-command-targetTypes-value.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-command-targetTypes-value.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-domain-debuggableTypes-type.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-debuggableTypes-type.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-domain-debuggableTypes-value.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-debuggableTypes-value.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-domain-targetType-matching-domain-debuggableType.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-targetType-matching-domain-debuggableType.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-domain-targetTypes-type.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-targetTypes-type.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-domain-targetTypes-value.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-targetTypes-value.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-duplicate-command-call-parameter-names.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-duplicate-command-call-parameter-names.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-duplicate-command-return-parameter-names.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-duplicate-command-return-parameter-names.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-duplicate-event-parameter-names.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-duplicate-event-parameter-names.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-duplicate-type-declarations.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-duplicate-type-declarations.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-duplicate-type-member-names.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-duplicate-type-member-names.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-enum-with-no-values.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-enum-with-no-values.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-event-targetType-matching-domain-debuggableType.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-event-targetType-matching-domain-debuggableType.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-event-targetTypes-type.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-event-targetTypes-type.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-event-targetTypes-value.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-event-targetTypes-value.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-number-typed-optional-parameter-flag.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-number-typed-optional-parameter-flag.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-number-typed-optional-type-member.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-number-typed-optional-type-member.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-string-typed-optional-parameter-flag.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-string-typed-optional-parameter-flag.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-string-typed-optional-type-member.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-string-typed-optional-type-member.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-type-declaration-using-type-reference.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-type-declaration-using-type-reference.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-type-reference-as-primitive-type.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-type-reference-as-primitive-type.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-type-with-lowercase-name.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-type-with-lowercase-name.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-unknown-type-reference-in-type-declaration.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-unknown-type-reference-in-type-declaration.json )
-
Source/JavaScriptCore/inspector/scripts/tests/fail-on-unknown-type-reference-in-type-member.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-unknown-type-reference-in-type-member.json )
-
Source/JavaScriptCore/inspector/scripts/tests/generate-domains-with-feature-guards.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/generate-domains-with-feature-guards.json )
-
Source/JavaScriptCore/inspector/scripts/tests/generic (deleted)
-
Source/JavaScriptCore/inspector/scripts/tests/ios (deleted)
-
Source/JavaScriptCore/inspector/scripts/tests/mac (deleted)
-
Source/JavaScriptCore/inspector/scripts/tests/same-type-id-different-domain.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/same-type-id-different-domain.json )
-
Source/JavaScriptCore/inspector/scripts/tests/shadowed-optional-type-setters.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/shadowed-optional-type-setters.json )
-
Source/JavaScriptCore/inspector/scripts/tests/should-strip-comments.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/should-strip-comments.json )
-
Source/JavaScriptCore/inspector/scripts/tests/type-declaration-aliased-primitive-type.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/type-declaration-aliased-primitive-type.json )
-
Source/JavaScriptCore/inspector/scripts/tests/type-declaration-array-type.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/type-declaration-array-type.json )
-
Source/JavaScriptCore/inspector/scripts/tests/type-declaration-enum-type.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/type-declaration-enum-type.json )
-
Source/JavaScriptCore/inspector/scripts/tests/type-declaration-object-type.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/type-declaration-object-type.json )
-
Source/JavaScriptCore/inspector/scripts/tests/type-requiring-runtime-casts.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/type-requiring-runtime-casts.json )
-
Source/JavaScriptCore/inspector/scripts/tests/type-with-open-parameters.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/type-with-open-parameters.json )
-
Source/JavaScriptCore/inspector/scripts/tests/version.json (copied) (copied from trunk/Source/JavaScriptCore/inspector/scripts/tests/generic/version.json )
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Configurations/FeatureDefines.xcconfig (modified) (2 diffs)
-
Source/WebCore/PAL/ChangeLog (modified) (1 diff)
-
Source/WebCore/PAL/Configurations/FeatureDefines.xcconfig (modified) (2 diffs)
-
Source/WebCore/inspector/InspectorFrontendHost.idl (modified) (1 diff)
-
Source/WebCore/inspector/InspectorInstrumentation.cpp (modified) (2 diffs)
-
Source/WebCore/inspector/InspectorInstrumentation.h (modified) (4 diffs)
-
Source/WebCore/inspector/InspectorShaderProgram.cpp (modified) (4 diffs)
-
Source/WebCore/inspector/InspectorShaderProgram.h (modified) (2 diffs)
-
Source/WebCore/inspector/agents/InspectorCanvasAgent.cpp (modified) (19 diffs)
-
Source/WebCore/inspector/agents/InspectorCanvasAgent.h (modified) (9 diffs)
-
Source/WebCore/inspector/agents/InspectorDOMAgent.cpp (modified) (1 diff)
-
Source/WebCore/inspector/agents/InspectorDOMAgent.h (modified) (1 diff)
-
Source/WebCore/inspector/agents/InspectorPageAgent.cpp (modified) (8 diffs)
-
Source/WebCore/inspector/agents/InspectorPageAgent.h (modified) (3 diffs)
-
Source/WebInspectorUI/CMakeLists.txt (modified) (1 diff)
-
Source/WebInspectorUI/ChangeLog (modified) (1 diff)
-
Source/WebInspectorUI/UserInterface/Base/Main.js (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/Configurations/FeatureDefines.xcconfig (modified) (2 diffs)
-
Source/WebKit/DerivedSources.make (modified) (1 diff)
-
Source/WebKit/PlatformMac.cmake (modified) (1 diff)
-
Source/WebKit/UIProcess/Automation/Automation.json (modified) (1 diff)
-
Source/WebKit/UIProcess/Automation/WebAutomationSession.h (modified) (1 diff)
-
Source/WebKit/UIProcess/Automation/mac/WebAutomationSessionMac.mm (modified) (1 diff)
-
Source/WebKitLegacy/mac/ChangeLog (modified) (1 diff)
-
Source/WebKitLegacy/mac/Configurations/FeatureDefines.xcconfig (modified) (2 diffs)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/Scripts/webkitpy/inspector/main.py (modified) (5 diffs)
-
Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/CMakeLists.txt
r262039 r262203 1151 1151 ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/__init__.py 1152 1152 ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/models.py 1153 ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/preprocess.pl 1153 1154 ) 1154 1155 … … 1157 1158 ${JAVASCRIPTCORE_DIR}/inspector/protocol/ApplicationCache.json 1158 1159 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Audit.json 1160 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Browser.json 1161 ${JAVASCRIPTCORE_DIR}/inspector/protocol/CPUProfiler.json 1159 1162 ${JAVASCRIPTCORE_DIR}/inspector/protocol/CSS.json 1160 1163 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Canvas.json … … 1165 1168 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Database.json 1166 1169 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Debugger.json 1167 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Browser.json1168 1170 ${JAVASCRIPTCORE_DIR}/inspector/protocol/GenericTypes.json 1169 1171 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Heap.json 1172 ${JAVASCRIPTCORE_DIR}/inspector/protocol/IndexedDB.json 1170 1173 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Inspector.json 1171 1174 ${JAVASCRIPTCORE_DIR}/inspector/protocol/LayerTree.json 1175 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Memory.json 1172 1176 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Network.json 1173 1177 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Page.json … … 1176 1180 ${JAVASCRIPTCORE_DIR}/inspector/protocol/ScriptProfiler.json 1177 1181 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Security.json 1182 ${JAVASCRIPTCORE_DIR}/inspector/protocol/ServiceWorker.json 1178 1183 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Target.json 1179 1184 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Timeline.json 1180 1185 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Worker.json 1181 1186 ) 1182 1183 if (ENABLE_INDEXED_DATABASE)1184 list(APPEND JavaScriptCore_INSPECTOR_DOMAINS1185 ${JAVASCRIPTCORE_DIR}/inspector/protocol/IndexedDB.json1186 )1187 endif ()1188 1189 if (ENABLE_RESOURCE_USAGE)1190 list(APPEND JavaScriptCore_INSPECTOR_DOMAINS1191 ${JAVASCRIPTCORE_DIR}/inspector/protocol/CPUProfiler.json1192 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Memory.json1193 )1194 endif ()1195 1196 if (ENABLE_SERVICE_WORKER)1197 list(APPEND JavaScriptCore_INSPECTOR_DOMAINS1198 ${JAVASCRIPTCORE_DIR}/inspector/protocol/ServiceWorker.json1199 )1200 endif ()1201 1187 1202 1188 add_custom_command( … … 1217 1203 ${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector/InspectorProtocolObjects.cpp 1218 1204 ${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector/InspectorProtocolObjects.h 1219 ${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector/InspectorBackendCommands.js1220 1205 MAIN_DEPENDENCY ${JavaScriptCore_DERIVED_SOURCES_DIR}/CombinedDomains.json 1221 1206 DEPENDS ${JavaScriptCore_INSPECTOR_PROTOCOL_SCRIPTS} 1222 1207 COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/generate-inspector-protocol-bindings.py --outputDir "${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector" --framework JavaScriptCore ${JavaScriptCore_DERIVED_SOURCES_DIR}/CombinedDomains.json 1223 1208 VERBATIM) 1209 add_custom_command( 1210 OUTPUT ${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector/InspectorBackendCommands.js 1211 ${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector/InspectorBackendCommands.js.in 1212 MAIN_DEPENDENCY ${JavaScriptCore_DERIVED_SOURCES_DIR}/CombinedDomains.json 1213 DEPENDS ${JavaScriptCore_INSPECTOR_PROTOCOL_SCRIPTS} 1214 COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/generate-inspector-protocol-bindings.py --outputDir ${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector --framework WebInspectorUI ${JavaScriptCore_DERIVED_SOURCES_DIR}/CombinedDomains.json 1215 COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/preprocess.pl --input ${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector/InspectorBackendCommands.js.in --defines "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}" --preprocessor "${CODE_GENERATOR_PREPROCESSOR}" --output ${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector/InspectorBackendCommands.js 1216 VERBATIM) 1217 add_custom_target(InspectorBackendCommands DEPENDS "${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector/InspectorBackendCommands.js") 1224 1218 1225 1219 # JSCBuiltins -
trunk/Source/JavaScriptCore/ChangeLog
r262197 r262203 1 2020-05-27 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: replace `featureGuard` and `availability` with a combined `condition` that accepts any macro 4 https://bugs.webkit.org/show_bug.cgi?id=210014 5 6 Reviewed by Brian Burg. 7 8 Previously, the generated InspectorBackendCommands.js would include code for things that the 9 backend doesn't actually support. By using actual macros and preprocessing that file, we can 10 ensure that the frontend doesn't incorrectly think that something is supported by the page 11 being inspected: 12 - the `Canvas` commands and events related to shader programs/pipelines should only exist 13 when the corresponding context type exists, namely `ENABLE(WEBGL)` and `ENABLE(WEBGPU)`. 14 - iOS doesn't support showing rulers, so create a variant of `DOM.setInspectModeEnabled` 15 that only exists for `PLATFORM(IOS_FAMILY)` that doesn't have the `showRulers` optional 16 parameter, as well as removing `Page.setShowRulers` entirely. 17 - setting the forced appearance should only be possible if dark mode is supported. 18 - web archives only exist if CF is used. 19 20 * inspector/protocol/CPUProfiler.json: 21 * inspector/protocol/Canvas.json: 22 * inspector/protocol/DOM.json: 23 * inspector/protocol/IndexedDB.json: 24 * inspector/protocol/Inspector.json: 25 * inspector/protocol/Memory.json: 26 * inspector/protocol/Page.json: 27 * inspector/protocol/ServiceWorker.json: 28 29 * Scripts/generate-derived-sources.sh: 30 Set `CC` if it hasn't already been set. 31 32 * DerivedSources.make: 33 * DerivedSources-input.xcfilelist: 34 Preprocess `InspectorBackendCommands.js.in` to get an accurate `InspectorBackendCommands.js` 35 that follows the logic/description above. 36 37 * CMakeLists.txt: 38 Create a new `InspectorBackendCommands` target now that `InspectorBackendCommands.js` is 39 generated seprately from the rest of the protocol files. 40 41 * Configurations/FeatureDefines.xcconfig: 42 Add `ENABLE_WEB_ARCHIVE` since it's always enabled in wtf/PlatformEnableCocoa.h. 43 44 * inspector/scripts/generate-inspector-protocol-bindings.py: 45 (generate_from_specification): 46 (generate_from_specification.load_specification): 47 * inspector/scripts/codegen/generator.py: 48 (Generator.__init__): 49 (Generator.model): 50 (Generator.set_generator_setting): 51 (Generator.type_declarations_for_domain): 52 (Generator.commands_for_domain): 53 (Generator.events_for_domain): 54 (Generator.wrap_with_guard_for_condition): Added. 55 (Generator.platform): Deleted. 56 (Generator.can_generate_platform): Deleted. 57 (Generator.wrap_with_guard_for_domain): Deleted. 58 (Generator.wrap_with_guard): Deleted. 59 * inspector/scripts/codegen/models.py: 60 (Frameworks): 61 (Protocol.parse_domain): 62 (Protocol.parse_type_declaration): 63 (Protocol.parse_command): 64 (Protocol.parse_event): 65 (Domain.__init__): 66 (TypeDeclaration.__init__): 67 (Command.__init__): 68 (Event.__init__): 69 (Platform): Deleted. 70 (Platform.__init__): Deleted. 71 (Platform.fromString): Deleted. 72 (Platforms): Deleted. 73 (Platforms.__metaclass__): Deleted. 74 (Platforms.__metaclass__.__iter__): Deleted. 75 * inspector/scripts/codegen/generator_templates.py: 76 Remove `platform` as it is handled by `condition`. 77 78 * inspector/scripts/codegen/preprocess.pl: Copied from Source/WebCore/bindings/scripts/preprocessor.pm. 79 80 * inspector/scripts/codegen/generate_js_backend_commands.py: 81 (JSBackendCommandsGenerator.output_filename): 82 (JSBackendCommandsGenerator.generate_domain): 83 Output to `InspectorBackendCommands.js.in` that includes `#if` for preprocessing. 84 85 * inspector/scripts/codegen/cpp_generator_templates.py: 86 * inspector/scripts/codegen/generate_cpp_alternate_backend_dispatcher_header.py: 87 (CppAlternateBackendDispatcherHeaderGenerator.generate_output): 88 (CppAlternateBackendDispatcherHeaderGenerator._generate_handler_declarations_for_domain): 89 (CppAlternateBackendDispatcherHeaderGenerator._generate_handler_declaration_for_command): 90 * inspector/scripts/codegen/generate_cpp_backend_dispatcher_header.py: 91 (CppBackendDispatcherHeaderGenerator._generate_alternate_handler_forward_declarations_for_domains.Alternate): 92 (CppBackendDispatcherHeaderGenerator._generate_handler_declarations_for_domain): 93 (CppBackendDispatcherHeaderGenerator._generate_handler_declaration_for_command): 94 (CppBackendDispatcherHeaderGenerator._generate_async_handler_declaration_for_command): 95 (CppBackendDispatcherHeaderGenerator._generate_dispatcher_declarations_for_domain): 96 (CppBackendDispatcherHeaderGenerator._generate_dispatcher_declaration_for_command): 97 * inspector/scripts/codegen/generate_cpp_backend_dispatcher_implementation.py: 98 (CppBackendDispatcherImplementationGenerator.generate_output): 99 (CppBackendDispatcherImplementationGenerator._generate_handler_class_destructor_for_domain): 100 (CppBackendDispatcherImplementationGenerator._generate_dispatcher_implementations_for_domain): 101 (CppBackendDispatcherImplementationGenerator._generate_small_dispatcher_switch_implementation_for_domain): 102 (CppBackendDispatcherImplementationGenerator._generate_large_dispatcher_switch_implementation_for_domain): 103 (CppBackendDispatcherImplementationGenerator._generate_async_dispatcher_class_for_domain): 104 (CppBackendDispatcherImplementationGenerator._generate_dispatcher_implementation_for_command): 105 * inspector/scripts/codegen/generate_cpp_frontend_dispatcher_header.py: 106 (CppFrontendDispatcherHeaderGenerator._generate_dispatcher_declarations_for_domain): 107 (CppFrontendDispatcherHeaderGenerator._generate_dispatcher_declaration_for_event): 108 * inspector/scripts/codegen/generate_cpp_frontend_dispatcher_implementation.py: 109 (CppFrontendDispatcherImplementationGenerator._generate_dispatcher_implementations_for_domain): 110 (CppFrontendDispatcherImplementationGenerator._generate_dispatcher_implementation_for_event): 111 * inspector/scripts/codegen/generate_cpp_protocol_types_header.py: 112 (CppProtocolTypesHeaderGenerator._generate_versions): 113 * inspector/scripts/codegen/generate_cpp_protocol_types_implementation.py: 114 (CppProtocolTypesImplementationGenerator._generate_enum_conversion_methods_for_domain.generate_conversion_method_body): 115 (CppProtocolTypesImplementationGenerator._generate_enum_conversion_methods_for_domain): 116 (CppProtocolTypesImplementationGenerator._generate_open_field_names): 117 (CppProtocolTypesImplementationGenerator._generate_builders_for_domain): 118 * inspector/scripts/codegen/objc_generator_templates.py: 119 * inspector/scripts/codegen/generate_objc_backend_dispatcher_header.py: 120 (ObjCBackendDispatcherHeaderGenerator._generate_objc_handler_declarations_for_domain): 121 (ObjCBackendDispatcherHeaderGenerator._generate_objc_handler_declaration_for_command): 122 * inspector/scripts/codegen/generate_objc_backend_dispatcher_implementation.py: 123 (ObjCBackendDispatcherImplementationGenerator._generate_handler_implementation_for_domain): 124 (ObjCBackendDispatcherImplementationGenerator._generate_handler_implementation_for_command): 125 * inspector/scripts/codegen/generate_objc_header.py: 126 (add_newline): 127 (ObjCHeaderGenerator.generate_output): 128 (ObjCHeaderGenerator._generate_forward_declarations): 129 (ObjCHeaderGenerator._generate_enums): 130 (ObjCHeaderGenerator._generate_types): 131 (ObjCHeaderGenerator._generate_type_interface): 132 (ObjCHeaderGenerator._generate_command_protocols): 133 (ObjCHeaderGenerator._generate_single_command_protocol): 134 (ObjCHeaderGenerator._generate_event_interfaces): 135 (ObjCHeaderGenerator._generate_single_event_interface): 136 (ObjCHeaderGenerator._generate_enum_for_platforms): Deleted. 137 * inspector/scripts/codegen/generate_objc_protocol_type_conversions_header.py: 138 (add_newline): 139 (ObjCProtocolTypeConversionsHeaderGenerator.generate_output): 140 (ObjCProtocolTypeConversionsHeaderGenerator._generate_enum_conversion_functions): 141 (ObjCProtocolTypeConversionsHeaderGenerator._generate_enum_conversion_for_platforms): Deleted. 142 * inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py: 143 (add_newline): 144 (ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_category_interface): 145 (ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_method_declaration): 146 (ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_category_implementation): 147 (ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_method_implementation): 148 * inspector/scripts/codegen/generate_objc_protocol_types_implementation.py: 149 (add_newline): 150 (ObjCProtocolTypesImplementationGenerator.generate_type_implementations): 151 (ObjCProtocolTypesImplementationGenerator.generate_type_implementation): 152 Wrap each domain, type, command, and event with the associated `condition` (if it exists). 153 154 * inspector/scripts/tests/command-targetType-matching-domain-debuggableType.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/command-targetType-matching-domain-debuggableType.json. 155 * inspector/scripts/tests/commands-with-async-attribute.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/commands-with-async-attribute.json. 156 * inspector/scripts/tests/commands-with-optional-call-return-parameters.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/commands-with-optional-call-return-parameters.json. 157 * inspector/scripts/tests/definitions-with-mac-platform.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/mac/definitions-with-mac-platform.json. 158 * inspector/scripts/tests/domain-debuggableTypes.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/domain-debuggableTypes.json. 159 * inspector/scripts/tests/domain-targetType-matching-domain-debuggableType.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/domain-targetType-matching-domain-debuggableType.json. 160 * inspector/scripts/tests/domain-targetTypes.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/domain-targetTypes.json. 161 * inspector/scripts/tests/domains-with-varying-command-sizes.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/domains-with-varying-command-sizes.json. 162 * inspector/scripts/tests/enum-values.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/enum-values.json. 163 * inspector/scripts/tests/event-targetType-matching-domain-debuggableType.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/event-targetType-matching-domain-debuggableType.json. 164 * inspector/scripts/tests/events-with-optional-parameters.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/events-with-optional-parameters.json. 165 * inspector/scripts/tests/expected/command-targetType-matching-domain-debuggableType.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/command-targetType-matching-domain-debuggableType.json-result. 166 * inspector/scripts/tests/expected/commands-with-async-attribute.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/commands-with-async-attribute.json-result. 167 * inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/commands-with-optional-call-return-parameters.json-result. 168 * inspector/scripts/tests/expected/definitions-with-mac-platform.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/mac/expected/definitions-with-mac-platform.json-result. 169 * inspector/scripts/tests/expected/domain-debuggableTypes.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/domain-debuggableTypes.json-result. 170 * inspector/scripts/tests/expected/domain-targetType-matching-domain-debuggableType.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/domain-targetType-matching-domain-debuggableType.json-result. 171 * inspector/scripts/tests/expected/domain-targetTypes.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/domain-targetTypes.json-result. 172 * inspector/scripts/tests/expected/domains-with-varying-command-sizes.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/domains-with-varying-command-sizes.json-result. 173 * inspector/scripts/tests/expected/enum-values.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/enum-values.json-result. 174 * inspector/scripts/tests/expected/event-targetType-matching-domain-debuggableType.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/event-targetType-matching-domain-debuggableType.json-result. 175 * inspector/scripts/tests/expected/events-with-optional-parameters.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/events-with-optional-parameters.json-result. 176 * inspector/scripts/tests/expected/fail-on-command-targetType-matching-domain-debuggableType.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-command-targetType-matching-domain-debuggableType.json-error. 177 * inspector/scripts/tests/expected/fail-on-command-targetTypes-type.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-command-targetTypes-type.json-error. 178 * inspector/scripts/tests/expected/fail-on-command-targetTypes-value.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-command-targetTypes-value.json-error. 179 * inspector/scripts/tests/expected/fail-on-domain-debuggableTypes-type.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-debuggableTypes-type.json-error. 180 * inspector/scripts/tests/expected/fail-on-domain-debuggableTypes-value.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-debuggableTypes-value.json-error. 181 * inspector/scripts/tests/expected/fail-on-domain-targetType-matching-domain-debuggableType.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-targetType-matching-domain-debuggableType.json-error. 182 * inspector/scripts/tests/expected/fail-on-domain-targetTypes-type.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-targetTypes-type.json-error. 183 * inspector/scripts/tests/expected/fail-on-domain-targetTypes-value.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-targetTypes-value.json-error. 184 * inspector/scripts/tests/expected/fail-on-duplicate-command-call-parameter-names.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-duplicate-command-call-parameter-names.json-error. 185 * inspector/scripts/tests/expected/fail-on-duplicate-command-return-parameter-names.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-duplicate-command-return-parameter-names.json-error. 186 * inspector/scripts/tests/expected/fail-on-duplicate-event-parameter-names.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-duplicate-event-parameter-names.json-error. 187 * inspector/scripts/tests/expected/fail-on-duplicate-type-declarations.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-duplicate-type-declarations.json-error. 188 * inspector/scripts/tests/expected/fail-on-duplicate-type-member-names.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-duplicate-type-member-names.json-error. 189 * inspector/scripts/tests/expected/fail-on-enum-with-no-values.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-enum-with-no-values.json-error. 190 * inspector/scripts/tests/expected/fail-on-event-targetType-matching-domain-debuggableType.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-event-targetType-matching-domain-debuggableType.json-error. 191 * inspector/scripts/tests/expected/fail-on-event-targetTypes-type.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-event-targetTypes-type.json-error. 192 * inspector/scripts/tests/expected/fail-on-event-targetTypes-value.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-event-targetTypes-value.json-error. 193 * inspector/scripts/tests/expected/fail-on-number-typed-optional-parameter-flag.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-number-typed-optional-parameter-flag.json-error. 194 * inspector/scripts/tests/expected/fail-on-number-typed-optional-type-member.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-number-typed-optional-type-member.json-error. 195 * inspector/scripts/tests/expected/fail-on-string-typed-optional-parameter-flag.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-string-typed-optional-parameter-flag.json-error. 196 * inspector/scripts/tests/expected/fail-on-string-typed-optional-type-member.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-string-typed-optional-type-member.json-error. 197 * inspector/scripts/tests/expected/fail-on-type-declaration-using-type-reference.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-type-declaration-using-type-reference.json-error. 198 * inspector/scripts/tests/expected/fail-on-type-reference-as-primitive-type.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-type-reference-as-primitive-type.json-error. 199 * inspector/scripts/tests/expected/fail-on-type-with-lowercase-name.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-type-with-lowercase-name.json-error. 200 * inspector/scripts/tests/expected/fail-on-unknown-type-reference-in-type-declaration.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-unknown-type-reference-in-type-declaration.json-error. 201 * inspector/scripts/tests/expected/fail-on-unknown-type-reference-in-type-member.json-error: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-unknown-type-reference-in-type-member.json-error. 202 * inspector/scripts/tests/expected/generate-domains-with-feature-guards.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/generate-domains-with-feature-guards.json-result. 203 * inspector/scripts/tests/expected/same-type-id-different-domain.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/same-type-id-different-domain.json-result. 204 * inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/shadowed-optional-type-setters.json-result. 205 * inspector/scripts/tests/expected/should-strip-comments.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/should-strip-comments.json-result. 206 * inspector/scripts/tests/expected/type-declaration-aliased-primitive-type.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/type-declaration-aliased-primitive-type.json-result. 207 * inspector/scripts/tests/expected/type-declaration-array-type.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/type-declaration-array-type.json-result. 208 * inspector/scripts/tests/expected/type-declaration-enum-type.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/type-declaration-enum-type.json-result. 209 * inspector/scripts/tests/expected/type-declaration-object-type.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/type-declaration-object-type.json-result. 210 * inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/type-requiring-runtime-casts.json-result. 211 * inspector/scripts/tests/expected/type-with-open-parameters.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/type-with-open-parameters.json-result. 212 * inspector/scripts/tests/expected/version.json-result: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/expected/version.json-result. 213 * inspector/scripts/tests/fail-on-command-targetType-matching-domain-debuggableType.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-command-targetType-matching-domain-debuggableType.json. 214 * inspector/scripts/tests/fail-on-command-targetTypes-type.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-command-targetTypes-type.json. 215 * inspector/scripts/tests/fail-on-command-targetTypes-value.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-command-targetTypes-value.json. 216 * inspector/scripts/tests/fail-on-domain-debuggableTypes-type.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-debuggableTypes-type.json. 217 * inspector/scripts/tests/fail-on-domain-debuggableTypes-value.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-debuggableTypes-value.json. 218 * inspector/scripts/tests/fail-on-domain-targetType-matching-domain-debuggableType.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-targetType-matching-domain-debuggableType.json. 219 * inspector/scripts/tests/fail-on-domain-targetTypes-type.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-targetTypes-type.json. 220 * inspector/scripts/tests/fail-on-domain-targetTypes-value.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-targetTypes-value.json. 221 * inspector/scripts/tests/fail-on-duplicate-command-call-parameter-names.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-duplicate-command-call-parameter-names.json. 222 * inspector/scripts/tests/fail-on-duplicate-command-return-parameter-names.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-duplicate-command-return-parameter-names.json. 223 * inspector/scripts/tests/fail-on-duplicate-event-parameter-names.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-duplicate-event-parameter-names.json. 224 * inspector/scripts/tests/fail-on-duplicate-type-declarations.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-duplicate-type-declarations.json. 225 * inspector/scripts/tests/fail-on-duplicate-type-member-names.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-duplicate-type-member-names.json. 226 * inspector/scripts/tests/fail-on-enum-with-no-values.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-enum-with-no-values.json. 227 * inspector/scripts/tests/fail-on-event-targetType-matching-domain-debuggableType.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-event-targetType-matching-domain-debuggableType.json. 228 * inspector/scripts/tests/fail-on-event-targetTypes-type.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-event-targetTypes-type.json. 229 * inspector/scripts/tests/fail-on-event-targetTypes-value.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-event-targetTypes-value.json. 230 * inspector/scripts/tests/fail-on-number-typed-optional-parameter-flag.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-number-typed-optional-parameter-flag.json. 231 * inspector/scripts/tests/fail-on-number-typed-optional-type-member.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-number-typed-optional-type-member.json. 232 * inspector/scripts/tests/fail-on-string-typed-optional-parameter-flag.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-string-typed-optional-parameter-flag.json. 233 * inspector/scripts/tests/fail-on-string-typed-optional-type-member.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-string-typed-optional-type-member.json. 234 * inspector/scripts/tests/fail-on-type-declaration-using-type-reference.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-type-declaration-using-type-reference.json. 235 * inspector/scripts/tests/fail-on-type-reference-as-primitive-type.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-type-reference-as-primitive-type.json. 236 * inspector/scripts/tests/fail-on-type-with-lowercase-name.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-type-with-lowercase-name.json. 237 * inspector/scripts/tests/fail-on-unknown-type-reference-in-type-declaration.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-unknown-type-reference-in-type-declaration.json. 238 * inspector/scripts/tests/fail-on-unknown-type-reference-in-type-member.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-unknown-type-reference-in-type-member.json. 239 * inspector/scripts/tests/generate-domains-with-feature-guards.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/generate-domains-with-feature-guards.json. 240 * inspector/scripts/tests/same-type-id-different-domain.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/same-type-id-different-domain.json. 241 * inspector/scripts/tests/shadowed-optional-type-setters.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/shadowed-optional-type-setters.json. 242 * inspector/scripts/tests/should-strip-comments.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/should-strip-comments.json. 243 * inspector/scripts/tests/type-declaration-aliased-primitive-type.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/type-declaration-aliased-primitive-type.json. 244 * inspector/scripts/tests/type-declaration-array-type.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/type-declaration-array-type.json. 245 * inspector/scripts/tests/type-declaration-enum-type.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/type-declaration-enum-type.json. 246 * inspector/scripts/tests/type-declaration-object-type.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/type-declaration-object-type.json. 247 * inspector/scripts/tests/type-requiring-runtime-casts.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/type-requiring-runtime-casts.json. 248 * inspector/scripts/tests/type-with-open-parameters.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/type-with-open-parameters.json. 249 * inspector/scripts/tests/version.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/version.json. 250 * inspector/scripts/tests/generic/definitions-with-mac-platform.json: Removed. 251 * inspector/scripts/tests/generic/expected/definitions-with-mac-platform.json-result: Removed. 252 * inspector/scripts/tests/generic/fail-on-command-with-invalid-platform.json: Removed. 253 * inspector/scripts/tests/generic/expected/fail-on-command-with-invalid-platform.json-error: Removed. 254 * inspector/scripts/tests/generic/fail-on-type-with-invalid-platform.json: Removed. 255 * inspector/scripts/tests/generic/expected/fail-on-type-with-invalid-platform.json-error: Removed. 256 * inspector/scripts/tests/ios/definitions-with-mac-platform.json: Removed. 257 * inspector/scripts/tests/ios/expected/definitions-with-mac-platform.json-result: Removed. 258 * inspector/scripts/tests/all/definitions-with-mac-platform.json: Removed. 259 * inspector/scripts/tests/all/expected/definitions-with-mac-platform.json-result: Removed. 260 Don't separate the inspector generator tests by platform. 261 1 262 2020-05-27 Keith Miller <keith_miller@apple.com> 2 263 -
trunk/Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
r261845 r262203 378 378 ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN_macosx = ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN; 379 379 380 ENABLE_WEB_ARCHIVE = ENABLE_WEB_ARCHIVE; 381 380 382 ENABLE_WEBDRIVER_MOUSE_INTERACTIONS = $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS_$(WK_PLATFORM_NAME)); 381 383 ENABLE_WEBDRIVER_MOUSE_INTERACTIONS_macosx = ENABLE_WEBDRIVER_MOUSE_INTERACTIONS; … … 420 422 ENABLE_XSLT = ENABLE_XSLT; 421 423 422 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_EDITABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FULLSCREEN_API) $(ENABLE_PICTURE_IN_PICTURE_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_GPU_PROCESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INSPECTOR_TELEMETRY) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NETWORK_CACHE_STALE_WHILE_REVALIDATE) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFSCREEN_CANVAS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB DRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEBXR) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);424 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_EDITABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FULLSCREEN_API) $(ENABLE_PICTURE_IN_PICTURE_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_GPU_PROCESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INSPECTOR_TELEMETRY) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NETWORK_CACHE_STALE_WHILE_REVALIDATE) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFSCREEN_CANVAS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_ARCHIVE) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEBXR) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT); -
trunk/Source/JavaScriptCore/DerivedSources-input.xcfilelist
r261215 r262203 1 1 # This file is generated by the generate-xcfilelists script. 2 $(PROJECT_DIR)/Configurations/FeatureDefines.xcconfig 2 3 $(PROJECT_DIR)/DerivedSources.make 3 4 $(PROJECT_DIR)/KeywordLookupGenerator.py … … 81 82 $(PROJECT_DIR)/inspector/protocol/ApplicationCache.json 82 83 $(PROJECT_DIR)/inspector/protocol/Audit.json 84 $(PROJECT_DIR)/inspector/protocol/Browser.json 83 85 $(PROJECT_DIR)/inspector/protocol/CPUProfiler.json 84 86 $(PROJECT_DIR)/inspector/protocol/CSS.json … … 90 92 $(PROJECT_DIR)/inspector/protocol/Database.json 91 93 $(PROJECT_DIR)/inspector/protocol/Debugger.json 92 $(PROJECT_DIR)/inspector/protocol/Browser.json93 94 $(PROJECT_DIR)/inspector/protocol/GenericTypes.json 94 95 $(PROJECT_DIR)/inspector/protocol/Heap.json … … 120 121 $(PROJECT_DIR)/inspector/scripts/codegen/generator_templates.py 121 122 $(PROJECT_DIR)/inspector/scripts/codegen/models.py 123 $(PROJECT_DIR)/inspector/scripts/codegen/preprocess.pl 122 124 $(PROJECT_DIR)/inspector/scripts/generate-inspector-protocol-bindings.py 123 125 $(PROJECT_DIR)/parser/Keywords.table -
trunk/Source/JavaScriptCore/DerivedSources.make
r261215 r262203 45 45 else 46 46 DELETE = rm -f 47 endif 48 49 PREPROCESSOR_DEFINES = $(FEATURE_DEFINES) 50 51 FRAMEWORK_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(FRAMEWORK_SEARCH_PATHS) $(SYSTEM_FRAMEWORK_SEARCH_PATHS) | perl -e 'print "-F " . join(" -F ", split(" ", <>));') 52 HEADER_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(HEADER_SEARCH_PATHS) $(SYSTEM_HEADER_SEARCH_PATHS) | perl -e 'print "-I" . join(" -I", split(" ", <>));') 53 54 ifneq ($(SDKROOT),) 55 SDK_FLAGS=-isysroot $(SDKROOT) 56 endif 57 58 ifeq ($(USE_LLVM_TARGET_TRIPLES_FOR_CLANG),YES) 59 WK_CURRENT_ARCH=$(word 1, $(ARCHS)) 60 TARGET_TRIPLE_FLAGS=-target $(WK_CURRENT_ARCH)-$(LLVM_TARGET_TRIPLE_VENDOR)-$(LLVM_TARGET_TRIPLE_OS_VERSION)$(LLVM_TARGET_TRIPLE_SUFFIX) 61 endif 62 63 ifeq ($(shell $(CC) -std=gnu++1z -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ' WTF_PLATFORM_MAC ' | cut -d' ' -f3), 1) 64 PREPROCESSOR_DEFINES += WTF_PLATFORM_MAC 65 endif 66 67 ifeq ($(shell $(CC) -std=gnu++1z -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ' WTF_PLATFORM_IOS_FAMILY ' | cut -d' ' -f3), 1) 68 PREPROCESSOR_DEFINES += WTF_PLATFORM_IOS_FAMILY 69 endif 70 71 ifeq ($(shell $(CC) -std=gnu++1z -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ' USE_CF ' | cut -d' ' -f3), 1) 72 PREPROCESSOR_DEFINES += USE_CF 73 endif 74 75 ifeq ($(shell $(CC) -std=gnu++1z -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep HAVE_OS_DARK_MODE_SUPPORT | cut -d' ' -f3), 1) 76 PREPROCESSOR_DEFINES += HAVE_OS_DARK_MODE_SUPPORT 77 else 78 endif 79 80 ifeq ($(PLATFORM_FEATURE_DEFINES),) 81 ifeq ($(OS), Windows_NT) 82 PLATFORM_FEATURE_DEFINES = $(WEBKIT_LIBRARIES)/tools/vsprops/FeatureDefines.props 83 else 84 PLATFORM_FEATURE_DEFINES = Configurations/FeatureDefines.xcconfig 85 endif 47 86 endif 48 87 … … 244 283 $(JavaScriptCore)/inspector/protocol/ApplicationCache.json \ 245 284 $(JavaScriptCore)/inspector/protocol/Audit.json \ 285 $(JavaScriptCore)/inspector/protocol/Browser.json \ 286 $(JavaScriptCore)/inspector/protocol/CPUProfiler.json \ 246 287 $(JavaScriptCore)/inspector/protocol/CSS.json \ 247 288 $(JavaScriptCore)/inspector/protocol/Canvas.json \ … … 252 293 $(JavaScriptCore)/inspector/protocol/Database.json \ 253 294 $(JavaScriptCore)/inspector/protocol/Debugger.json \ 254 $(JavaScriptCore)/inspector/protocol/Browser.json \255 295 $(JavaScriptCore)/inspector/protocol/GenericTypes.json \ 256 296 $(JavaScriptCore)/inspector/protocol/Heap.json \ 297 $(JavaScriptCore)/inspector/protocol/IndexedDB.json \ 257 298 $(JavaScriptCore)/inspector/protocol/Inspector.json \ 258 299 $(JavaScriptCore)/inspector/protocol/LayerTree.json \ 300 $(JavaScriptCore)/inspector/protocol/Memory.json \ 259 301 $(JavaScriptCore)/inspector/protocol/Network.json \ 260 302 $(JavaScriptCore)/inspector/protocol/Page.json \ … … 263 305 $(JavaScriptCore)/inspector/protocol/ScriptProfiler.json \ 264 306 $(JavaScriptCore)/inspector/protocol/Security.json \ 307 $(JavaScriptCore)/inspector/protocol/ServiceWorker.json \ 265 308 $(JavaScriptCore)/inspector/protocol/Target.json \ 266 309 $(JavaScriptCore)/inspector/protocol/Timeline.json \ 267 310 $(JavaScriptCore)/inspector/protocol/Worker.json \ 268 311 # 269 270 ifeq ($(findstring ENABLE_INDEXED_DATABASE,$(FEATURE_DEFINES)), ENABLE_INDEXED_DATABASE)271 INSPECTOR_DOMAINS := $(INSPECTOR_DOMAINS) $(JavaScriptCore)/inspector/protocol/IndexedDB.json272 endif273 274 ifeq ($(findstring ENABLE_RESOURCE_USAGE,$(FEATURE_DEFINES)), ENABLE_RESOURCE_USAGE)275 INSPECTOR_DOMAINS := $(INSPECTOR_DOMAINS) $(JavaScriptCore)/inspector/protocol/CPUProfiler.json276 INSPECTOR_DOMAINS := $(INSPECTOR_DOMAINS) $(JavaScriptCore)/inspector/protocol/Memory.json277 endif278 279 ifeq ($(findstring ENABLE_SERVICE_WORKER,$(FEATURE_DEFINES)), ENABLE_SERVICE_WORKER)280 INSPECTOR_DOMAINS := $(INSPECTOR_DOMAINS) $(JavaScriptCore)/inspector/protocol/ServiceWorker.json281 endif282 312 283 313 INSPECTOR_GENERATOR_SCRIPTS = \ … … 295 325 $(JavaScriptCore)/inspector/scripts/codegen/generator.py \ 296 326 $(JavaScriptCore)/inspector/scripts/codegen/models.py \ 327 $(JavaScriptCore)/inspector/scripts/codegen/preprocess.pl \ 297 328 $(JavaScriptCore)/inspector/scripts/generate-inspector-protocol-bindings.py \ 298 329 $(JavaScriptCore_SCRIPTS_DIR)/generate-combined-inspector-json.py \ … … 303 334 INSPECTOR_DISPATCHER_FILES = \ 304 335 inspector/InspectorAlternateBackendDispatchers.h \ 305 inspector/InspectorBackendCommands.js \306 336 inspector/InspectorBackendDispatchers.cpp \ 307 337 inspector/InspectorBackendDispatchers.h \ … … 313 343 INSPECTOR_DISPATCHER_FILES_PATTERNS = $(subst .,%,$(INSPECTOR_DISPATCHER_FILES)) 314 344 315 all : $(INSPECTOR_DISPATCHER_FILES) 345 all : $(INSPECTOR_DISPATCHER_FILES) inspector/InspectorBackendCommands.js 316 346 317 347 # The combined JSON file depends on the actual set of domains and their file contents, so that … … 328 358 $(INSPECTOR_DISPATCHER_FILES_PATTERNS) : CombinedDomains.json $(INSPECTOR_GENERATOR_SCRIPTS) 329 359 $(PYTHON) $(JavaScriptCore)/inspector/scripts/generate-inspector-protocol-bindings.py --framework JavaScriptCore --outputDir inspector ./CombinedDomains.json 360 361 inspector/InspectorBackendCommands.js : CombinedDomains.json $(INSPECTOR_GENERATOR_SCRIPTS) $(PLATFORM_FEATURE_DEFINES) 362 $(PYTHON) $(JavaScriptCore)/inspector/scripts/generate-inspector-protocol-bindings.py --framework WebInspectorUI --outputDir inspector ./CombinedDomains.json 363 @echo Pre-processing InspectorBackendCommands... 364 $(PERL) $(JavaScriptCore)/inspector/scripts/codegen/preprocess.pl --input inspector/InspectorBackendCommands.js.in --defines "$(PREPROCESSOR_DEFINES)" --output inspector/InspectorBackendCommands.js 365 $(DELETE) inspector/InspectorBackendCommands.js.in 330 366 331 367 InjectedScriptSource.h : inspector/InjectedScriptSource.js $(JavaScriptCore_SCRIPTS_DIR)/jsmin.py $(JavaScriptCore_SCRIPTS_DIR)/xxd.pl -
trunk/Source/JavaScriptCore/Scripts/generate-derived-sources.sh
r238639 r262203 12 12 export BUILT_PRODUCTS_DIR="../.." 13 13 14 if [ ! $CC ]; then 15 export CC="`xcrun -find clang`" 16 fi 17 14 18 make --no-builtin-rules -f "JavaScriptCore/DerivedSources.make" -j `/usr/sbin/sysctl -n hw.ncpu` "${ARGS[@]}" -
trunk/Source/JavaScriptCore/inspector/protocol/CPUProfiler.json
r251227 r262203 2 2 "domain": "CPUProfiler", 3 3 "description": "CPUProfiler domain exposes cpu usage tracking.", 4 " featureGuard": "ENABLE(RESOURCE_USAGE)",4 "condition": "defined(ENABLE_RESOURCE_USAGE) && ENABLE_RESOURCE_USAGE", 5 5 "debuggableTypes": ["page", "web-page"], 6 6 "targetTypes": ["page"], -
trunk/Source/JavaScriptCore/inspector/protocol/Canvas.json
r251227 r262203 12 12 { 13 13 "id": "ProgramId", 14 "condition": "(defined(ENABLE_WEBGL) && ENABLE_WEBGL) || (defined(ENABLE_WEBGPU) && ENABLE_WEBGPU)", 14 15 "type": "string", 15 16 "description": "Unique shader program identifier." … … 23 24 { 24 25 "id": "ProgramType", 26 "condition": "(defined(ENABLE_WEBGL) && ENABLE_WEBGL) || (defined(ENABLE_WEBGPU) && ENABLE_WEBGPU)", 25 27 "type": "string", 26 28 "enum": ["compute", "render"] … … 28 30 { 29 31 "id": "ShaderType", 32 "condition": "(defined(ENABLE_WEBGL) && ENABLE_WEBGL) || (defined(ENABLE_WEBGPU) && ENABLE_WEBGPU)", 30 33 "type": "string", 31 34 "enum": ["compute", "fragment", "vertex"] … … 62 65 { 63 66 "id": "ShaderProgram", 67 "description": "Information about a WebGL/WebGL2 shader program or WebGPU shader pipeline.", 68 "condition": "(defined(ENABLE_WEBGL) && ENABLE_WEBGL) || (defined(ENABLE_WEBGPU) && ENABLE_WEBGPU)", 64 69 "type": "object", 65 "description": "Information about a WebGL/WebGL2 shader program or WebGPU shader pipeline.",66 70 "properties": [ 67 71 { "name": "programId", "$ref": "ProgramId" }, … … 148 152 "name": "requestShaderSource", 149 153 "description": "Requests the source of the shader of the given type from the program with the given id.", 154 "condition": "(defined(ENABLE_WEBGL) && ENABLE_WEBGL) || (defined(ENABLE_WEBGPU) && ENABLE_WEBGPU)", 150 155 "parameters": [ 151 156 { "name": "programId", "$ref": "ProgramId" }, … … 159 164 "name": "updateShader", 160 165 "description": "Compiles and links the shader with identifier and type with the given source code.", 166 "condition": "(defined(ENABLE_WEBGL) && ENABLE_WEBGL) || (defined(ENABLE_WEBGPU) && ENABLE_WEBGPU)", 161 167 "parameters": [ 162 168 { "name": "programId", "$ref": "ProgramId" }, … … 168 174 "name": "setShaderProgramDisabled", 169 175 "description": "Enable/disable the visibility of the given shader program.", 176 "condition": "defined(ENABLE_WEBGL) && ENABLE_WEBGL", 170 177 "parameters": [ 171 178 { "name": "programId", "$ref": "ProgramId" }, … … 176 183 "name": "setShaderProgramHighlighted", 177 184 "description": "Enable/disable highlighting of the given shader program.", 185 "condition": "defined(ENABLE_WEBGL) && ENABLE_WEBGL", 178 186 "parameters": [ 179 187 { "name": "programId", "$ref": "ProgramId" }, … … 239 247 { 240 248 "name": "programCreated", 249 "condition": "(defined(ENABLE_WEBGL) && ENABLE_WEBGL) || (defined(ENABLE_WEBGPU) && ENABLE_WEBGPU)", 241 250 "parameters": [ 242 251 { "name": "shaderProgram", "$ref": "ShaderProgram" } … … 245 254 { 246 255 "name": "programDeleted", 256 "condition": "(defined(ENABLE_WEBGL) && ENABLE_WEBGL) || (defined(ENABLE_WEBGPU) && ENABLE_WEBGPU)", 247 257 "parameters": [ 248 258 { "name": "programId", "$ref": "ProgramId" } -
trunk/Source/JavaScriptCore/inspector/protocol/DOM.json
r251306 r262203 400 400 "name": "setInspectModeEnabled", 401 401 "description": "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspect' command upon element selection.", 402 "condition": "defined(WTF_PLATFORM_IOS_FAMILY) && WTF_PLATFORM_IOS_FAMILY", 403 "parameters": [ 404 { "name": "enabled", "type": "boolean", "description": "True to enable inspection mode, false to disable it." }, 405 { "name": "highlightConfig", "$ref": "HighlightConfig", "optional": true, "description": "A descriptor for the highlight appearance of hovered-over nodes. May be omitted if <code>enabled == false</code>." } 406 ] 407 }, 408 { 409 "name": "setInspectModeEnabled", 410 "description": "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspect' command upon element selection.", 411 "condition": "!(defined(WTF_PLATFORM_IOS_FAMILY) && WTF_PLATFORM_IOS_FAMILY)", 402 412 "parameters": [ 403 413 { "name": "enabled", "type": "boolean", "description": "True to enable inspection mode, false to disable it." }, … … 689 699 "name": "powerEfficientPlaybackStateChanged", 690 700 "description": "Called when an element enters/exits a power efficient playback state.", 701 "condition": "defined(ENABLE_VIDEO) && ENABLE_VIDEO", 691 702 "parameters": [ 692 703 { "name": "nodeId", "$ref": "NodeId" }, -
trunk/Source/JavaScriptCore/inspector/protocol/IndexedDB.json
r251227 r262203 1 1 { 2 2 "domain": "IndexedDB", 3 " featureGuard": "ENABLE(INDEXED_DATABASE)",3 "condition": "defined(ENABLE_INDEXED_DATABASE) && ENABLE_INDEXED_DATABASE", 4 4 "debuggableTypes": ["page", "web-page"], 5 5 "targetTypes": ["page"], -
trunk/Source/JavaScriptCore/inspector/protocol/Inspector.json
r251227 r262203 34 34 "name": "activateExtraDomains", 35 35 "description": "Fired when the backend has alternate domains that need to be activated.", 36 "condition": "defined(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) && ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS", 36 37 "parameters": [ 37 38 { "name": "domains", "type": "array", "items": { "type": "string" }, "description": "Domain names that need activation" } -
trunk/Source/JavaScriptCore/inspector/protocol/Memory.json
r251227 r262203 2 2 "domain": "Memory", 3 3 "description": "Memory domain exposes page memory tracking.", 4 " featureGuard": "ENABLE(RESOURCE_USAGE)",4 "condition": "defined(ENABLE_RESOURCE_USAGE) && ENABLE_RESOURCE_USAGE", 5 5 "debuggableTypes": ["page", "web-page"], 6 6 "targetTypes": ["page"], -
trunk/Source/JavaScriptCore/inspector/protocol/Page.json
r261103 r262203 46 46 "id": "Appearance", 47 47 "type": "string", 48 "condition": "(defined(ENABLE_DARK_MODE_CSS) && ENABLE_DARK_MODE_CSS) || (defined(HAVE_OS_DARK_MODE_SUPPORT) && HAVE_OS_DARK_MODE_SUPPORT)", 48 49 "enum": ["Light", "Dark"], 49 50 "description": "Page appearance name." … … 230 231 "name": "setShowRulers", 231 232 "description": "Requests that backend draw rulers in the inspector overlay", 233 "condition": "!(defined(WTF_PLATFORM_IOS_FAMILY) && WTF_PLATFORM_IOS_FAMILY)", 232 234 "parameters": [ 233 235 { "name": "result", "type": "boolean", "description": "True for showing rulers" } … … 251 253 "name": "setForcedAppearance", 252 254 "description": "Forces the given appearance for the page.", 255 "condition": "(defined(ENABLE_DARK_MODE_CSS) && ENABLE_DARK_MODE_CSS) || (defined(HAVE_OS_DARK_MODE_SUPPORT) && HAVE_OS_DARK_MODE_SUPPORT)", 253 256 "parameters": [ 254 257 { "name": "appearance", "$ref": "Appearance", "description": "Appearance name to force. Empty string disables the override." } … … 282 285 "name": "archive", 283 286 "description": "Grab an archive of the page.", 287 "condition": "(defined(ENABLE_WEB_ARCHIVE) && ENABLE_WEB_ARCHIVE) && (defined(USE_CF) && USE_CF)", 284 288 "returns": [ 285 289 { "name": "data", "type": "string", "description": "Base64-encoded web archive." } … … 346 350 "name": "defaultAppearanceDidChange", 347 351 "description": "Fired when page's default appearance changes, even if there is a forced appearance.", 352 "condition": "(defined(ENABLE_DARK_MODE_CSS) && ENABLE_DARK_MODE_CSS) || (defined(HAVE_OS_DARK_MODE_SUPPORT) && HAVE_OS_DARK_MODE_SUPPORT)", 348 353 "parameters": [ 349 354 { "name": "appearance", "$ref": "Appearance", "description": "Name of the appearance that is active (not considering any forced appearance.)" } -
trunk/Source/JavaScriptCore/inspector/protocol/ServiceWorker.json
r251227 r262203 2 2 "domain": "ServiceWorker", 3 3 "description": "Actions and events related to the inspected service worker.", 4 "condition": "defined(ENABLE_SERVICE_WORKER) && ENABLE_SERVICE_WORKER", 4 5 "debuggableTypes": ["service-worker"], 5 6 "targetTypes": ["service-worker"], -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator_templates.py
r261569 r262203 109 109 private: 110 110 Alternate${domainName}BackendDispatcher* m_alternateDispatcher { nullptr }; 111 #endif """)111 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)""") 112 112 113 113 BackendDispatcherHeaderAsyncCommandDeclaration = ( … … 128 128 129 129 ${dispatchCases} 130 else 131 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'${domainName}." + method + "' was not found");130 131 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'${domainName}." + method + "' was not found"); 132 132 }""") 133 133 -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_alternate_backend_dispatcher_header.py
r236321 r262203 57 57 sections.append(self.generate_license()) 58 58 sections.append(Template(CppTemplates.AlternateDispatchersHeaderPrelude).substitute(None, **template_args)) 59 sections.append('\n '.join([_f for _f in map(self._generate_handler_declarations_for_domain, domains) if _f]))59 sections.append('\n\n'.join([_f for _f in map(self._generate_handler_declarations_for_domain, domains) if _f])) 60 60 sections.append(Template(CppTemplates.AlternateDispatchersHeaderPostlude).substitute(None, **template_args)) 61 61 return '\n\n'.join(sections) … … 88 88 } 89 89 90 return self.wrap_with_guard_for_ domain(domain, Template(CppTemplates.AlternateBackendDispatcherHeaderDomainHandlerInterfaceDeclaration).substitute(None, **handler_args))90 return self.wrap_with_guard_for_condition(domain.condition, Template(CppTemplates.AlternateBackendDispatcherHeaderDomainHandlerInterfaceDeclaration).substitute(None, **handler_args)) 91 91 92 92 def _generate_handler_declaration_for_command(self, command): … … 101 101 } 102 102 lines.append(' virtual void %(commandName)s(%(parameters)s) = 0;' % command_args) 103 return '\n'.join(lines)103 return self.wrap_with_guard_for_condition(command.condition, '\n'.join(lines)) -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_backend_dispatcher_header.py
r236321 r262203 92 92 lines.append('#if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)') 93 93 for domain in domains: 94 lines.append(self.wrap_with_guard_for_ domain(domain, 'class Alternate%sBackendDispatcher;' % domain.domain_name))94 lines.append(self.wrap_with_guard_for_condition(domain.condition, 'class Alternate%sBackendDispatcher;' % domain.domain_name)) 95 95 lines.append('#endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)') 96 96 return '\n'.join(lines) … … 114 114 } 115 115 116 return self.wrap_with_guard_for_ domain(domain, Template(CppTemplates.BackendDispatcherHeaderDomainHandlerDeclaration).substitute(None, **handler_args))116 return self.wrap_with_guard_for_condition(domain.condition, Template(CppTemplates.BackendDispatcherHeaderDomainHandlerDeclaration).substitute(None, **handler_args)) 117 117 118 118 def _generate_anonymous_enum_for_parameter(self, parameter, command): … … 162 162 } 163 163 lines.append(' virtual void %(commandName)s(%(parameters)s) = 0;' % command_args) 164 return '\n'.join(lines)164 return self.wrap_with_guard_for_condition(command.condition, '\n'.join(lines)) 165 165 166 166 def _generate_async_handler_declaration_for_command(self, command): … … 193 193 } 194 194 195 return Template(CppTemplates.BackendDispatcherHeaderAsyncCommandDeclaration).substitute(None, **command_args)195 return self.wrap_with_guard_for_condition(command.condition, Template(CppTemplates.BackendDispatcherHeaderAsyncCommandDeclaration).substitute(None, **command_args)) 196 196 197 197 def _generate_dispatcher_declarations_for_domain(self, domain): … … 221 221 } 222 222 223 return self.wrap_with_guard_for_ domain(domain, Template(CppTemplates.BackendDispatcherHeaderDomainDispatcherDeclaration).substitute(None, **handler_args))223 return self.wrap_with_guard_for_condition(domain.condition, Template(CppTemplates.BackendDispatcherHeaderDomainDispatcherDeclaration).substitute(None, **handler_args)) 224 224 225 225 def _generate_dispatcher_declaration_for_command(self, command): 226 return " void %s(long requestId, RefPtr<JSON::Object>&& parameters);" % command.command_name226 return self.wrap_with_guard_for_condition(command.condition, " void %s(long requestId, RefPtr<JSON::Object>&& parameters);" % command.command_name) -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_backend_dispatcher_implementation.py
r239477 r262203 61 61 secondary_includes.append('#if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)') 62 62 secondary_includes.append('#include "%sAlternateBackendDispatchers.h"' % self.protocol_name()) 63 secondary_includes.append('#endif ')63 secondary_includes.append('#endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)') 64 64 65 65 header_args = { … … 94 94 } 95 95 destructor = '%(domainName)sBackendDispatcherHandler::~%(domainName)sBackendDispatcherHandler() { }' % destructor_args 96 return self.wrap_with_guard_for_ domain(domain, destructor)96 return self.wrap_with_guard_for_condition(domain.condition, destructor) 97 97 98 98 def _generate_dispatcher_implementations_for_domain(self, domain): … … 116 116 implementations.append(self._generate_dispatcher_implementation_for_command(command, domain)) 117 117 118 return self.wrap_with_guard_for_ domain(domain, '\n\n'.join(implementations))118 return self.wrap_with_guard_for_condition(domain.condition, '\n\n'.join(implementations)) 119 119 120 120 def _generate_small_dispatcher_switch_implementation_for_domain(self, domain): … … 122 122 123 123 cases = [] 124 cases.append(' if (method == "%s")' % commands[0].command_name) 125 cases.append(' %s(requestId, WTFMove(parameters));' % commands[0].command_name) 124 125 first_command_string = "\n".join([ 126 ' if (method == "%s") {' % commands[0].command_name, 127 ' %s(requestId, WTFMove(parameters));' % commands[0].command_name, 128 ' return;', 129 ' }', 130 ]) 131 cases.append(self.wrap_with_guard_for_condition(commands[0].condition, first_command_string)) 132 126 133 for command in commands[1:]: 127 cases.append(' else if (method == "%s")' % command.command_name) 128 cases.append(' %s(requestId, WTFMove(parameters));' % command.command_name) 134 additional_command_string = "\n".join([ 135 ' if (method == "%s") {' % command.command_name, 136 ' %s(requestId, WTFMove(parameters));' % command.command_name, 137 ' return;', 138 ' }', 139 ]) 140 cases.append(self.wrap_with_guard_for_condition(command.condition, additional_command_string)) 129 141 130 142 switch_args = { … … 144 156 'commandName': command.command_name 145 157 } 146 cases.append( ' { "%(commandName)s", &%(domainName)sBackendDispatcher::%(commandName)s },' % args)158 cases.append(self.wrap_with_guard_for_condition(command.condition, ' { "%(commandName)s", &%(domainName)sBackendDispatcher::%(commandName)s },' % args)) 147 159 148 160 switch_args = { … … 186 198 'outParameterAssignments': "\n".join(out_parameter_assignments) 187 199 } 188 return Template(CppTemplates.BackendDispatcherImplementationAsyncCommand).substitute(None, **async_args)200 return self.wrap_with_guard_for_condition(command.condition, Template(CppTemplates.BackendDispatcherImplementationAsyncCommand).substitute(None, **async_args)) 189 201 190 202 def _generate_dispatcher_implementation_for_command(self, command, domain): … … 305 317 lines.append(' return;') 306 318 lines.append(' }') 307 lines.append('#endif ')319 lines.append('#endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)') 308 320 lines.append('') 309 321 … … 335 347 336 348 lines.append('}') 337 return "\n".join(lines)349 return self.wrap_with_guard_for_condition(command.condition, "\n".join(lines)) -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_frontend_dispatcher_header.py
r236321 r262203 112 112 } 113 113 114 return self.wrap_with_guard_for_ domain(domain, Template(CppTemplates.FrontendDispatcherDomainDispatcherDeclaration).substitute(None, **handler_args))114 return self.wrap_with_guard_for_condition(domain.condition, Template(CppTemplates.FrontendDispatcherDomainDispatcherDeclaration).substitute(None, **handler_args)) 115 115 116 116 def _generate_dispatcher_declaration_for_event(self, event, domain, used_enum_names): … … 124 124 125 125 lines.append(" void %s(%s);" % (event.event_name, ", ".join(formal_parameters))) 126 return "\n".join(lines)126 return self.wrap_with_guard_for_condition(event.condition, "\n".join(lines)) -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_frontend_dispatcher_implementation.py
r236321 r262203 83 83 implementations.append(self._generate_dispatcher_implementation_for_event(event, domain)) 84 84 85 return self.wrap_with_guard_for_ domain(domain, '\n\n'.join(implementations))85 return self.wrap_with_guard_for_condition(domain.condition, '\n\n'.join(implementations)) 86 86 87 87 def _generate_dispatcher_implementation_for_event(self, event, domain): … … 132 132 lines.append(' m_frontendRouter.sendEvent(jsonMessage->toJSONString());') 133 133 lines.append('}') 134 return "\n".join(lines)134 return self.wrap_with_guard_for_condition(event.condition, "\n".join(lines)) -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_protocol_types_header.py
r250005 r262203 106 106 107 107 domain_lines.append('} // %s' % domain.domain_name) 108 sections.append(self.wrap_with_guard_for_ domain(domain, '\n'.join(domain_lines)))108 sections.append(self.wrap_with_guard_for_condition(domain.condition, '\n'.join(domain_lines))) 109 109 110 110 if len(sections) == 0: … … 133 133 134 134 # Forward-declare all classes so the type builders won't break if rearranged. 135 domain_lines.extend( 'class %s;' % object_type.raw_name() for object_type in object_types)136 domain_lines.extend( 'enum class %s;' % enum_type.raw_name() for enum_type in enum_types)135 domain_lines.extend(self.wrap_with_guard_for_condition(object_type.declaration().condition, 'class %s;' % object_type.raw_name()) for object_type in object_types) 136 domain_lines.extend(self.wrap_with_guard_for_condition(enum_type.declaration().condition, 'enum class %s;' % enum_type.raw_name()) for enum_type in enum_types) 137 137 domain_lines.append('} // %s' % domain.domain_name) 138 sections.append(self.wrap_with_guard_for_ domain(domain, '\n'.join(domain_lines)))138 sections.append(self.wrap_with_guard_for_condition(domain.condition, '\n'.join(domain_lines))) 139 139 140 140 if len(sections) == 0: … … 171 171 typedef_lines.append('/* %s */' % declaration.description) 172 172 typedef_lines.append('typedef %s %s;' % (primitive_name, declaration.type_name)) 173 sections.append( '\n'.join(typedef_lines))173 sections.append(self.wrap_with_guard_for_condition(declaration.condition, '\n'.join(typedef_lines))) 174 174 175 175 for declaration in array_declarations: … … 179 179 typedef_lines.append('/* %s */' % declaration.description) 180 180 typedef_lines.append('typedef JSON::ArrayOf<%s> %s;' % (element_type, declaration.type_name)) 181 sections.append( '\n'.join(typedef_lines))181 sections.append(self.wrap_with_guard_for_condition(declaration.condition, '\n'.join(typedef_lines))) 182 182 183 183 lines = [] … … 185 185 lines.append('\n'.join(sections)) 186 186 lines.append('} // %s' % domain.domain_name) 187 return self.wrap_with_guard_for_ domain(domain, '\n'.join(lines))187 return self.wrap_with_guard_for_condition(domain.condition, '\n'.join(lines)) 188 188 189 189 def _generate_enum_constant_value_conversion_methods(self): … … 226 226 lines = [] 227 227 lines.append('namespace %s {' % domain.domain_name) 228 lines.append('\n'.join(sections)) 228 lines.append('') 229 lines.append('\n\n'.join(sections)) 230 lines.append('') 229 231 lines.append('} // %s' % domain.domain_name) 230 return self.wrap_with_guard_for_ domain(domain, '\n'.join(lines))232 return self.wrap_with_guard_for_condition(domain.condition, '\n'.join(lines)) 231 233 232 234 def _generate_class_for_object_declaration(self, type_declaration, domain): … … 279 281 280 282 lines.append('};') 281 lines.append('') 282 return '\n'.join(lines) 283 return self.wrap_with_guard_for_condition(type_declaration.condition, '\n'.join(lines)) 283 284 284 285 def _generate_struct_for_enum_declaration(self, enum_declaration): 285 286 lines = [] 286 lines.append('/* %s */' % enum_declaration.description) 287 if len(enum_declaration.description): 288 lines.append('/* %s */' % enum_declaration.description) 287 289 lines.extend(self._generate_struct_for_enum_type(enum_declaration.type_name, enum_declaration.type)) 288 return '\n'.join(lines)290 return self.wrap_with_guard_for_condition(enum_declaration.condition, '\n'.join(lines)) 289 291 290 292 def _generate_struct_for_anonymous_enum_member(self, enum_member): … … 382 384 for type_member in type_declaration.type_members: 383 385 if isinstance(type_member.type, EnumType): 384 type_arguments.append(( CppGenerator.cpp_protocol_type_for_type_member(type_member, type_declaration), False))386 type_arguments.append((self.wrap_with_guard_for_condition(type_declaration.condition, CppGenerator.cpp_protocol_type_for_type_member(type_member, type_declaration)), False)) 385 387 386 388 if isinstance(type_declaration.type, ObjectType): 387 type_arguments.append(( CppGenerator.cpp_protocol_type_for_type(type_declaration.type), Generator.type_needs_runtime_casts(type_declaration.type)))389 type_arguments.append((self.wrap_with_guard_for_condition(type_declaration.condition, CppGenerator.cpp_protocol_type_for_type(type_declaration.type)), Generator.type_needs_runtime_casts(type_declaration.type))) 388 390 389 391 struct_keywords = ['struct'] … … 438 440 for enum_type in enum_types: 439 441 cpp_protocol_type = CppGenerator.cpp_protocol_type_for_type(enum_type) 440 domain_lines.append('template<>') 441 domain_lines.append('%s parseEnumValueFromString<%s>(const String&);' % (return_type_with_export_macro(cpp_protocol_type), cpp_protocol_type)) 442 domain_lines.append(self.wrap_with_guard_for_condition(enum_type.declaration().condition, 'template<>\n%s parseEnumValueFromString<%s>(const String&);' % (return_type_with_export_macro(cpp_protocol_type), cpp_protocol_type))) 442 443 443 444 for object_type in object_types: 445 object_lines = [] 444 446 for enum_member in filter(type_member_is_anonymous_enum_type, object_type.members): 445 447 cpp_protocol_type = CppGenerator.cpp_protocol_type_for_type_member(enum_member, object_type.declaration()) 446 domain_lines.append('template<>') 447 domain_lines.append('%s parseEnumValueFromString<%s>(const String&);' % (return_type_with_export_macro(cpp_protocol_type), cpp_protocol_type)) 448 object_lines.append('template<>\n%s parseEnumValueFromString<%s>(const String&);' % (return_type_with_export_macro(cpp_protocol_type), cpp_protocol_type)) 449 if len(object_lines): 450 domain_lines.append(self.wrap_with_guard_for_condition(object_type.declaration().condition, '\n'.join(object_lines))) 448 451 449 452 if len(domain_lines) == 1: 450 453 continue # No real declarations to emit, just the domain comment. Skip. 451 454 452 sections.append(self.wrap_with_guard_for_ domain(domain, '\n'.join(domain_lines)))455 sections.append(self.wrap_with_guard_for_condition(domain.condition, '\n'.join(domain_lines))) 453 456 454 457 if len(sections) == 1: … … 475 478 lines.append('template<typename T> struct DefaultHash;') 476 479 477 lines.append('') 478 lines.append("// Hash declarations in the '%s' Domain" % domain.domain_name) 480 domain_lines = [] 481 482 domain_lines.append('') 483 domain_lines.append("// Hash declarations in the '%s' Domain" % domain.domain_name) 479 484 480 485 for enum_type in enum_types: 481 lines.append('template<>') 482 lines.append('struct DefaultHash<Inspector::Protocol::%s::%s> {' % (domain.domain_name, enum_type.raw_name())) 483 lines.append(' typedef IntHash<Inspector::Protocol::%s::%s> Hash;' % (domain.domain_name, enum_type.raw_name())) 484 lines.append('};') 486 enum_lines = [] 487 enum_lines.append('template<>') 488 enum_lines.append('struct DefaultHash<Inspector::Protocol::%s::%s> {' % (domain.domain_name, enum_type.raw_name())) 489 enum_lines.append(' typedef IntHash<Inspector::Protocol::%s::%s> Hash;' % (domain.domain_name, enum_type.raw_name())) 490 enum_lines.append('};') 491 domain_lines.append(self.wrap_with_guard_for_condition(enum_type.declaration().condition, '\n'.join(enum_lines))) 492 493 lines.append(self.wrap_with_guard_for_condition(domain.condition, '\n'.join(domain_lines))) 485 494 486 495 if len(lines) == 0: -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_protocol_types_implementation.py
r254087 r262203 129 129 ' return WTF::nullopt;', 130 130 '}', 131 '',132 131 ]) 133 return body_lines132 return '\n'.join(body_lines) 134 133 135 134 type_declarations = self.type_declarations_for_domain(domain) … … 147 146 for enum_type in enum_types: 148 147 cpp_protocol_type = CppGenerator.cpp_protocol_type_for_type(enum_type) 149 lines.extend(generate_conversion_method_body(enum_type, cpp_protocol_type)) 148 lines.append('') 149 lines.append(self.wrap_with_guard_for_condition(enum_type.declaration().condition, generate_conversion_method_body(enum_type, cpp_protocol_type))) 150 150 151 151 for object_type in object_types: 152 object_lines = [] 152 153 for enum_member in filter(type_member_is_anonymous_enum_type, object_type.members): 153 154 cpp_protocol_type = CppGenerator.cpp_protocol_type_for_type_member(enum_member, object_type.declaration()) 154 lines.extend(generate_conversion_method_body(enum_member.type, cpp_protocol_type)) 155 object_lines.append(generate_conversion_method_body(enum_member.type, cpp_protocol_type)) 156 if len(object_lines): 157 if len(lines): 158 lines.append('') 159 lines.append(self.wrap_with_guard_for_condition(object_type.declaration().condition, '\n'.join(object_lines))) 155 160 156 161 if len(lines) == 1: 157 162 return '' # No real declarations to emit, just the domain comment. 158 163 159 return self.wrap_with_guard_for_ domain(domain, '\n'.join(lines))164 return self.wrap_with_guard_for_condition(domain.condition, '\n'.join(lines)) 160 165 161 166 def _generate_enum_mapping_and_conversion_methods(self, domains): … … 174 179 lines = [] 175 180 for domain in self.domains_to_generate(): 181 domain_lines = [] 176 182 type_declarations = self.type_declarations_for_domain(domain) 177 183 for type_declaration in [decl for decl in type_declarations if Generator.type_has_open_fields(decl.type)]: … … 179 185 for type_member in sorted(open_members, key=lambda member: member.member_name): 180 186 field_name = '::'.join(['Inspector', 'Protocol', domain.domain_name, ucfirst(type_declaration.type_name), ucfirst(type_member.member_name)]) 181 lines.append('const char* %s = "%s";' % (field_name, type_member.member_name)) 187 domain_lines.append('const char* %s = "%s";' % (field_name, type_member.member_name)) 188 if len(domain_lines): 189 lines.append(self.wrap_with_guard_for_condition(domain.condition, '\n'.join(domain_lines))) 182 190 183 191 return '\n'.join(lines) … … 189 197 190 198 for type_declaration in declarations_to_generate: 199 type_lines = [] 191 200 for type_member in type_declaration.type_members: 192 201 if isinstance(type_member.type, EnumType): 193 sections.append(self._generate_assertion_for_enum(type_member, type_declaration))202 type_lines.append(self._generate_assertion_for_enum(type_member, type_declaration)) 194 203 195 204 if isinstance(type_declaration.type, ObjectType): 196 sections.append(self._generate_assertion_for_object_declaration(type_declaration))205 type_lines.append(self._generate_assertion_for_object_declaration(type_declaration)) 197 206 if Generator.type_needs_runtime_casts(type_declaration.type): 198 sections.append(self._generate_runtime_cast_for_object_declaration(type_declaration)) 199 200 return '\n\n'.join(sections) 207 type_lines.append(self._generate_runtime_cast_for_object_declaration(type_declaration)) 208 if len(type_lines): 209 sections.append(self.wrap_with_guard_for_condition(type_declaration.condition, '\n\n'.join(type_lines))) 210 211 if not len(sections): 212 return '' 213 214 return self.wrap_with_guard_for_condition(domain.condition, '\n\n'.join(sections)) 201 215 202 216 def _generate_runtime_cast_for_object_declaration(self, object_declaration): -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_js_backend_commands.py
r251227 r262203 48 48 49 49 def output_filename(self): 50 return "InspectorBackendCommands.js "50 return "InspectorBackendCommands.js.in" 51 51 52 52 def should_generate_domain(self, domain): … … 97 97 'enumMap': ", ".join(['%s: "%s"' % (Generator.stylized_name_for_enum_value(enum_value), enum_value) for enum_value in declaration.type.enum_values()]) 98 98 } 99 lines.append( 'InspectorBackend.registerEnum("%(domainName)s.%(enumName)s", {%(enumMap)s});' % enum_args)99 lines.append(self.wrap_with_guard_for_condition(declaration.condition, 'InspectorBackend.registerEnum("%(domainName)s.%(enumName)s", {%(enumMap)s});' % enum_args)) 100 100 101 101 def is_anonymous_enum_member(type_member): … … 129 129 'returnParams': ", ".join(['"%s"' % parameter.parameter_name for parameter in command.return_parameters]), 130 130 } 131 lines.append( 'InspectorBackend.registerCommand("%(domainName)s.%(commandName)s", %(targetTypes)s, [%(callParams)s], [%(returnParams)s]);' % command_args)131 lines.append(self.wrap_with_guard_for_condition(command.condition, 'InspectorBackend.registerCommand("%(domainName)s.%(commandName)s", %(targetTypes)s, [%(callParams)s], [%(returnParams)s]);' % command_args)) 132 132 133 133 for event in events: 134 event_lines = [] 135 134 136 for param in filter(is_anonymous_enum_param, event.event_parameters): 135 137 enum_args = { … … 138 140 'enumMap': ", ".join(['%s: "%s"' % (Generator.stylized_name_for_enum_value(enum_value), enum_value) for enum_value in param.type.enum_values()]), 139 141 } 140 lines.append('InspectorBackend.registerEnum("%(domainName)s.%(enumName)s", {%(enumMap)s});' % enum_args)142 event_lines.append('InspectorBackend.registerEnum("%(domainName)s.%(enumName)s", {%(enumMap)s});' % enum_args) 141 143 142 144 event_args = { … … 146 148 'params': ", ".join(['"%s"' % parameter.parameter_name for parameter in event.event_parameters]), 147 149 } 148 lines.append('InspectorBackend.registerEvent("%(domainName)s.%(eventName)s", %(targetTypes)s, [%(params)s]);' % event_args) 150 event_lines.append('InspectorBackend.registerEvent("%(domainName)s.%(eventName)s", %(targetTypes)s, [%(params)s]);' % event_args) 151 152 lines.append(self.wrap_with_guard_for_condition(event.condition, '\n'.join(event_lines))) 149 153 150 154 has_async_commands = any([command.is_async for command in commands]) … … 161 165 lines.append('InspectorBackend.activateDomain("%(domainName)s", %(debuggableTypes)s);' % activate_args) 162 166 163 return "\n".join(lines)167 return self.wrap_with_guard_for_condition(domain.condition, "\n".join(lines)) -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_backend_dispatcher_header.py
r261569 r262203 100 100 } 101 101 102 return self.wrap_with_guard_for_ domain(domain, Template(ObjCTemplates.BackendDispatcherHeaderDomainHandlerObjCDeclaration).substitute(None, **handler_args))102 return self.wrap_with_guard_for_condition(domain.condition, Template(ObjCTemplates.BackendDispatcherHeaderDomainHandlerObjCDeclaration).substitute(None, **handler_args)) 103 103 104 104 def _generate_objc_handler_declaration_for_command(self, command): … … 113 113 } 114 114 lines.append(' void %(commandName)s(%(parameters)s) final;' % command_args) 115 return '\n'.join(lines)115 return self.wrap_with_guard_for_condition(command.condition, '\n'.join(lines)) -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_backend_dispatcher_implementation.py
r251395 r262203 87 87 command_declarations.append(self._generate_handler_implementation_for_command(domain, command)) 88 88 89 return '\n'.join(command_declarations)89 return self.wrap_with_guard_for_condition(domain.condition, '\n\n'.join(command_declarations)) 90 90 91 91 def _generate_handler_implementation_for_command(self, domain, command): … … 105 105 } 106 106 107 return self.wrap_with_guard_for_ domain(domain, Template(ObjCTemplates.BackendDispatcherHeaderDomainHandlerImplementation).substitute(None, **command_args))107 return self.wrap_with_guard_for_condition(command.condition, Template(ObjCTemplates.BackendDispatcherHeaderDomainHandlerImplementation).substitute(None, **command_args)) 108 108 109 109 def _generate_responds_to_selector_for_command(self, domain, command): -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_header.py
r251395 r262203 32 32 try: 33 33 from .generator import Generator, ucfirst 34 from .models import ObjectType, EnumType , Platforms34 from .models import ObjectType, EnumType 35 35 from .objc_generator import ObjCGenerator, join_type_and_name 36 36 from .objc_generator_templates import ObjCGeneratorTemplates as ObjCTemplates 37 37 except ValueError: 38 38 from generator import Generator, ucfirst 39 from models import ObjectType, EnumType , Platforms39 from models import ObjectType, EnumType 40 40 from objc_generator import ObjCGenerator, join_type_and_name 41 41 from objc_generator_templates import ObjCGeneratorTemplates as ObjCTemplates … … 45 45 46 46 def add_newline(lines): 47 if lines andlines[-1] == '':47 if not len(lines) or lines[-1] == '': 48 48 return 49 49 lines.append('') … … 88 88 sections.append(Template(ObjCTemplates.HeaderPrelude).substitute(None, **headerPrelude_args)) 89 89 sections.append('\n'.join([_f for _f in map(self._generate_forward_declarations, type_domains) if _f])) 90 sections.append(self._generate_enum_for_platforms())91 90 sections.append('\n'.join([_f for _f in map(self._generate_enums, type_domains) if _f])) 92 91 sections.append('\n'.join([_f for _f in map(self._generate_types, type_domains) if _f])) … … 104 103 if (isinstance(declaration.type, ObjectType)): 105 104 objc_name = self.objc_name_for_type(declaration.type) 106 lines.append( '@class %s;' % objc_name)107 return '\n'.join(lines)105 lines.append(self.wrap_with_guard_for_condition(declaration.condition, '@class %s;' % objc_name)) 106 return self.wrap_with_guard_for_condition(domain.condition, '\n'.join(lines)) 108 107 109 108 def _generate_enums(self, domain): … … 112 111 # Type enums and member enums. 113 112 for declaration in self.type_declarations_for_domain(domain): 113 declaration_lines = [] 114 114 if isinstance(declaration.type, EnumType): 115 add_newline( lines)116 lines.append(self._generate_anonymous_enum_for_declaration(domain, declaration))115 add_newline(declaration_lines) 116 declaration_lines.append(self._generate_anonymous_enum_for_declaration(domain, declaration)) 117 117 else: 118 118 for member in declaration.type_members: 119 119 if isinstance(member.type, EnumType) and member.type.is_anonymous: 120 add_newline(lines) 121 lines.append(self._generate_anonymous_enum_for_member(domain, declaration, member)) 120 add_newline(declaration_lines) 121 declaration_lines.append(self._generate_anonymous_enum_for_member(domain, declaration, member)) 122 if len(declaration_lines): 123 lines.append(self.wrap_with_guard_for_condition(declaration.condition, '\n\n'.join(declaration_lines))) 122 124 123 125 # Anonymous command enums. 124 126 for command in self.commands_for_domain(domain): 127 command_lines = [] 125 128 for parameter in command.call_parameters: 126 129 if isinstance(parameter.type, EnumType) and parameter.type.is_anonymous: 127 add_newline( lines)128 lines.append(self._generate_anonymous_enum_for_parameter(domain, command.command_name, parameter))130 add_newline(command_lines) 131 command_lines.append(self._generate_anonymous_enum_for_parameter(domain, command.command_name, parameter)) 129 132 for parameter in command.return_parameters: 130 133 if isinstance(parameter.type, EnumType) and parameter.type.is_anonymous: 131 add_newline(lines) 132 lines.append(self._generate_anonymous_enum_for_parameter(domain, command.command_name, parameter)) 134 add_newline(command_lines) 135 command_lines.append(self._generate_anonymous_enum_for_parameter(domain, command.command_name, parameter)) 136 if len(command_lines): 137 lines.append(self.wrap_with_guard_for_condition(command.condition, '\n\n'.join(command_lines))) 133 138 134 139 # Anonymous event enums. 135 140 for event in self.events_for_domain(domain): 141 event_lines = [] 136 142 for parameter in event.event_parameters: 137 143 if isinstance(parameter.type, EnumType) and parameter.type.is_anonymous: 138 add_newline(lines) 139 lines.append(self._generate_anonymous_enum_for_parameter(domain, event.event_name, parameter)) 140 141 return '\n'.join(lines) 144 add_newline(event_lines) 145 event_lines.append(self._generate_anonymous_enum_for_parameter(domain, event.event_name, parameter)) 146 if len(event_lines): 147 lines.append(self.wrap_with_guard_for_condition(event.condition, '\n\n'.join(event_lines))) 148 149 return self.wrap_with_guard_for_condition(domain.condition, '\n\n'.join(lines)) 142 150 143 151 def _generate_types(self, domain): … … 148 156 add_newline(lines) 149 157 lines.append(self._generate_type_interface(domain, declaration)) 150 return '\n'.join(lines) 151 152 def _generate_enum_for_platforms(self): 153 objc_enum_name = '%sPlatform' % self.objc_prefix() 154 enum_values = [platform.name for platform in Platforms] 155 return self._generate_enum(objc_enum_name, enum_values) 158 return self.wrap_with_guard_for_condition(domain.condition, '\n'.join(lines)) 156 159 157 160 def _generate_anonymous_enum_for_declaration(self, domain, declaration): … … 195 198 lines.append('/* optional */ ' + self._generate_member_property(declaration, member)) 196 199 lines.append('@end') 197 return '\n'.join(lines)200 return self.wrap_with_guard_for_condition(declaration.condition, '\n'.join(lines)) 198 201 199 202 def _generate_init_method_for_required_members(self, domain, declaration, required_members): … … 220 223 lines.append(self._generate_single_command_protocol(domain, command)) 221 224 lines.append('@end') 222 return '\n'.join(lines)225 return self.wrap_with_guard_for_condition(domain.condition, '\n'.join(lines)) 223 226 224 227 def _generate_single_command_protocol(self, domain, command): … … 229 232 param_name = parameter.parameter_name 230 233 pairs.append('%s:(%s)%s' % (param_name, self.objc_type_for_param(domain, command.command_name, parameter), param_name)) 231 return '- (void)%sWith%s;' % (command.command_name, ' '.join(pairs))234 return self.wrap_with_guard_for_condition(command.condition, '- (void)%sWith%s;' % (command.command_name, ' '.join(pairs))) 232 235 233 236 def _callback_block_for_command(self, domain, command): … … 250 253 lines.append(self._generate_single_event_interface(domain, event)) 251 254 lines.append('@end') 252 return '\n'.join(lines)255 return self.wrap_with_guard_for_condition(domain.condition, '\n'.join(lines)) 253 256 254 257 def _generate_single_event_interface(self, domain, event): … … 260 263 pairs.append('%s:(%s)%s' % (param_name, self.objc_type_for_param(domain, event.event_name, parameter), param_name)) 261 264 pairs[0] = ucfirst(pairs[0]) 262 return '- (void)%sWith%s;' % (event.event_name, ' '.join(pairs))265 return self.wrap_with_guard_for_condition(event.condition, '- (void)%sWith%s;' % (event.event_name, ' '.join(pairs))) -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_header.py
r239427 r262203 32 32 try: 33 33 from .generator import Generator 34 from .models import EnumType, Frameworks , Platforms34 from .models import EnumType, Frameworks 35 35 from .objc_generator import ObjCGenerator 36 36 from .objc_generator_templates import ObjCGeneratorTemplates as ObjCTemplates 37 37 except ValueError: 38 38 from generator import Generator 39 from models import EnumType, Frameworks , Platforms39 from models import EnumType, Frameworks 40 40 from objc_generator import ObjCGenerator 41 41 from objc_generator_templates import ObjCGeneratorTemplates as ObjCTemplates … … 45 45 46 46 def add_newline(lines): 47 if lines andlines[-1] == '':47 if not len(lines) or lines[-1] == '': 48 48 return 49 49 lines.append('') … … 76 76 sections.append(Template(ObjCTemplates.TypeConversionsHeaderPrelude).substitute(None, **header_args)) 77 77 sections.append(Template(ObjCTemplates.TypeConversionsHeaderStandard).substitute(None)) 78 sections.append(self._generate_enum_conversion_for_platforms())79 78 sections.extend(list(map(self._generate_enum_conversion_functions, domains))) 80 79 sections.append(Template(ObjCTemplates.TypeConversionsHeaderPostlude).substitute(None, **header_args)) … … 86 85 # Type enums and member enums. 87 86 for declaration in self.type_declarations_for_domain(domain): 87 declaration_lines = [] 88 88 if isinstance(declaration.type, EnumType): 89 add_newline( lines)90 lines.append(self._generate_anonymous_enum_conversion_for_declaration(domain, declaration))89 add_newline(declaration_lines) 90 declaration_lines.append(self._generate_anonymous_enum_conversion_for_declaration(domain, declaration)) 91 91 else: 92 92 for member in declaration.type_members: 93 93 if (isinstance(member.type, EnumType) and member.type.is_anonymous): 94 add_newline(lines) 95 lines.append(self._generate_anonymous_enum_conversion_for_member(domain, declaration, member)) 94 add_newline(declaration_lines) 95 declaration_lines.append(self._generate_anonymous_enum_conversion_for_member(domain, declaration, member)) 96 if len(declaration_lines): 97 lines.append(self.wrap_with_guard_for_condition(declaration.condition, '\n\n'.join(declaration_lines))) 96 98 97 99 # Anonymous command enums. 98 100 for command in self.commands_for_domain(domain): 101 command_lines = [] 99 102 for parameter in command.call_parameters: 100 103 if (isinstance(parameter.type, EnumType) and parameter.type.is_anonymous): 101 add_newline( lines)102 lines.append(self._generate_anonymous_enum_conversion_for_parameter(domain, command.command_name, parameter))104 add_newline(command_lines) 105 command_lines.append(self._generate_anonymous_enum_conversion_for_parameter(domain, command.command_name, parameter)) 103 106 for parameter in command.return_parameters: 104 107 if (isinstance(parameter.type, EnumType) and parameter.type.is_anonymous): 105 add_newline(lines) 106 lines.append(self._generate_anonymous_enum_conversion_for_parameter(domain, command.command_name, parameter)) 108 add_newline(command_lines) 109 command_lines.append(self._generate_anonymous_enum_conversion_for_parameter(domain, command.command_name, parameter)) 110 if len(command_lines): 111 lines.append(self.wrap_with_guard_for_condition(command.condition, '\n\n'.join(command_lines))) 107 112 108 113 # Anonymous event enums. 109 114 for event in self.events_for_domain(domain): 115 event_lines = [] 110 116 for parameter in event.event_parameters: 111 117 if (isinstance(parameter.type, EnumType) and parameter.type.is_anonymous): 112 add_newline(lines) 113 lines.append(self._generate_anonymous_enum_conversion_for_parameter(domain, event.event_name, parameter)) 118 add_newline(event_lines) 119 event_lines.append(self._generate_anonymous_enum_conversion_for_parameter(domain, event.event_name, parameter)) 120 if len(event_lines): 121 lines.append(self.wrap_with_guard_for_condition(event.condition, '\n\n'.join(event_lines))) 114 122 115 return '\n'.join(lines) 116 117 def _generate_enum_conversion_for_platforms(self): 118 objc_enum_name = '%sPlatform' % self.objc_prefix() 119 enum_values = [platform.name for platform in Platforms] 120 lines = [] 121 lines.append(self._generate_enum_objc_to_protocol_string(objc_enum_name, enum_values)) 122 lines.append(self._generate_enum_from_protocol_string(objc_enum_name, enum_values)) 123 return '\n\n'.join(lines) 123 return self.wrap_with_guard_for_condition(domain.condition, '\n\n'.join(lines)) 124 124 125 125 def _generate_anonymous_enum_conversion_for_declaration(self, domain, declaration): -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py
r239427 r262203 44 44 45 45 def add_newline(lines): 46 if lines andlines[-1] == '':46 if not len(lines) or lines[-1] == '': 47 47 return 48 48 lines.append('') … … 84 84 lines = [] 85 85 for domain in domains: 86 lines.append('@interface %sTypeConversions (%sDomain)' % (self.protocol_name(), domain.domain_name)) 87 lines.append('') 86 domain_lines = [] 87 domain_lines.append('@interface %sTypeConversions (%sDomain)' % (self.protocol_name(), domain.domain_name)) 88 add_newline(domain_lines) 88 89 89 90 for declaration in self.type_declarations_for_domain(domain): 90 lines.append(self._generate_type_factory_method_declaration(domain, declaration))91 domain_lines.append(self._generate_type_factory_method_declaration(domain, declaration)) 91 92 92 add_newline( lines)93 lines.append('@end')94 93 add_newline(domain_lines) 94 domain_lines.append('@end') 95 lines.append(self.wrap_with_guard_for_condition(domain.condition, '\n'.join(domain_lines))) 95 96 return '\n'.join(lines) 96 97 … … 101 102 if isinstance(resolved_type, (ObjectType, ArrayType, PrimitiveType)): 102 103 objc_type = self.objc_class_for_type(resolved_type) 103 return '+ (void)_parse%s:(%s **)outValue fromPayload:(id)payload;' % (declaration.type.raw_name(), objc_type)104 return self.wrap_with_guard_for_condition(declaration.condition, '+ (void)_parse%s:(%s **)outValue fromPayload:(id)payload;' % (declaration.type.raw_name(), objc_type)) 104 105 if isinstance(resolved_type, EnumType): 105 return '+ (void)_parse%s:(NSNumber **)outValue fromPayload:(id)payload;' % declaration.type.raw_name()106 return self.wrap_with_guard_for_condition(declaration.condition, '+ (void)_parse%s:(NSNumber **)outValue fromPayload:(id)payload;' % declaration.type.raw_name()) 106 107 107 108 def _generate_type_factory_category_implementation(self, domains): 108 109 lines = [] 109 110 for domain in domains: 110 lines.append('@implementation %sTypeConversions (%sDomain)' % (self.protocol_name(), domain.domain_name)) 111 lines.append('') 111 domain_lines = [] 112 domain_lines.append('@implementation %sTypeConversions (%sDomain)' % (self.protocol_name(), domain.domain_name)) 113 add_newline(domain_lines) 112 114 113 115 for declaration in self.type_declarations_for_domain(domain): 114 lines.append(self._generate_type_factory_method_implementation(domain, declaration)) 115 add_newline(lines) 116 lines.append('@end') 116 domain_lines.append(self._generate_type_factory_method_implementation(domain, declaration)) 117 add_newline(domain_lines) 118 119 domain_lines.append('@end') 120 lines.append(self.wrap_with_guard_for_condition(domain.condition, '\n'.join(domain_lines))) 117 121 return '\n'.join(lines) 118 122 … … 142 146 lines.append(' *outValue = [[%s alloc] initWithPayload:payload];' % (objc_class)) 143 147 lines.append('}') 144 return '\n'.join(lines)148 return self.wrap_with_guard_for_condition(declaration.condition, '\n'.join(lines)) -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_types_implementation.py
r239427 r262203 45 45 46 46 def add_newline(lines): 47 if lines andlines[-1] == '':47 if not len(lines) or lines[-1] == '': 48 48 return 49 49 lines.append('') … … 92 92 add_newline(lines) 93 93 lines.append(self.generate_type_implementation(domain, declaration)) 94 return '\n'.join(lines)94 return self.wrap_with_guard_for_condition(domain.condition, '\n'.join(lines)) 95 95 96 96 def generate_type_implementation(self, domain, declaration): … … 113 113 lines.append('') 114 114 lines.append('@end') 115 return '\n'.join(lines)115 return self.wrap_with_guard_for_condition(declaration.condition, '\n'.join(lines)) 116 116 117 117 def _generate_init_method_for_protocol_object(self, domain, declaration): -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generator.py
r259236 r262203 32 32 try: 33 33 from .generator_templates import GeneratorTemplates as Templates 34 from .models import PrimitiveType, ObjectType, ArrayType, EnumType, AliasedType, Frameworks , Platforms34 from .models import PrimitiveType, ObjectType, ArrayType, EnumType, AliasedType, Frameworks 35 35 except ValueError: 36 36 from generator_templates import GeneratorTemplates as Templates 37 from models import PrimitiveType, ObjectType, ArrayType, EnumType, AliasedType, Frameworks , Platforms37 from models import PrimitiveType, ObjectType, ArrayType, EnumType, AliasedType, Frameworks 38 38 39 39 log = logging.getLogger('global') … … 95 95 96 96 class Generator: 97 def __init__(self, model, platform,input_filepath):97 def __init__(self, model, input_filepath): 98 98 self._model = model 99 self._platform = platform100 99 self._input_filepath = input_filepath 101 100 self._settings = {} … … 104 103 return self._model 105 104 106 def platform(self):107 return self._platform108 109 105 def set_generator_setting(self, key, value): 110 106 self._settings[key] = value 111 107 112 def can_generate_platform(self, model_platform):113 return model_platform is Platforms.Generic or self._platform is Platforms.All or model_platform is self._platform114 115 108 def version_for_domain(self, domain): 116 109 return domain.version() 117 110 118 111 def type_declarations_for_domain(self, domain): 119 return [type_declaration for type_declaration in domain.all_type_declarations() if self.can_generate_platform(type_declaration.platform)]112 return domain.all_type_declarations() 120 113 121 114 def commands_for_domain(self, domain): 122 return [command for command in domain.all_commands() if self.can_generate_platform(command.platform)]115 return domain.all_commands() 123 116 124 117 def events_for_domain(self, domain): 125 return [event for event in domain.all_events() if self.can_generate_platform(event.platform)]118 return domain.all_events() 126 119 127 120 # The goofy name is to disambiguate generator settings from framework settings. … … 268 261 269 262 # Miscellaneous text manipulation routines. 270 def wrap_with_guard_for_domain(self, domain, text): 271 if self.model().framework is Frameworks.WebInspector: 272 return text 273 guard = domain.feature_guard 274 if guard: 275 return Generator.wrap_with_guard(guard, text) 263 def wrap_with_guard_for_condition(self, condition, text): 264 if condition: 265 return '\n'.join([ 266 '#if %s' % condition, 267 text, 268 '#endif // %s' % condition, 269 ]) 276 270 return text 277 278 @staticmethod279 def wrap_with_guard(guard, text):280 return '\n'.join([281 '#if %s' % guard,282 text,283 '#endif // %s' % guard,284 ])285 271 286 272 @staticmethod -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generator_templates.py
r198752 r262203 58 58 */ 59 59 60 // DO NOT EDIT THIS FILE. It is automatically generated from ${inputFilename} 61 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py""") 60 // DO NOT EDIT THIS FILE. It is automatically generated from ${inputFilename} by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py""") -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/models.py
r251227 r262203 137 137 138 138 139 class Platform:140 def __init__(self, name):141 self.name = name142 143 @staticmethod144 def fromString(platformString):145 platformString = platformString.lower()146 if platformString == "ios":147 return Platforms.iOS148 149 if platformString == "macos":150 return Platforms.macOS151 152 if platformString == "all":153 return Platforms.All154 155 if platformString == "generic" or not platformString:156 return Platforms.Generic157 158 raise ParseException("Unknown platform: %s" % platformString)159 160 161 class Platforms:162 All = Platform("all")163 Generic = Platform("generic")164 iOS = Platform("ios")165 macOS = Platform("macos")166 167 # Allow iteration over all platforms. See <http://stackoverflow.com/questions/5434400/>.168 class __metaclass__(type):169 def __iter__(self):170 for attr in dir(Platforms):171 if not attr.startswith("__"):172 yield getattr(Platforms, attr)173 174 139 class TypeReference: 175 140 def __init__(self, type_kind, referenced_type_name, enum_values, array_items): … … 440 405 events.extend([self.parse_event(event, debuggable_types) for event in json['events']]) 441 406 442 self.domains.append(Domain(json['domain'], json.get('description', ''), json.get(' featureGuard'), debuggable_types, target_types, isSupplemental, version, types, commands, events))407 self.domains.append(Domain(json['domain'], json.get('description', ''), json.get('condition'), debuggable_types, target_types, isSupplemental, version, types, commands, events)) 443 408 444 409 def parse_type_declaration(self, json): … … 458 423 459 424 type_ref = TypeReference(json['type'], json.get('$ref'), json.get('enum'), json.get('items')) 460 platform = Platform.fromString(json.get('platform', 'generic')) 461 return TypeDeclaration(json['id'], type_ref, json.get("description", ""), platform, type_members) 425 return TypeDeclaration(json['id'], type_ref, json.get("description", ""), json.get('condition'), type_members) 462 426 463 427 def parse_type_member(self, json): … … 510 474 raise ParseException("Malformed domain specification: return parameter list for command %s has duplicate parameter names" % json['name']) 511 475 512 platform = Platform.fromString(json.get('platform', 'generic')) 513 return Command(json['name'], target_types, call_parameters, return_parameters, json.get('description', ""), platform, json.get('async', False)) 476 return Command(json['name'], target_types, call_parameters, return_parameters, json.get('description', ""), json.get('condition'), json.get('async', False)) 514 477 515 478 def parse_event(self, json, debuggable_types): … … 545 508 raise ParseException("Malformed domain specification: parameter list for event %s has duplicate parameter names" % json['name']) 546 509 547 platform = Platform.fromString(json.get('platform', 'generic')) 548 return Event(json['name'], target_types, event_parameters, json.get('description', ""), platform) 510 return Event(json['name'], target_types, event_parameters, json.get('description', ""), json.get('condition')) 549 511 550 512 def parse_call_or_return_parameter(self, json): … … 644 606 645 607 class Domain: 646 def __init__(self, domain_name, description, feature_guard, debuggable_types, target_types, isSupplemental, version, type_declarations, commands, events):608 def __init__(self, domain_name, description, condition, debuggable_types, target_types, isSupplemental, version, type_declarations, commands, events): 647 609 self.domain_name = domain_name 648 610 self.description = description 649 self. feature_guard = feature_guard611 self.condition = condition 650 612 self.debuggable_types = debuggable_types 651 613 self.target_types = target_types … … 687 649 688 650 class TypeDeclaration: 689 def __init__(self, type_name, type_ref, description, platform, type_members):651 def __init__(self, type_name, type_ref, description, condition, type_members): 690 652 self.type_name = type_name 691 653 self.type_ref = type_ref 692 654 self.description = description 693 self. platform = platform655 self.condition = condition 694 656 self.type_members = type_members 695 657 … … 735 697 736 698 class Command: 737 def __init__(self, command_name, target_types, call_parameters, return_parameters, description, platform, is_async):699 def __init__(self, command_name, target_types, call_parameters, return_parameters, description, condition, is_async): 738 700 self.command_name = command_name 739 701 self.target_types = target_types … … 741 703 self.return_parameters = return_parameters 742 704 self.description = description 743 self. platform = platform705 self.condition = condition 744 706 self.is_async = is_async 745 707 … … 755 717 756 718 class Event: 757 def __init__(self, event_name, target_types, event_parameters, description, platform):719 def __init__(self, event_name, target_types, event_parameters, description, condition): 758 720 self.event_name = event_name 759 721 self.target_types = target_types 760 722 self.event_parameters = event_parameters 761 723 self.description = description 762 self. platform = platform724 self.condition = condition 763 725 764 726 def resolve_type_references(self, protocol, domain): -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/objc_generator_templates.py
r251395 r262203 128 128 ${conversions} 129 129 ${invocation} 130 } 131 """) 130 }""") 132 131 133 132 ConfigurationCommandProperty = ( -
trunk/Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py
r249504 r262203 118 118 force_output=False, 119 119 framework_name="", 120 platform_name="",121 120 generate_frontend=True, 122 121 generate_backend=True): … … 131 130 raise Exception("Error parsing valid JSON in file: " + filepath + "\nParse error: " + str(e)) 132 131 133 platform = Platform.fromString(platform_name)134 132 protocol = models.Protocol(framework_name) 135 133 for specification in supplemental_specification_filepaths: … … 139 137 protocol.resolve_types() 140 138 141 generator_arguments = [protocol, p latform, primary_specification_filepath]139 generator_arguments = [protocol, primary_specification_filepath] 142 140 generators = [] 143 141 … … 163 161 164 162 elif protocol.framework is Frameworks.JavaScriptCore: 165 generators.append(JSBackendCommandsGenerator(*generator_arguments))166 163 generators.append(CppAlternateBackendDispatcherHeaderGenerator(*generator_arguments)) 167 164 generators.append(CppBackendDispatcherHeaderGenerator(*generator_arguments)) … … 230 227 if __name__ == '__main__': 231 228 allowed_framework_names = ['JavaScriptCore', 'WebInspector', 'WebInspectorUI', 'WebKit', 'Test'] 232 allowed_platform_names = ['iOS', 'macOS', 'all', 'generic']233 229 cli_parser = optparse.OptionParser(usage="usage: %prog [options] PrimaryProtocol.json [SupplementalProtocol.json ...]") 234 230 cli_parser.add_option("-o", "--outputDir", help="Directory where generated files should be written.") … … 239 235 cli_parser.add_option("--frontend", action="store_true", help="Generate code for the frontend-side of the protocol only.") 240 236 cli_parser.add_option("--backend", action="store_true", help="Generate code for the backend-side of the protocol only.") 241 cli_parser.add_option("--platform", default="generic", help="The platform of the backend being generated. For example, we compile WebKit2 for either macOS or iOS. This value is case-insensitive. Allowed values: %s" % ", ".join(allowed_platform_names))242 237 options = None 243 238 … … 265 260 'concatenate_output': arg_options.test, 266 261 'framework_name': arg_options.framework, 267 'platform_name': arg_options.platform,268 262 'force_output': arg_options.force, 269 263 'generate_backend': generate_backend, -
trunk/Source/JavaScriptCore/inspector/scripts/tests/definitions-with-mac-platform.json
r262202 r262203 5 5 "id": "NetworkError", 6 6 "type": "object", 7 " platform": "macos",7 "condition": "PLATFORM(MAC)", 8 8 "properties": [ 9 9 { "name": "message", "type": "string", "description": "Error message." }, … … 15 15 { 16 16 "name": "loadResource", 17 " platform": "macos",17 "condition": "PLATFORM(MAC)", 18 18 "description": "Loads a resource in the context of a frame on the inspected page without cross origin checks." 19 19 } … … 22 22 { 23 23 "name": "resourceLoaded", 24 " platform": "macos",24 "condition": "PLATFORM(MAC)", 25 25 "description": "A resource was loaded." 26 26 } -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/command-targetType-matching-domain-debuggableType.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Domain … … 36 35 InspectorBackend.registerDomainDispatcher = InspectorBackend.registerDispatcher.bind(InspectorBackend, "Domain"); 37 36 InspectorBackend.activateDomain("Domain", ["page"]); 38 ### End File: InspectorBackendCommands.js 37 ### End File: InspectorBackendCommands.js.in 39 38 40 39 ### Begin File: TestAlternateBackendDispatchers.h … … 66 65 */ 67 66 68 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 69 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 67 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 70 68 71 69 #pragma once … … 127 125 */ 128 126 129 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 130 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 127 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 131 128 132 129 #pragma once … … 162 159 private: 163 160 AlternateDomainBackendDispatcher* m_alternateDispatcher { nullptr }; 164 #endif 161 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 165 162 private: 166 163 DomainBackendDispatcher(BackendDispatcher&, DomainBackendDispatcherHandler*); … … 199 196 */ 200 197 201 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 202 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 198 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 203 199 204 200 #include "config.h" … … 212 208 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 213 209 #include "TestAlternateBackendDispatchers.h" 214 #endif 210 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 215 211 216 212 namespace Inspector { … … 237 233 message->getObject("params"_s, parameters); 238 234 239 if (method == "Command") 235 if (method == "Command") { 240 236 Command(requestId, WTFMove(parameters)); 241 else 242 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Domain." + method + "' was not found"); 237 return; 238 } 239 240 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Domain." + method + "' was not found"); 243 241 } 244 242 … … 250 248 return; 251 249 } 252 #endif 250 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 253 251 254 252 ErrorString error; … … 294 292 */ 295 293 296 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 297 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 294 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 298 295 299 296 #pragma once … … 347 344 */ 348 345 349 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 350 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 346 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 351 347 352 348 #include "config.h" … … 398 394 */ 399 395 400 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 401 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 396 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 402 397 403 398 #pragma once … … 453 448 */ 454 449 455 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 456 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 450 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 457 451 458 452 #include "config.h" … … 502 496 */ 503 497 504 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 505 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 498 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 506 499 507 500 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 554 547 */ 555 548 556 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 557 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 549 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 558 550 559 551 #import "config.h" … … 586 578 } 587 579 588 589 580 } // namespace Inspector 590 581 … … 619 610 */ 620 611 621 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 622 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 612 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 623 613 624 614 #import <WebInspector/TestProtocol.h> … … 661 651 */ 662 652 663 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 664 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 653 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 665 654 666 655 #import "TestProtocolConfiguration.h" … … 757 746 */ 758 747 759 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 760 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 748 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 761 749 762 750 #import "TestProtocolInternal.h" … … 824 812 */ 825 813 826 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 827 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 814 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 828 815 829 816 #import <Foundation/Foundation.h> … … 833 820 834 821 835 836 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {837 TestProtocolPlatformAll,838 TestProtocolPlatformGeneric,839 TestProtocolPlatformIOS,840 TestProtocolPlatformMacOS,841 };842 822 843 823 … … 888 868 */ 889 869 890 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 891 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 870 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 892 871 893 872 #import "TestProtocol.h" … … 931 910 */ 932 911 933 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 934 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 912 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 935 913 936 914 #import "TestProtocol.h" … … 942 920 Optional<ObjCEnumType> fromProtocolString(const String& value); 943 921 944 inline String toProtocolString(TestProtocolPlatform value)945 {946 switch(value) {947 case TestProtocolPlatformAll:948 return "all"_s;949 case TestProtocolPlatformGeneric:950 return "generic"_s;951 case TestProtocolPlatformIOS:952 return "ios"_s;953 case TestProtocolPlatformMacOS:954 return "macos"_s;955 }956 }957 958 template<>959 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)960 {961 if (value == "all")962 return TestProtocolPlatformAll;963 if (value == "generic")964 return TestProtocolPlatformGeneric;965 if (value == "ios")966 return TestProtocolPlatformIOS;967 if (value == "macos")968 return TestProtocolPlatformMacOS;969 return WTF::nullopt;970 }971 972 922 } // namespace Inspector 973 923 … … 1002 952 */ 1003 953 1004 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 1005 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 954 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1006 955 1007 956 #import "TestProtocolTypeConversions.h" … … 1048 997 */ 1049 998 1050 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json 1051 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 999 // DO NOT EDIT THIS FILE. It is automatically generated from command-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1052 1000 1053 1001 #import "TestProtocolInternal.h" -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-async-attribute.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 1 ### Begin File: InspectorBackendCommands.js.in 2 2 /* 3 3 * Copyright (C) 2013 Google Inc. All rights reserved. … … 27 27 */ 28 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 29 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Database … … 39 38 InspectorBackend.registerDatabaseDispatcher = InspectorBackend.registerDispatcher.bind(InspectorBackend, "Database"); 40 39 InspectorBackend.activateDomain("Database", null); 41 ### End File: InspectorBackendCommands.js 40 ### End File: InspectorBackendCommands.js.in 42 41 43 42 ### Begin File: TestAlternateBackendDispatchers.h … … 69 68 */ 70 69 71 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 72 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 70 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 73 71 74 72 #pragma once … … 133 131 */ 134 132 135 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 136 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 133 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 137 134 138 135 #pragma once … … 191 188 private: 192 189 AlternateDatabaseBackendDispatcher* m_alternateDispatcher { nullptr }; 193 #endif 190 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 194 191 private: 195 192 DatabaseBackendDispatcher(BackendDispatcher&, DatabaseBackendDispatcherHandler*); … … 228 225 */ 229 226 230 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 231 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 227 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 232 228 233 229 #include "config.h" … … 241 237 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 242 238 #include "TestAlternateBackendDispatchers.h" 243 #endif 239 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 244 240 245 241 namespace Inspector { … … 266 262 message->getObject("params"_s, parameters); 267 263 268 if (method == "executeSQLSyncOptionalReturnValues") 264 if (method == "executeSQLSyncOptionalReturnValues") { 269 265 executeSQLSyncOptionalReturnValues(requestId, WTFMove(parameters)); 270 else if (method == "executeSQLAsyncOptionalReturnValues") 266 return; 267 } 268 if (method == "executeSQLAsyncOptionalReturnValues") { 271 269 executeSQLAsyncOptionalReturnValues(requestId, WTFMove(parameters)); 272 else if (method == "executeSQLSync") 270 return; 271 } 272 if (method == "executeSQLSync") { 273 273 executeSQLSync(requestId, WTFMove(parameters)); 274 else if (method == "executeSQLAsync") 274 return; 275 } 276 if (method == "executeSQLAsync") { 275 277 executeSQLAsync(requestId, WTFMove(parameters)); 276 else 277 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Database." + method + "' was not found"); 278 return; 279 } 280 281 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Database." + method + "' was not found"); 278 282 } 279 283 … … 292 296 return; 293 297 } 294 #endif 298 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 295 299 296 300 ErrorString error; … … 378 382 return; 379 383 } 380 #endif 384 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 381 385 382 386 Ref<DatabaseBackendDispatcherHandler::ExecuteSQLAsyncOptionalReturnValuesCallback> callback = adoptRef(*new DatabaseBackendDispatcherHandler::ExecuteSQLAsyncOptionalReturnValuesCallback(m_backendDispatcher.copyRef(), requestId)); … … 399 403 return; 400 404 } 401 #endif 405 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 402 406 403 407 ErrorString error; … … 465 469 return; 466 470 } 467 #endif 471 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 468 472 469 473 Ref<DatabaseBackendDispatcherHandler::ExecuteSQLAsyncCallback> callback = adoptRef(*new DatabaseBackendDispatcherHandler::ExecuteSQLAsyncCallback(m_backendDispatcher.copyRef(), requestId)); … … 504 508 */ 505 509 506 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 507 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 510 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 508 511 509 512 #pragma once … … 548 551 */ 549 552 550 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 551 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 553 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 552 554 553 555 #include "config.h" … … 591 593 */ 592 594 593 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 594 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 595 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 595 596 596 597 #pragma once … … 635 636 636 637 namespace Database { 637 /* */ 638 638 639 enum class PrimaryColors { 639 640 Red = 0, … … 641 642 Blue = 2, 642 643 }; // enum class PrimaryColors 644 643 645 /* Database error. */ 644 646 class Error : public JSON::ObjectBase { … … 767 769 */ 768 770 769 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 770 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 771 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 771 772 772 773 #include "config.h" … … 797 798 798 799 // Enums in the 'Database' Domain 800 799 801 template<> 800 802 Optional<Inspector::Protocol::Database::PrimaryColors> parseEnumValueFromString<Inspector::Protocol::Database::PrimaryColors>(const String& protocolString) … … 811 813 return WTF::nullopt; 812 814 } 813 814 815 815 816 } // namespace TestHelpers … … 851 852 */ 852 853 853 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 854 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 854 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 855 855 856 856 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 906 906 */ 907 907 908 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 909 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 908 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 910 909 911 910 #import "config.h" … … 1098 1097 } 1099 1098 1100 1101 1099 } // namespace Inspector 1102 1100 … … 1131 1129 */ 1132 1130 1133 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 1134 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1131 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1135 1132 1136 1133 #import <WebInspector/TestProtocol.h> … … 1172 1169 */ 1173 1170 1174 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 1175 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1171 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1176 1172 1177 1173 #import "TestProtocolConfiguration.h" … … 1259 1255 */ 1260 1256 1261 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 1262 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1257 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1263 1258 1264 1259 #import "TestProtocolInternal.h" … … 1300 1295 */ 1301 1296 1302 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 1303 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1297 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1304 1298 1305 1299 #import <Foundation/Foundation.h> … … 1309 1303 1310 1304 @class TestProtocolDatabaseError; 1311 1312 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {1313 TestProtocolPlatformAll,1314 TestProtocolPlatformGeneric,1315 TestProtocolPlatformIOS,1316 TestProtocolPlatformMacOS,1317 };1318 1319 1305 1320 1306 typedef NS_ENUM(NSInteger, TestProtocolDatabasePrimaryColors) { … … 1351 1337 TestProtocolDatabaseExecuteSQLAsyncPrintColorBlack, 1352 1338 }; 1353 1354 1339 1355 1340 __attribute__((visibility ("default"))) … … 1405 1390 */ 1406 1391 1407 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 1408 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1392 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1409 1393 1410 1394 #import "TestProtocol.h" … … 1446 1430 */ 1447 1431 1448 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 1449 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1432 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1450 1433 1451 1434 #import "TestProtocol.h" … … 1456 1439 template<typename ObjCEnumType> 1457 1440 Optional<ObjCEnumType> fromProtocolString(const String& value); 1458 1459 inline String toProtocolString(TestProtocolPlatform value)1460 {1461 switch(value) {1462 case TestProtocolPlatformAll:1463 return "all"_s;1464 case TestProtocolPlatformGeneric:1465 return "generic"_s;1466 case TestProtocolPlatformIOS:1467 return "ios"_s;1468 case TestProtocolPlatformMacOS:1469 return "macos"_s;1470 }1471 }1472 1473 template<>1474 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)1475 {1476 if (value == "all")1477 return TestProtocolPlatformAll;1478 if (value == "generic")1479 return TestProtocolPlatformGeneric;1480 if (value == "ios")1481 return TestProtocolPlatformIOS;1482 if (value == "macos")1483 return TestProtocolPlatformMacOS;1484 return WTF::nullopt;1485 }1486 1487 1441 1488 1442 inline String toProtocolString(TestProtocolDatabasePrimaryColors value) … … 1654 1608 */ 1655 1609 1656 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 1657 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1610 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1658 1611 1659 1612 #import "TestProtocolTypeConversions.h" … … 1735 1688 */ 1736 1689 1737 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json 1738 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1690 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-async-attribute.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1739 1691 1740 1692 #import "TestProtocolInternal.h" … … 1747 1699 using namespace Inspector; 1748 1700 1749 1750 1701 @implementation TestProtocolDatabaseError 1751 1702 -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Database … … 36 35 InspectorBackend.registerCommand("Database.executeNoOptionalParameters", null, [{"name": "columnNames", "type": "object"}, {"name": "notes", "type": "string"}, {"name": "timestamp", "type": "number"}, {"name": "values", "type": "object"}, {"name": "payload", "type": "object"}, {"name": "databaseId", "type": "number"}, {"name": "sqlError", "type": "object"}, {"name": "screenColor", "type": "string"}, {"name": "alternateColors", "type": "object"}, {"name": "printColor", "type": "string"}], ["columnNames", "notes", "timestamp", "values", "payload", "databaseId", "sqlError", "screenColor", "alternateColors", "printColor"]); 37 36 InspectorBackend.activateDomain("Database", null); 38 ### End File: InspectorBackendCommands.js 37 ### End File: InspectorBackendCommands.js.in 39 38 40 39 ### Begin File: TestAlternateBackendDispatchers.h … … 66 65 */ 67 66 68 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 69 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 67 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 70 68 71 69 #pragma once … … 128 126 */ 129 127 130 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 131 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 128 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 132 129 133 130 #pragma once … … 172 169 private: 173 170 AlternateDatabaseBackendDispatcher* m_alternateDispatcher { nullptr }; 174 #endif 171 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 175 172 private: 176 173 DatabaseBackendDispatcher(BackendDispatcher&, DatabaseBackendDispatcherHandler*); … … 209 206 */ 210 207 211 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 212 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 208 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 213 209 214 210 #include "config.h" … … 222 218 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 223 219 #include "TestAlternateBackendDispatchers.h" 224 #endif 220 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 225 221 226 222 namespace Inspector { … … 247 243 message->getObject("params"_s, parameters); 248 244 249 if (method == "executeAllOptionalParameters") 245 if (method == "executeAllOptionalParameters") { 250 246 executeAllOptionalParameters(requestId, WTFMove(parameters)); 251 else if (method == "executeNoOptionalParameters") 247 return; 248 } 249 if (method == "executeNoOptionalParameters") { 252 250 executeNoOptionalParameters(requestId, WTFMove(parameters)); 253 else 254 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Database." + method + "' was not found"); 251 return; 252 } 253 254 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Database." + method + "' was not found"); 255 255 } 256 256 … … 287 287 return; 288 288 } 289 #endif 289 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 290 290 291 291 ErrorString error; … … 353 353 return; 354 354 } 355 #endif 355 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 356 356 357 357 ErrorString error; … … 419 419 */ 420 420 421 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 422 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 421 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 423 422 424 423 #pragma once … … 463 462 */ 464 463 465 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 466 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 464 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 467 465 468 466 #include "config.h" … … 506 504 */ 507 505 508 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 509 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 506 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 510 507 511 508 #pragma once … … 550 547 551 548 namespace Database { 552 /* */ 549 553 550 enum class PrimaryColors { 554 551 Red = 0, … … 556 553 Blue = 2, 557 554 }; // enum class PrimaryColors 555 558 556 /* Database error. */ 559 557 class Error : public JSON::ObjectBase { … … 682 680 */ 683 681 684 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 685 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 682 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 686 683 687 684 #include "config.h" … … 712 709 713 710 // Enums in the 'Database' Domain 711 714 712 template<> 715 713 Optional<Inspector::Protocol::Database::PrimaryColors> parseEnumValueFromString<Inspector::Protocol::Database::PrimaryColors>(const String& protocolString) … … 727 725 } 728 726 729 730 727 } // namespace TestHelpers 731 728 … … 766 763 */ 767 764 768 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 769 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 765 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 770 766 771 767 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 819 815 */ 820 816 821 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 822 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 817 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 823 818 824 819 #import "config.h" … … 965 960 } 966 961 967 968 962 } // namespace Inspector 969 963 … … 998 992 */ 999 993 1000 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 1001 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 994 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1002 995 1003 996 #import <WebInspector/TestProtocol.h> … … 1039 1032 */ 1040 1033 1041 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 1042 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1034 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1043 1035 1044 1036 #import "TestProtocolConfiguration.h" … … 1126 1118 */ 1127 1119 1128 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 1129 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1120 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1130 1121 1131 1122 #import "TestProtocolInternal.h" … … 1167 1158 */ 1168 1159 1169 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 1170 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1160 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1171 1161 1172 1162 #import <Foundation/Foundation.h> … … 1176 1166 1177 1167 @class TestProtocolDatabaseError; 1178 1179 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {1180 TestProtocolPlatformAll,1181 TestProtocolPlatformGeneric,1182 TestProtocolPlatformIOS,1183 TestProtocolPlatformMacOS,1184 };1185 1186 1168 1187 1169 typedef NS_ENUM(NSInteger, TestProtocolDatabasePrimaryColors) { … … 1198 1180 }; 1199 1181 1182 1183 1200 1184 typedef NS_ENUM(NSInteger, TestProtocolDatabaseExecuteAllOptionalParametersPrintColor) { 1201 1185 TestProtocolDatabaseExecuteAllOptionalParametersPrintColorCyan, … … 1212 1196 }; 1213 1197 1198 1199 1214 1200 typedef NS_ENUM(NSInteger, TestProtocolDatabaseExecuteNoOptionalParametersPrintColor) { 1215 1201 TestProtocolDatabaseExecuteNoOptionalParametersPrintColorCyan, … … 1218 1204 TestProtocolDatabaseExecuteNoOptionalParametersPrintColorBlack, 1219 1205 }; 1220 1221 1206 1222 1207 __attribute__((visibility ("default"))) … … 1270 1255 */ 1271 1256 1272 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 1273 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1257 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1274 1258 1275 1259 #import "TestProtocol.h" … … 1311 1295 */ 1312 1296 1313 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 1314 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1297 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1315 1298 1316 1299 #import "TestProtocol.h" … … 1321 1304 template<typename ObjCEnumType> 1322 1305 Optional<ObjCEnumType> fromProtocolString(const String& value); 1323 1324 inline String toProtocolString(TestProtocolPlatform value)1325 {1326 switch(value) {1327 case TestProtocolPlatformAll:1328 return "all"_s;1329 case TestProtocolPlatformGeneric:1330 return "generic"_s;1331 case TestProtocolPlatformIOS:1332 return "ios"_s;1333 case TestProtocolPlatformMacOS:1334 return "macos"_s;1335 }1336 }1337 1338 template<>1339 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)1340 {1341 if (value == "all")1342 return TestProtocolPlatformAll;1343 if (value == "generic")1344 return TestProtocolPlatformGeneric;1345 if (value == "ios")1346 return TestProtocolPlatformIOS;1347 if (value == "macos")1348 return TestProtocolPlatformMacOS;1349 return WTF::nullopt;1350 }1351 1352 1306 1353 1307 inline String toProtocolString(TestProtocolDatabasePrimaryColors value) … … 1403 1357 } 1404 1358 1359 1360 1405 1361 inline String toProtocolString(TestProtocolDatabaseExecuteAllOptionalParametersPrintColor value) 1406 1362 { … … 1459 1415 } 1460 1416 1417 1418 1461 1419 inline String toProtocolString(TestProtocolDatabaseExecuteNoOptionalParametersPrintColor value) 1462 1420 { … … 1519 1477 */ 1520 1478 1521 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 1522 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1479 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1523 1480 1524 1481 #import "TestProtocolTypeConversions.h" … … 1600 1557 */ 1601 1558 1602 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json 1603 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1559 // DO NOT EDIT THIS FILE. It is automatically generated from commands-with-optional-call-return-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1604 1560 1605 1561 #import "TestProtocolInternal.h" … … 1612 1568 using namespace Inspector; 1613 1569 1614 1615 1570 @implementation TestProtocolDatabaseError 1616 1571 -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/definitions-with-mac-platform.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Network 33 32 InspectorBackend.registerDomain("Network", null); 33 #if PLATFORM(MAC) 34 34 InspectorBackend.registerCommand("Network.loadResource", null, [], []); 35 #endif // PLATFORM(MAC) 36 #if PLATFORM(MAC) 35 37 InspectorBackend.registerEvent("Network.resourceLoaded", null, []); 38 #endif // PLATFORM(MAC) 36 39 InspectorBackend.registerNetworkDispatcher = InspectorBackend.registerDispatcher.bind(InspectorBackend, "Network"); 37 40 InspectorBackend.activateDomain("Network", null); 38 ### End File: InspectorBackendCommands.js 41 ### End File: InspectorBackendCommands.js.in 39 42 40 43 ### Begin File: TestAlternateBackendDispatchers.h … … 66 69 */ 67 70 68 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 69 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 71 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 70 72 71 73 #pragma once … … 91 93 public: 92 94 virtual ~AlternateNetworkBackendDispatcher() { } 95 #if PLATFORM(MAC) 93 96 virtual void loadResource(long callId) = 0; 97 #endif // PLATFORM(MAC) 94 98 }; 95 99 … … 127 131 */ 128 132 129 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 130 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 133 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 131 134 132 135 #pragma once … … 146 149 class NetworkBackendDispatcherHandler { 147 150 public: 151 #if PLATFORM(MAC) 148 152 virtual void loadResource(ErrorString&) = 0; 153 #endif // PLATFORM(MAC) 149 154 protected: 150 155 virtual ~NetworkBackendDispatcherHandler(); … … 156 161 void dispatch(long requestId, const String& method, Ref<JSON::Object>&& message) final; 157 162 private: 163 #if PLATFORM(MAC) 158 164 void loadResource(long requestId, RefPtr<JSON::Object>&& parameters); 165 #endif // PLATFORM(MAC) 159 166 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 160 167 public: … … 162 169 private: 163 170 AlternateNetworkBackendDispatcher* m_alternateDispatcher { nullptr }; 164 #endif 171 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 165 172 private: 166 173 NetworkBackendDispatcher(BackendDispatcher&, NetworkBackendDispatcherHandler*); … … 199 206 */ 200 207 201 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 202 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 208 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 203 209 204 210 #include "config.h" … … 212 218 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 213 219 #include "TestAlternateBackendDispatchers.h" 214 #endif 220 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 215 221 216 222 namespace Inspector { … … 237 243 message->getObject("params"_s, parameters); 238 244 239 if (method == "loadResource") 245 #if PLATFORM(MAC) 246 if (method == "loadResource") { 240 247 loadResource(requestId, WTFMove(parameters)); 241 else 242 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Network." + method + "' was not found"); 243 } 244 248 return; 249 } 250 #endif // PLATFORM(MAC) 251 252 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Network." + method + "' was not found"); 253 } 254 255 #if PLATFORM(MAC) 245 256 void NetworkBackendDispatcher::loadResource(long requestId, RefPtr<JSON::Object>&&) 246 257 { … … 250 261 return; 251 262 } 252 #endif 263 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 253 264 254 265 ErrorString error; … … 261 272 m_backendDispatcher->reportProtocolError(BackendDispatcher::ServerError, WTFMove(error)); 262 273 } 274 #endif // PLATFORM(MAC) 263 275 264 276 } // namespace Inspector … … 294 306 */ 295 307 296 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 297 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 308 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 298 309 299 310 #pragma once … … 311 322 public: 312 323 NetworkFrontendDispatcher(FrontendRouter& frontendRouter) : m_frontendRouter(frontendRouter) { } 324 #if PLATFORM(MAC) 313 325 void resourceLoaded(); 326 #endif // PLATFORM(MAC) 314 327 private: 315 328 FrontendRouter& m_frontendRouter; … … 347 360 */ 348 361 349 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 350 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 362 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 351 363 352 364 #include "config.h" … … 358 370 namespace Inspector { 359 371 372 #if PLATFORM(MAC) 360 373 void NetworkFrontendDispatcher::resourceLoaded() 361 374 { … … 365 378 m_frontendRouter.sendEvent(jsonMessage->toJSONString()); 366 379 } 380 #endif // PLATFORM(MAC) 367 381 368 382 } // namespace Inspector … … 398 412 */ 399 413 400 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 401 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 414 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 402 415 403 416 #pragma once … … 416 429 // Forward declarations. 417 430 namespace Network { 431 #if PLATFORM(MAC) 418 432 class NetworkError; 433 #endif // PLATFORM(MAC) 419 434 } // Network 420 435 // End of forward declarations. … … 424 439 425 440 namespace Network { 441 442 #if PLATFORM(MAC) 426 443 class NetworkError : public JSON::ObjectBase { 427 444 public: … … 488 505 } 489 506 }; 507 #endif // PLATFORM(MAC) 490 508 491 509 } // Network … … 526 544 */ 527 545 528 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 529 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 546 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 530 547 531 548 #include "config.h" … … 575 592 */ 576 593 577 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 578 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 594 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 579 595 580 596 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 590 606 public: 591 607 ObjCInspectorNetworkBackendDispatcher(id<TestProtocolNetworkDomainHandler> handler) { m_delegate = handler; } 608 #if PLATFORM(MAC) 592 609 void loadResource(long requestId) final; 610 #endif // PLATFORM(MAC) 593 611 private: 594 612 RetainPtr<id<TestProtocolNetworkDomainHandler>> m_delegate; … … 627 645 */ 628 646 629 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 630 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 647 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 631 648 632 649 #import "config.h" … … 639 656 namespace Inspector { 640 657 658 #if PLATFORM(MAC) 641 659 void ObjCInspectorNetworkBackendDispatcher::loadResource(long requestId) 642 660 { … … 658 676 [m_delegate loadResourceWithErrorCallback:errorCallback successCallback:successCallback]; 659 677 } 660 678 #endif // PLATFORM(MAC) 661 679 662 680 } // namespace Inspector … … 692 710 */ 693 711 694 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 695 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 712 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 696 713 697 714 #import <WebInspector/TestProtocol.h> … … 734 751 */ 735 752 736 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 737 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 753 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 738 754 739 755 #import "TestProtocolConfiguration.h" … … 830 846 */ 831 847 832 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 833 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 848 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 834 849 835 850 #import "TestProtocolInternal.h" … … 897 912 */ 898 913 899 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 900 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 914 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 901 915 902 916 #import <Foundation/Foundation.h> … … 905 919 906 920 921 #if PLATFORM(MAC) 907 922 @class TestProtocolNetworkError; 908 909 typedef NS_ENUM(NSInteger, TestProtocolPlatform) { 910 TestProtocolPlatformAll, 911 TestProtocolPlatformGeneric, 912 TestProtocolPlatformIOS, 913 TestProtocolPlatformMacOS, 914 }; 915 916 917 918 923 #endif // PLATFORM(MAC) 924 925 926 927 #if PLATFORM(MAC) 919 928 __attribute__((visibility ("default"))) 920 929 @interface TestProtocolNetworkError : RWIProtocolJSONObject … … 925 934 /* required */ @property (nonatomic, assign) int code; 926 935 @end 936 #endif // PLATFORM(MAC) 927 937 928 938 @protocol TestProtocolNetworkDomainHandler <NSObject> 929 939 @optional 940 #if PLATFORM(MAC) 930 941 - (void)loadResourceWithErrorCallback:(void(^)(NSString *error))errorCallback successCallback:(void(^)(void))successCallback; 942 #endif // PLATFORM(MAC) 931 943 @end 932 944 … … 969 981 */ 970 982 971 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 972 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 983 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 973 984 974 985 #import "TestProtocol.h" … … 1012 1023 */ 1013 1024 1014 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 1015 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1025 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1016 1026 1017 1027 #import "TestProtocol.h" … … 1023 1033 Optional<ObjCEnumType> fromProtocolString(const String& value); 1024 1034 1025 inline String toProtocolString(TestProtocolPlatform value)1026 {1027 switch(value) {1028 case TestProtocolPlatformAll:1029 return "all"_s;1030 case TestProtocolPlatformGeneric:1031 return "generic"_s;1032 case TestProtocolPlatformIOS:1033 return "ios"_s;1034 case TestProtocolPlatformMacOS:1035 return "macos"_s;1036 }1037 }1038 1039 template<>1040 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)1041 {1042 if (value == "all")1043 return TestProtocolPlatformAll;1044 if (value == "generic")1045 return TestProtocolPlatformGeneric;1046 if (value == "ios")1047 return TestProtocolPlatformIOS;1048 if (value == "macos")1049 return TestProtocolPlatformMacOS;1050 return WTF::nullopt;1051 }1052 1053 1035 1054 1036 … … 1085 1067 */ 1086 1068 1087 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 1088 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1069 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1089 1070 1090 1071 #import "TestProtocolTypeConversions.h" … … 1098 1079 @interface TestProtocolTypeConversions (NetworkDomain) 1099 1080 1081 #if PLATFORM(MAC) 1100 1082 + (void)_parseNetworkError:(TestProtocolNetworkError **)outValue fromPayload:(id)payload; 1083 #endif // PLATFORM(MAC) 1101 1084 1102 1085 @end … … 1104 1087 @implementation TestProtocolTypeConversions (NetworkDomain) 1105 1088 1089 #if PLATFORM(MAC) 1106 1090 + (void)_parseNetworkError:(TestProtocolNetworkError **)outValue fromPayload:(id)payload 1107 1091 { … … 1109 1093 *outValue = [[TestProtocolNetworkError alloc] initWithPayload:payload]; 1110 1094 } 1095 #endif // PLATFORM(MAC) 1111 1096 1112 1097 @end … … 1143 1128 */ 1144 1129 1145 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json 1146 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1130 // DO NOT EDIT THIS FILE. It is automatically generated from definitions-with-mac-platform.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1147 1131 1148 1132 #import "TestProtocolInternal.h" … … 1155 1139 using namespace Inspector; 1156 1140 1157 1141 #if PLATFORM(MAC) 1158 1142 @implementation TestProtocolNetworkError 1159 1143 … … 1213 1197 1214 1198 @end 1199 #endif // PLATFORM(MAC) 1215 1200 1216 1201 -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/domain-debuggableTypes.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Domain … … 36 35 InspectorBackend.registerDomainDispatcher = InspectorBackend.registerDispatcher.bind(InspectorBackend, "Domain"); 37 36 InspectorBackend.activateDomain("Domain", ["web-page"]); 38 ### End File: InspectorBackendCommands.js 37 ### End File: InspectorBackendCommands.js.in 39 38 40 39 ### Begin File: TestAlternateBackendDispatchers.h … … 66 65 */ 67 66 68 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 69 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 67 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 70 68 71 69 #pragma once … … 127 125 */ 128 126 129 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 130 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 127 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 131 128 132 129 #pragma once … … 162 159 private: 163 160 AlternateDomainBackendDispatcher* m_alternateDispatcher { nullptr }; 164 #endif 161 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 165 162 private: 166 163 DomainBackendDispatcher(BackendDispatcher&, DomainBackendDispatcherHandler*); … … 199 196 */ 200 197 201 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 202 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 198 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 203 199 204 200 #include "config.h" … … 212 208 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 213 209 #include "TestAlternateBackendDispatchers.h" 214 #endif 210 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 215 211 216 212 namespace Inspector { … … 237 233 message->getObject("params"_s, parameters); 238 234 239 if (method == "Command") 235 if (method == "Command") { 240 236 Command(requestId, WTFMove(parameters)); 241 else 242 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Domain." + method + "' was not found"); 237 return; 238 } 239 240 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Domain." + method + "' was not found"); 243 241 } 244 242 … … 250 248 return; 251 249 } 252 #endif 250 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 253 251 254 252 ErrorString error; … … 294 292 */ 295 293 296 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 297 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 294 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 298 295 299 296 #pragma once … … 347 344 */ 348 345 349 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 350 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 346 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 351 347 352 348 #include "config.h" … … 398 394 */ 399 395 400 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 401 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 396 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 402 397 403 398 #pragma once … … 453 448 */ 454 449 455 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 456 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 450 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 457 451 458 452 #include "config.h" … … 502 496 */ 503 497 504 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 505 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 498 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 506 499 507 500 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 554 547 */ 555 548 556 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 557 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 549 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 558 550 559 551 #import "config.h" … … 586 578 } 587 579 588 589 580 } // namespace Inspector 590 581 … … 619 610 */ 620 611 621 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 622 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 612 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 623 613 624 614 #import <WebInspector/TestProtocol.h> … … 661 651 */ 662 652 663 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 664 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 653 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 665 654 666 655 #import "TestProtocolConfiguration.h" … … 757 746 */ 758 747 759 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 760 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 748 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 761 749 762 750 #import "TestProtocolInternal.h" … … 824 812 */ 825 813 826 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 827 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 814 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 828 815 829 816 #import <Foundation/Foundation.h> … … 833 820 834 821 835 836 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {837 TestProtocolPlatformAll,838 TestProtocolPlatformGeneric,839 TestProtocolPlatformIOS,840 TestProtocolPlatformMacOS,841 };842 822 843 823 … … 888 868 */ 889 869 890 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 891 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 870 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 892 871 893 872 #import "TestProtocol.h" … … 931 910 */ 932 911 933 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 934 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 912 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 935 913 936 914 #import "TestProtocol.h" … … 942 920 Optional<ObjCEnumType> fromProtocolString(const String& value); 943 921 944 inline String toProtocolString(TestProtocolPlatform value)945 {946 switch(value) {947 case TestProtocolPlatformAll:948 return "all"_s;949 case TestProtocolPlatformGeneric:950 return "generic"_s;951 case TestProtocolPlatformIOS:952 return "ios"_s;953 case TestProtocolPlatformMacOS:954 return "macos"_s;955 }956 }957 958 template<>959 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)960 {961 if (value == "all")962 return TestProtocolPlatformAll;963 if (value == "generic")964 return TestProtocolPlatformGeneric;965 if (value == "ios")966 return TestProtocolPlatformIOS;967 if (value == "macos")968 return TestProtocolPlatformMacOS;969 return WTF::nullopt;970 }971 972 922 } // namespace Inspector 973 923 … … 1002 952 */ 1003 953 1004 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 1005 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 954 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1006 955 1007 956 #import "TestProtocolTypeConversions.h" … … 1048 997 */ 1049 998 1050 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json 1051 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 999 // DO NOT EDIT THIS FILE. It is automatically generated from domain-debuggableTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1052 1000 1053 1001 #import "TestProtocolInternal.h" -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/domain-targetType-matching-domain-debuggableType.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Domain … … 36 35 InspectorBackend.registerDomainDispatcher = InspectorBackend.registerDispatcher.bind(InspectorBackend, "Domain"); 37 36 InspectorBackend.activateDomain("Domain", ["page"]); 38 ### End File: InspectorBackendCommands.js 37 ### End File: InspectorBackendCommands.js.in 39 38 40 39 ### Begin File: TestAlternateBackendDispatchers.h … … 66 65 */ 67 66 68 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 69 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 67 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 70 68 71 69 #pragma once … … 127 125 */ 128 126 129 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 130 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 127 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 131 128 132 129 #pragma once … … 162 159 private: 163 160 AlternateDomainBackendDispatcher* m_alternateDispatcher { nullptr }; 164 #endif 161 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 165 162 private: 166 163 DomainBackendDispatcher(BackendDispatcher&, DomainBackendDispatcherHandler*); … … 199 196 */ 200 197 201 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 202 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 198 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 203 199 204 200 #include "config.h" … … 212 208 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 213 209 #include "TestAlternateBackendDispatchers.h" 214 #endif 210 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 215 211 216 212 namespace Inspector { … … 237 233 message->getObject("params"_s, parameters); 238 234 239 if (method == "Command") 235 if (method == "Command") { 240 236 Command(requestId, WTFMove(parameters)); 241 else 242 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Domain." + method + "' was not found"); 237 return; 238 } 239 240 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Domain." + method + "' was not found"); 243 241 } 244 242 … … 250 248 return; 251 249 } 252 #endif 250 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 253 251 254 252 ErrorString error; … … 294 292 */ 295 293 296 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 297 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 294 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 298 295 299 296 #pragma once … … 347 344 */ 348 345 349 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 350 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 346 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 351 347 352 348 #include "config.h" … … 398 394 */ 399 395 400 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 401 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 396 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 402 397 403 398 #pragma once … … 453 448 */ 454 449 455 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 456 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 450 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 457 451 458 452 #include "config.h" … … 502 496 */ 503 497 504 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 505 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 498 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 506 499 507 500 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 554 547 */ 555 548 556 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 557 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 549 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 558 550 559 551 #import "config.h" … … 586 578 } 587 579 588 589 580 } // namespace Inspector 590 581 … … 619 610 */ 620 611 621 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 622 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 612 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 623 613 624 614 #import <WebInspector/TestProtocol.h> … … 661 651 */ 662 652 663 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 664 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 653 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 665 654 666 655 #import "TestProtocolConfiguration.h" … … 757 746 */ 758 747 759 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 760 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 748 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 761 749 762 750 #import "TestProtocolInternal.h" … … 824 812 */ 825 813 826 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 827 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 814 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 828 815 829 816 #import <Foundation/Foundation.h> … … 833 820 834 821 835 836 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {837 TestProtocolPlatformAll,838 TestProtocolPlatformGeneric,839 TestProtocolPlatformIOS,840 TestProtocolPlatformMacOS,841 };842 822 843 823 … … 888 868 */ 889 869 890 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 891 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 870 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 892 871 893 872 #import "TestProtocol.h" … … 931 910 */ 932 911 933 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 934 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 912 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 935 913 936 914 #import "TestProtocol.h" … … 942 920 Optional<ObjCEnumType> fromProtocolString(const String& value); 943 921 944 inline String toProtocolString(TestProtocolPlatform value)945 {946 switch(value) {947 case TestProtocolPlatformAll:948 return "all"_s;949 case TestProtocolPlatformGeneric:950 return "generic"_s;951 case TestProtocolPlatformIOS:952 return "ios"_s;953 case TestProtocolPlatformMacOS:954 return "macos"_s;955 }956 }957 958 template<>959 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)960 {961 if (value == "all")962 return TestProtocolPlatformAll;963 if (value == "generic")964 return TestProtocolPlatformGeneric;965 if (value == "ios")966 return TestProtocolPlatformIOS;967 if (value == "macos")968 return TestProtocolPlatformMacOS;969 return WTF::nullopt;970 }971 972 922 } // namespace Inspector 973 923 … … 1002 952 */ 1003 953 1004 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 1005 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 954 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1006 955 1007 956 #import "TestProtocolTypeConversions.h" … … 1048 997 */ 1049 998 1050 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json 1051 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 999 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1052 1000 1053 1001 #import "TestProtocolInternal.h" -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/domain-targetTypes.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Domain … … 36 35 InspectorBackend.registerDomainDispatcher = InspectorBackend.registerDispatcher.bind(InspectorBackend, "Domain"); 37 36 InspectorBackend.activateDomain("Domain", null); 38 ### End File: InspectorBackendCommands.js 37 ### End File: InspectorBackendCommands.js.in 39 38 40 39 ### Begin File: TestAlternateBackendDispatchers.h … … 66 65 */ 67 66 68 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 69 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 67 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 70 68 71 69 #pragma once … … 127 125 */ 128 126 129 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 130 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 127 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 131 128 132 129 #pragma once … … 162 159 private: 163 160 AlternateDomainBackendDispatcher* m_alternateDispatcher { nullptr }; 164 #endif 161 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 165 162 private: 166 163 DomainBackendDispatcher(BackendDispatcher&, DomainBackendDispatcherHandler*); … … 199 196 */ 200 197 201 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 202 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 198 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 203 199 204 200 #include "config.h" … … 212 208 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 213 209 #include "TestAlternateBackendDispatchers.h" 214 #endif 210 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 215 211 216 212 namespace Inspector { … … 237 233 message->getObject("params"_s, parameters); 238 234 239 if (method == "Command") 235 if (method == "Command") { 240 236 Command(requestId, WTFMove(parameters)); 241 else 242 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Domain." + method + "' was not found"); 237 return; 238 } 239 240 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Domain." + method + "' was not found"); 243 241 } 244 242 … … 250 248 return; 251 249 } 252 #endif 250 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 253 251 254 252 ErrorString error; … … 294 292 */ 295 293 296 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 297 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 294 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 298 295 299 296 #pragma once … … 347 344 */ 348 345 349 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 350 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 346 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 351 347 352 348 #include "config.h" … … 398 394 */ 399 395 400 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 401 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 396 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 402 397 403 398 #pragma once … … 453 448 */ 454 449 455 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 456 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 450 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 457 451 458 452 #include "config.h" … … 502 496 */ 503 497 504 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 505 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 498 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 506 499 507 500 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 554 547 */ 555 548 556 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 557 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 549 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 558 550 559 551 #import "config.h" … … 586 578 } 587 579 588 589 580 } // namespace Inspector 590 581 … … 619 610 */ 620 611 621 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 622 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 612 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 623 613 624 614 #import <WebInspector/TestProtocol.h> … … 661 651 */ 662 652 663 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 664 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 653 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 665 654 666 655 #import "TestProtocolConfiguration.h" … … 757 746 */ 758 747 759 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 760 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 748 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 761 749 762 750 #import "TestProtocolInternal.h" … … 824 812 */ 825 813 826 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 827 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 814 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 828 815 829 816 #import <Foundation/Foundation.h> … … 833 820 834 821 835 836 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {837 TestProtocolPlatformAll,838 TestProtocolPlatformGeneric,839 TestProtocolPlatformIOS,840 TestProtocolPlatformMacOS,841 };842 822 843 823 … … 888 868 */ 889 869 890 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 891 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 870 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 892 871 893 872 #import "TestProtocol.h" … … 931 910 */ 932 911 933 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 934 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 912 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 935 913 936 914 #import "TestProtocol.h" … … 942 920 Optional<ObjCEnumType> fromProtocolString(const String& value); 943 921 944 inline String toProtocolString(TestProtocolPlatform value)945 {946 switch(value) {947 case TestProtocolPlatformAll:948 return "all"_s;949 case TestProtocolPlatformGeneric:950 return "generic"_s;951 case TestProtocolPlatformIOS:952 return "ios"_s;953 case TestProtocolPlatformMacOS:954 return "macos"_s;955 }956 }957 958 template<>959 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)960 {961 if (value == "all")962 return TestProtocolPlatformAll;963 if (value == "generic")964 return TestProtocolPlatformGeneric;965 if (value == "ios")966 return TestProtocolPlatformIOS;967 if (value == "macos")968 return TestProtocolPlatformMacOS;969 return WTF::nullopt;970 }971 972 922 } // namespace Inspector 973 923 … … 1002 952 */ 1003 953 1004 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 1005 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 954 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1006 955 1007 956 #import "TestProtocolTypeConversions.h" … … 1048 997 */ 1049 998 1050 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json 1051 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 999 // DO NOT EDIT THIS FILE. It is automatically generated from domain-targetTypes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1052 1000 1053 1001 #import "TestProtocolInternal.h" -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/domains-with-varying-command-sizes.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Network1 … … 45 44 InspectorBackend.registerCommand("Network3.loadResource7", null, [], []); 46 45 InspectorBackend.activateDomain("Network3", null); 47 ### End File: InspectorBackendCommands.js 46 ### End File: InspectorBackendCommands.js.in 48 47 49 48 ### Begin File: TestAlternateBackendDispatchers.h … … 75 74 */ 76 75 77 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 78 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 76 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 79 77 80 78 #pragma once … … 102 100 virtual void loadResource1(long callId) = 0; 103 101 }; 102 104 103 class AlternateNetwork3BackendDispatcher : public AlternateBackendDispatcher { 105 104 public: … … 147 146 */ 148 147 149 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 150 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 148 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 151 149 152 150 #pragma once … … 196 194 private: 197 195 AlternateNetwork1BackendDispatcher* m_alternateDispatcher { nullptr }; 198 #endif 196 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 199 197 private: 200 198 Network1BackendDispatcher(BackendDispatcher&, Network1BackendDispatcherHandler*); … … 219 217 private: 220 218 AlternateNetwork3BackendDispatcher* m_alternateDispatcher { nullptr }; 221 #endif 219 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 222 220 private: 223 221 Network3BackendDispatcher(BackendDispatcher&, Network3BackendDispatcherHandler*); … … 256 254 */ 257 255 258 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 259 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 256 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 260 257 261 258 #include "config.h" … … 269 266 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 270 267 #include "TestAlternateBackendDispatchers.h" 271 #endif 268 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 272 269 273 270 namespace Inspector { … … 295 292 message->getObject("params"_s, parameters); 296 293 297 if (method == "loadResource1") 294 if (method == "loadResource1") { 298 295 loadResource1(requestId, WTFMove(parameters)); 299 else 300 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Network1." + method + "' was not found"); 296 return; 297 } 298 299 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Network1." + method + "' was not found"); 301 300 } 302 301 … … 308 307 return; 309 308 } 310 #endif 309 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 311 310 312 311 ErrorString error; … … 376 375 return; 377 376 } 378 #endif 377 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 379 378 380 379 ErrorString error; … … 395 394 return; 396 395 } 397 #endif 396 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 398 397 399 398 ErrorString error; … … 414 413 return; 415 414 } 416 #endif 415 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 417 416 418 417 ErrorString error; … … 433 432 return; 434 433 } 435 #endif 434 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 436 435 437 436 ErrorString error; … … 452 451 return; 453 452 } 454 #endif 453 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 455 454 456 455 ErrorString error; … … 471 470 return; 472 471 } 473 #endif 472 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 474 473 475 474 ErrorString error; … … 490 489 return; 491 490 } 492 #endif 491 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 493 492 494 493 ErrorString error; … … 534 533 */ 535 534 536 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 537 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 535 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 538 536 539 537 #pragma once … … 578 576 */ 579 577 580 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 581 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 578 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 582 579 583 580 #include "config.h" … … 621 618 */ 622 619 623 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 624 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 620 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 625 621 626 622 #pragma once … … 681 677 */ 682 678 683 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 684 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 679 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 685 680 686 681 #include "config.h" … … 730 725 */ 731 726 732 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 733 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 727 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 734 728 735 729 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 798 792 */ 799 793 800 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 801 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 794 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 802 795 803 796 #import "config.h" … … 830 823 } 831 824 832 833 825 void ObjCInspectorNetwork3BackendDispatcher::loadResource1(long requestId) 834 826 { … … 971 963 } 972 964 973 974 965 } // namespace Inspector 975 966 … … 1004 995 */ 1005 996 1006 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 1007 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 997 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1008 998 1009 999 #import <WebInspector/TestProtocol.h> … … 1046 1036 */ 1047 1037 1048 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 1049 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1038 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1050 1039 1051 1040 #import "TestProtocolConfiguration.h" … … 1153 1142 */ 1154 1143 1155 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 1156 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1144 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1157 1145 1158 1146 #import "TestProtocolInternal.h" … … 1194 1182 */ 1195 1183 1196 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 1197 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1184 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1198 1185 1199 1186 #import <Foundation/Foundation.h> … … 1203 1190 1204 1191 1205 1206 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {1207 TestProtocolPlatformAll,1208 TestProtocolPlatformGeneric,1209 TestProtocolPlatformIOS,1210 TestProtocolPlatformMacOS,1211 };1212 1192 1213 1193 … … 1266 1246 */ 1267 1247 1268 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 1269 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1248 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1270 1249 1271 1250 #import "TestProtocol.h" … … 1307 1286 */ 1308 1287 1309 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 1310 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1288 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1311 1289 1312 1290 #import "TestProtocol.h" … … 1318 1296 Optional<ObjCEnumType> fromProtocolString(const String& value); 1319 1297 1320 inline String toProtocolString(TestProtocolPlatform value)1321 {1322 switch(value) {1323 case TestProtocolPlatformAll:1324 return "all"_s;1325 case TestProtocolPlatformGeneric:1326 return "generic"_s;1327 case TestProtocolPlatformIOS:1328 return "ios"_s;1329 case TestProtocolPlatformMacOS:1330 return "macos"_s;1331 }1332 }1333 1334 template<>1335 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)1336 {1337 if (value == "all")1338 return TestProtocolPlatformAll;1339 if (value == "generic")1340 return TestProtocolPlatformGeneric;1341 if (value == "ios")1342 return TestProtocolPlatformIOS;1343 if (value == "macos")1344 return TestProtocolPlatformMacOS;1345 return WTF::nullopt;1346 }1347 1348 1298 1349 1299 … … 1380 1330 */ 1381 1331 1382 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 1383 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1332 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1384 1333 1385 1334 #import "TestProtocolTypeConversions.h" … … 1438 1387 */ 1439 1388 1440 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json 1441 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1389 // DO NOT EDIT THIS FILE. It is automatically generated from domains-with-varying-command-sizes.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1442 1390 1443 1391 #import "TestProtocolInternal.h" -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/enum-values.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // TypeDomain … … 46 45 InspectorBackend.registerEventDomainDispatcher = InspectorBackend.registerDispatcher.bind(InspectorBackend, "EventDomain"); 47 46 InspectorBackend.activateDomain("EventDomain", null); 48 ### End File: InspectorBackendCommands.js 47 ### End File: InspectorBackendCommands.js.in 49 48 50 49 ### Begin File: TestAlternateBackendDispatchers.h … … 76 75 */ 77 76 78 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 79 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 77 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 80 78 81 79 #pragma once … … 137 135 */ 138 136 139 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 140 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 137 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 141 138 142 139 #pragma once … … 179 176 private: 180 177 AlternateCommandDomainBackendDispatcher* m_alternateDispatcher { nullptr }; 181 #endif 178 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 182 179 private: 183 180 CommandDomainBackendDispatcher(BackendDispatcher&, CommandDomainBackendDispatcherHandler*); … … 216 213 */ 217 214 218 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 219 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 215 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 220 216 221 217 #include "config.h" … … 229 225 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 230 226 #include "TestAlternateBackendDispatchers.h" 231 #endif 227 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 232 228 233 229 namespace Inspector { … … 254 250 message->getObject("params"_s, parameters); 255 251 256 if (method == "commandWithEnumReturnValue") 252 if (method == "commandWithEnumReturnValue") { 257 253 commandWithEnumReturnValue(requestId, WTFMove(parameters)); 258 else 259 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'CommandDomain." + method + "' was not found"); 254 return; 255 } 256 257 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'CommandDomain." + method + "' was not found"); 260 258 } 261 259 … … 267 265 return; 268 266 } 269 #endif 267 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 270 268 271 269 ErrorString error; … … 315 313 */ 316 314 317 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 318 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 315 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 319 316 320 317 #pragma once … … 374 371 */ 375 372 376 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 377 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 373 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 378 374 379 375 #include "config.h" … … 428 424 */ 429 425 430 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 431 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 426 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 432 427 433 428 #pragma once … … 465 460 466 461 namespace TypeDomain { 467 /* */ 462 468 463 enum class TypeDomainEnum { 469 464 Shared = 0, … … 472 467 Blue = 3, 473 468 }; // enum class TypeDomainEnum 469 474 470 } // TypeDomain 475 471 … … 532 528 */ 533 529 534 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 535 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 530 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 536 531 537 532 #include "config.h" … … 564 559 565 560 // Enums in the 'TypeDomain' Domain 561 566 562 template<> 567 563 Optional<Inspector::Protocol::TypeDomain::TypeDomainEnum> parseEnumValueFromString<Inspector::Protocol::TypeDomain::TypeDomainEnum>(const String& protocolString) … … 580 576 } 581 577 582 583 578 } // namespace TestHelpers 584 579 … … 619 614 */ 620 615 621 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 622 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 616 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 623 617 624 618 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 671 665 */ 672 666 673 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 674 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 667 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 675 668 676 669 #import "config.h" … … 705 698 } 706 699 707 708 700 } // namespace Inspector 709 701 … … 738 730 */ 739 731 740 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 741 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 732 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 742 733 743 734 #import <WebInspector/TestProtocol.h> … … 780 771 */ 781 772 782 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 783 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 773 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 784 774 785 775 #import "TestProtocolConfiguration.h" … … 876 866 */ 877 867 878 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 879 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 868 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 880 869 881 870 #import "TestProtocolInternal.h" … … 946 935 */ 947 936 948 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 949 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 937 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 950 938 951 939 #import <Foundation/Foundation.h> … … 954 942 955 943 956 957 958 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {959 TestProtocolPlatformAll,960 TestProtocolPlatformGeneric,961 TestProtocolPlatformIOS,962 TestProtocolPlatformMacOS,963 };964 944 965 945 … … 1016 996 */ 1017 997 1018 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 1019 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 998 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1020 999 1021 1000 #import "TestProtocol.h" … … 1059 1038 */ 1060 1039 1061 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 1062 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1040 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1063 1041 1064 1042 #import "TestProtocol.h" … … 1069 1047 template<typename ObjCEnumType> 1070 1048 Optional<ObjCEnumType> fromProtocolString(const String& value); 1071 1072 inline String toProtocolString(TestProtocolPlatform value)1073 {1074 switch(value) {1075 case TestProtocolPlatformAll:1076 return "all"_s;1077 case TestProtocolPlatformGeneric:1078 return "generic"_s;1079 case TestProtocolPlatformIOS:1080 return "ios"_s;1081 case TestProtocolPlatformMacOS:1082 return "macos"_s;1083 }1084 }1085 1086 template<>1087 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)1088 {1089 if (value == "all")1090 return TestProtocolPlatformAll;1091 if (value == "generic")1092 return TestProtocolPlatformGeneric;1093 if (value == "ios")1094 return TestProtocolPlatformIOS;1095 if (value == "macos")1096 return TestProtocolPlatformMacOS;1097 return WTF::nullopt;1098 }1099 1100 1049 1101 1050 inline String toProtocolString(TestProtocolTypeDomainEnum value) … … 1159 1108 */ 1160 1109 1161 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 1162 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1110 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1163 1111 1164 1112 #import "TestProtocolTypeConversions.h" … … 1219 1167 */ 1220 1168 1221 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json 1222 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1169 // DO NOT EDIT THIS FILE. It is automatically generated from enum-values.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1223 1170 1224 1171 #import "TestProtocolInternal.h" -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/event-targetType-matching-domain-debuggableType.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Domain … … 36 35 InspectorBackend.registerDomainDispatcher = InspectorBackend.registerDispatcher.bind(InspectorBackend, "Domain"); 37 36 InspectorBackend.activateDomain("Domain", ["page"]); 38 ### End File: InspectorBackendCommands.js 37 ### End File: InspectorBackendCommands.js.in 39 38 40 39 ### Begin File: TestAlternateBackendDispatchers.h … … 66 65 */ 67 66 68 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 69 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 67 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 70 68 71 69 #pragma once … … 127 125 */ 128 126 129 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 130 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 127 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 131 128 132 129 #pragma once … … 162 159 private: 163 160 AlternateDomainBackendDispatcher* m_alternateDispatcher { nullptr }; 164 #endif 161 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 165 162 private: 166 163 DomainBackendDispatcher(BackendDispatcher&, DomainBackendDispatcherHandler*); … … 199 196 */ 200 197 201 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 202 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 198 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 203 199 204 200 #include "config.h" … … 212 208 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 213 209 #include "TestAlternateBackendDispatchers.h" 214 #endif 210 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 215 211 216 212 namespace Inspector { … … 237 233 message->getObject("params"_s, parameters); 238 234 239 if (method == "Command") 235 if (method == "Command") { 240 236 Command(requestId, WTFMove(parameters)); 241 else 242 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Domain." + method + "' was not found"); 237 return; 238 } 239 240 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Domain." + method + "' was not found"); 243 241 } 244 242 … … 250 248 return; 251 249 } 252 #endif 250 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 253 251 254 252 ErrorString error; … … 294 292 */ 295 293 296 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 297 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 294 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 298 295 299 296 #pragma once … … 347 344 */ 348 345 349 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 350 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 346 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 351 347 352 348 #include "config.h" … … 398 394 */ 399 395 400 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 401 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 396 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 402 397 403 398 #pragma once … … 453 448 */ 454 449 455 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 456 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 450 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 457 451 458 452 #include "config.h" … … 502 496 */ 503 497 504 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 505 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 498 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 506 499 507 500 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 554 547 */ 555 548 556 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 557 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 549 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 558 550 559 551 #import "config.h" … … 586 578 } 587 579 588 589 580 } // namespace Inspector 590 581 … … 619 610 */ 620 611 621 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 622 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 612 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 623 613 624 614 #import <WebInspector/TestProtocol.h> … … 661 651 */ 662 652 663 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 664 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 653 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 665 654 666 655 #import "TestProtocolConfiguration.h" … … 757 746 */ 758 747 759 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 760 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 748 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 761 749 762 750 #import "TestProtocolInternal.h" … … 824 812 */ 825 813 826 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 827 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 814 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 828 815 829 816 #import <Foundation/Foundation.h> … … 833 820 834 821 835 836 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {837 TestProtocolPlatformAll,838 TestProtocolPlatformGeneric,839 TestProtocolPlatformIOS,840 TestProtocolPlatformMacOS,841 };842 822 843 823 … … 888 868 */ 889 869 890 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 891 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 870 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 892 871 893 872 #import "TestProtocol.h" … … 931 910 */ 932 911 933 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 934 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 912 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 935 913 936 914 #import "TestProtocol.h" … … 942 920 Optional<ObjCEnumType> fromProtocolString(const String& value); 943 921 944 inline String toProtocolString(TestProtocolPlatform value)945 {946 switch(value) {947 case TestProtocolPlatformAll:948 return "all"_s;949 case TestProtocolPlatformGeneric:950 return "generic"_s;951 case TestProtocolPlatformIOS:952 return "ios"_s;953 case TestProtocolPlatformMacOS:954 return "macos"_s;955 }956 }957 958 template<>959 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)960 {961 if (value == "all")962 return TestProtocolPlatformAll;963 if (value == "generic")964 return TestProtocolPlatformGeneric;965 if (value == "ios")966 return TestProtocolPlatformIOS;967 if (value == "macos")968 return TestProtocolPlatformMacOS;969 return WTF::nullopt;970 }971 972 922 } // namespace Inspector 973 923 … … 1002 952 */ 1003 953 1004 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 1005 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 954 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1006 955 1007 956 #import "TestProtocolTypeConversions.h" … … 1048 997 */ 1049 998 1050 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json 1051 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 999 // DO NOT EDIT THIS FILE. It is automatically generated from event-targetType-matching-domain-debuggableType.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1052 1000 1053 1001 #import "TestProtocolInternal.h" -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/events-with-optional-parameters.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Database … … 36 35 InspectorBackend.registerDatabaseDispatcher = InspectorBackend.registerDispatcher.bind(InspectorBackend, "Database"); 37 36 InspectorBackend.activateDomain("Database", null); 38 ### End File: InspectorBackendCommands.js 37 ### End File: InspectorBackendCommands.js.in 39 38 40 39 ### Begin File: TestAlternateBackendDispatchers.h … … 66 65 */ 67 66 68 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 69 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 67 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 70 68 71 69 #pragma once … … 123 121 */ 124 122 125 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 126 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 123 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 127 124 128 125 #pragma once … … 169 166 */ 170 167 171 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 172 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 168 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 173 169 174 170 #include "config.h" … … 182 178 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 183 179 #include "TestAlternateBackendDispatchers.h" 184 #endif 180 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 185 181 186 182 namespace Inspector { … … 220 216 */ 221 217 222 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 223 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 218 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 224 219 225 220 #pragma once … … 274 269 */ 275 270 276 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 277 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 271 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 278 272 279 273 #include "config.h" … … 364 358 */ 365 359 366 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 367 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 360 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 368 361 369 362 #pragma once … … 397 390 398 391 namespace Database { 392 399 393 /* Database error. */ 400 394 class Error : public JSON::ObjectBase { … … 500 494 */ 501 495 502 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 503 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 496 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 504 497 505 498 #include "config.h" … … 549 542 */ 550 543 551 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 552 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 544 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 553 545 554 546 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 592 584 */ 593 585 594 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 595 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 586 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 596 587 597 588 #import "config.h" … … 636 627 */ 637 628 638 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 639 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 629 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 640 630 641 631 #import <WebInspector/TestProtocol.h> … … 677 667 */ 678 668 679 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 680 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 669 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 681 670 682 671 #import "TestProtocolConfiguration.h" … … 753 742 */ 754 743 755 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 756 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 744 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 757 745 758 746 #import "TestProtocolInternal.h" … … 878 866 */ 879 867 880 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 881 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 868 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 882 869 883 870 #import <Foundation/Foundation.h> … … 887 874 888 875 @class TestProtocolDatabaseError; 889 890 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {891 TestProtocolPlatformAll,892 TestProtocolPlatformGeneric,893 TestProtocolPlatformIOS,894 TestProtocolPlatformMacOS,895 };896 897 876 898 877 … … 948 927 */ 949 928 950 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 951 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 929 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 952 930 953 931 #import "TestProtocol.h" … … 991 969 */ 992 970 993 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 994 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 971 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 995 972 996 973 #import "TestProtocol.h" … … 1002 979 Optional<ObjCEnumType> fromProtocolString(const String& value); 1003 980 1004 inline String toProtocolString(TestProtocolPlatform value)1005 {1006 switch(value) {1007 case TestProtocolPlatformAll:1008 return "all"_s;1009 case TestProtocolPlatformGeneric:1010 return "generic"_s;1011 case TestProtocolPlatformIOS:1012 return "ios"_s;1013 case TestProtocolPlatformMacOS:1014 return "macos"_s;1015 }1016 }1017 1018 template<>1019 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)1020 {1021 if (value == "all")1022 return TestProtocolPlatformAll;1023 if (value == "generic")1024 return TestProtocolPlatformGeneric;1025 if (value == "ios")1026 return TestProtocolPlatformIOS;1027 if (value == "macos")1028 return TestProtocolPlatformMacOS;1029 return WTF::nullopt;1030 }1031 1032 981 1033 982 … … 1064 1013 */ 1065 1014 1066 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 1067 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1015 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1068 1016 1069 1017 #import "TestProtocolTypeConversions.h" … … 1143 1091 */ 1144 1092 1145 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json 1146 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1093 // DO NOT EDIT THIS FILE. It is automatically generated from events-with-optional-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1147 1094 1148 1095 #import "TestProtocolInternal.h" … … 1155 1102 using namespace Inspector; 1156 1103 1157 1158 1104 @implementation TestProtocolDatabaseError 1159 1105 -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/generate-domains-with-feature-guards.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Network1 … … 40 39 InspectorBackend.registerNetwork3Dispatcher = InspectorBackend.registerDispatcher.bind(InspectorBackend, "Network3"); 41 40 InspectorBackend.activateDomain("Network3", null); 42 ### End File: InspectorBackendCommands.js 41 ### End File: InspectorBackendCommands.js.in 43 42 44 43 ### Begin File: TestAlternateBackendDispatchers.h … … 70 69 */ 71 70 72 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 73 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 71 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 74 72 75 73 #pragma once … … 92 90 93 91 94 #if PLATFORM(WEB_COMMANDS)95 92 class AlternateNetwork1BackendDispatcher : public AlternateBackendDispatcher { 96 93 public: … … 98 95 virtual void loadResource(long callId) = 0; 99 96 }; 100 #endif // PLATFORM(WEB_COMMANDS)101 97 102 98 } // namespace Inspector … … 133 129 */ 134 130 135 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 136 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 131 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 137 132 138 133 #pragma once … … 147 142 148 143 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 149 #if PLATFORM(WEB_COMMANDS)150 144 class AlternateNetwork1BackendDispatcher; 151 #endif // PLATFORM(WEB_COMMANDS)152 145 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 153 146 154 #if PLATFORM(WEB_COMMANDS)155 147 class Network1BackendDispatcherHandler { 156 148 public: … … 159 151 virtual ~Network1BackendDispatcherHandler(); 160 152 }; 161 #endif // PLATFORM(WEB_COMMANDS) 162 163 #if PLATFORM(WEB_COMMANDS) 153 164 154 class Network1BackendDispatcher final : public SupplementalBackendDispatcher { 165 155 public: … … 173 163 private: 174 164 AlternateNetwork1BackendDispatcher* m_alternateDispatcher { nullptr }; 175 #endif 165 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 176 166 private: 177 167 Network1BackendDispatcher(BackendDispatcher&, Network1BackendDispatcherHandler*); 178 168 Network1BackendDispatcherHandler* m_agent { nullptr }; 179 169 }; 180 #endif // PLATFORM(WEB_COMMANDS)181 170 182 171 } // namespace Inspector … … 211 200 */ 212 201 213 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 214 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 202 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 215 203 216 204 #include "config.h" … … 224 212 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 225 213 #include "TestAlternateBackendDispatchers.h" 226 #endif 214 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 227 215 228 216 namespace Inspector { 229 217 230 #if PLATFORM(WEB_COMMANDS)231 218 Network1BackendDispatcherHandler::~Network1BackendDispatcherHandler() { } 232 #endif // PLATFORM(WEB_COMMANDS) 233 234 #if PLATFORM(WEB_COMMANDS) 219 235 220 Ref<Network1BackendDispatcher> Network1BackendDispatcher::create(BackendDispatcher& backendDispatcher, Network1BackendDispatcherHandler* agent) 236 221 { … … 252 237 message->getObject("params"_s, parameters); 253 238 254 if (method == "loadResource") 239 if (method == "loadResource") { 255 240 loadResource(requestId, WTFMove(parameters)); 256 else 257 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Network1." + method + "' was not found"); 241 return; 242 } 243 244 m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, "'Network1." + method + "' was not found"); 258 245 } 259 246 … … 265 252 return; 266 253 } 267 #endif 254 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 268 255 269 256 ErrorString error; … … 276 263 m_backendDispatcher->reportProtocolError(BackendDispatcher::ServerError, WTFMove(error)); 277 264 } 278 #endif // PLATFORM(WEB_COMMANDS)279 265 280 266 } // namespace Inspector … … 310 296 */ 311 297 312 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 313 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 298 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 314 299 315 300 #pragma once … … 323 308 class FrontendRouter; 324 309 325 #if PLATFORM(WEB_EVENTS)326 310 class Network3FrontendDispatcher { 327 311 WTF_MAKE_FAST_ALLOCATED; … … 332 316 FrontendRouter& m_frontendRouter; 333 317 }; 334 #endif // PLATFORM(WEB_EVENTS)335 318 336 319 } // namespace Inspector … … 365 348 */ 366 349 367 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 368 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 350 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 369 351 370 352 #include "config.h" … … 376 358 namespace Inspector { 377 359 378 #if PLATFORM(WEB_EVENTS)379 360 void Network3FrontendDispatcher::resourceLoaded() 380 361 { … … 384 365 m_frontendRouter.sendEvent(jsonMessage->toJSONString()); 385 366 } 386 #endif // PLATFORM(WEB_EVENTS)387 367 388 368 } // namespace Inspector … … 418 398 */ 419 399 420 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 421 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 400 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 422 401 423 402 #pragma once … … 435 414 436 415 // Forward declarations. 437 #if PLATFORM(WEB_TYPES)438 416 namespace Network2 { 439 417 class NetworkError; 440 418 } // Network2 441 #endif // PLATFORM(WEB_TYPES)442 419 // End of forward declarations. 443 420 … … 445 422 446 423 447 #if PLATFORM(WEB_TYPES)448 424 namespace Network2 { 425 449 426 class NetworkError : public JSON::ObjectBase { 450 427 public: … … 513 490 514 491 } // Network2 515 #endif // PLATFORM(WEB_TYPES)516 492 517 493 … … 550 526 */ 551 527 552 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 553 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 528 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 554 529 555 530 #include "config.h" … … 599 574 */ 600 575 601 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 602 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 576 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 603 577 604 578 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 610 584 611 585 612 #if PLATFORM(WEB_COMMANDS)613 586 class ObjCInspectorNetwork1BackendDispatcher final : public AlternateNetwork1BackendDispatcher { 614 587 WTF_MAKE_FAST_ALLOCATED; … … 619 592 RetainPtr<id<TestProtocolNetwork1DomainHandler>> m_delegate; 620 593 }; 621 #endif // PLATFORM(WEB_COMMANDS)622 594 623 595 } // namespace Inspector … … 653 625 */ 654 626 655 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 656 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 627 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 657 628 658 629 #import "config.h" … … 665 636 namespace Inspector { 666 637 667 #if PLATFORM(WEB_COMMANDS)668 638 void ObjCInspectorNetwork1BackendDispatcher::loadResource(long requestId) 669 639 { … … 686 656 } 687 657 688 #endif // PLATFORM(WEB_COMMANDS)689 690 658 } // namespace Inspector 691 659 … … 720 688 */ 721 689 722 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 723 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 690 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 724 691 725 692 #import <WebInspector/TestProtocol.h> … … 762 729 */ 763 730 764 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 765 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 731 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 766 732 767 733 #import "TestProtocolConfiguration.h" … … 858 824 */ 859 825 860 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 861 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 826 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 862 827 863 828 #import "TestProtocolInternal.h" … … 925 890 */ 926 891 927 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 928 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 892 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 929 893 930 894 #import <Foundation/Foundation.h> … … 934 898 935 899 @class TestProtocolNetwork2NetworkError; 936 937 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {938 TestProtocolPlatformAll,939 TestProtocolPlatformGeneric,940 TestProtocolPlatformIOS,941 TestProtocolPlatformMacOS,942 };943 944 900 945 901 … … 997 953 */ 998 954 999 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 1000 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 955 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1001 956 1002 957 #import "TestProtocol.h" … … 1040 995 */ 1041 996 1042 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 1043 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 997 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1044 998 1045 999 #import "TestProtocol.h" … … 1051 1005 Optional<ObjCEnumType> fromProtocolString(const String& value); 1052 1006 1053 inline String toProtocolString(TestProtocolPlatform value)1054 {1055 switch(value) {1056 case TestProtocolPlatformAll:1057 return "all"_s;1058 case TestProtocolPlatformGeneric:1059 return "generic"_s;1060 case TestProtocolPlatformIOS:1061 return "ios"_s;1062 case TestProtocolPlatformMacOS:1063 return "macos"_s;1064 }1065 }1066 1067 template<>1068 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)1069 {1070 if (value == "all")1071 return TestProtocolPlatformAll;1072 if (value == "generic")1073 return TestProtocolPlatformGeneric;1074 if (value == "ios")1075 return TestProtocolPlatformIOS;1076 if (value == "macos")1077 return TestProtocolPlatformMacOS;1078 return WTF::nullopt;1079 }1080 1081 1007 1082 1008 … … 1113 1039 */ 1114 1040 1115 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 1116 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1041 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1117 1042 1118 1043 #import "TestProtocolTypeConversions.h" … … 1171 1096 */ 1172 1097 1173 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json 1174 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1098 // DO NOT EDIT THIS FILE. It is automatically generated from generate-domains-with-feature-guards.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1175 1099 1176 1100 #import "TestProtocolInternal.h" … … 1183 1107 using namespace Inspector; 1184 1108 1185 1186 1109 @implementation TestProtocolNetwork2NetworkError 1187 1110 -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/same-type-id-different-domain.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 ### End File: InspectorBackendCommands.js 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 30 ### End File: InspectorBackendCommands.js.in 32 31 33 32 ### Begin File: TestAlternateBackendDispatchers.h … … 59 58 */ 60 59 61 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 62 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 60 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 63 61 64 62 #pragma once … … 116 114 */ 117 115 118 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 119 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 116 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 120 117 121 118 #pragma once … … 162 159 */ 163 160 164 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 165 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 161 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 166 162 167 163 #include "config.h" … … 175 171 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 176 172 #include "TestAlternateBackendDispatchers.h" 177 #endif 173 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 178 174 179 175 namespace Inspector { … … 213 209 */ 214 210 215 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 216 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 211 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 217 212 218 213 #pragma once … … 257 252 */ 258 253 259 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 260 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 254 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 261 255 262 256 #include "config.h" … … 300 294 */ 301 295 302 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 303 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 296 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 304 297 305 298 #pragma once … … 365 358 */ 366 359 367 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 368 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 360 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 369 361 370 362 #include "config.h" … … 414 406 */ 415 407 416 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 417 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 408 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 418 409 419 410 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 457 448 */ 458 449 459 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 460 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 450 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 461 451 462 452 #import "config.h" … … 501 491 */ 502 492 503 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 504 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 493 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 505 494 506 495 #import <WebInspector/TestProtocol.h> … … 541 530 */ 542 531 543 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 544 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 532 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 545 533 546 534 #import "TestProtocolConfiguration.h" … … 608 596 */ 609 597 610 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 611 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 598 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 612 599 613 600 #import "TestProtocolInternal.h" … … 649 636 */ 650 637 651 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 652 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 638 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 653 639 654 640 #import <Foundation/Foundation.h> … … 659 645 660 646 661 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {662 TestProtocolPlatformAll,663 TestProtocolPlatformGeneric,664 TestProtocolPlatformIOS,665 TestProtocolPlatformMacOS,666 };667 668 647 669 648 … … 707 686 */ 708 687 709 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 710 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 688 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 711 689 712 690 #import "TestProtocol.h" … … 748 726 */ 749 727 750 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 751 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 728 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 752 729 753 730 #import "TestProtocol.h" … … 759 736 Optional<ObjCEnumType> fromProtocolString(const String& value); 760 737 761 inline String toProtocolString(TestProtocolPlatform value)762 {763 switch(value) {764 case TestProtocolPlatformAll:765 return "all"_s;766 case TestProtocolPlatformGeneric:767 return "generic"_s;768 case TestProtocolPlatformIOS:769 return "ios"_s;770 case TestProtocolPlatformMacOS:771 return "macos"_s;772 }773 }774 775 template<>776 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)777 {778 if (value == "all")779 return TestProtocolPlatformAll;780 if (value == "generic")781 return TestProtocolPlatformGeneric;782 if (value == "ios")783 return TestProtocolPlatformIOS;784 if (value == "macos")785 return TestProtocolPlatformMacOS;786 return WTF::nullopt;787 }788 789 738 790 739 … … 823 772 */ 824 773 825 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 826 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 774 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 827 775 828 776 #import "TestProtocolTypeConversions.h" … … 895 843 */ 896 844 897 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json 898 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 845 // DO NOT EDIT THIS FILE. It is automatically generated from same-type-id-different-domain.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 899 846 900 847 #import "TestProtocolInternal.h" -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 ### End File: InspectorBackendCommands.js 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 30 ### End File: InspectorBackendCommands.js.in 32 31 33 32 ### Begin File: TestAlternateBackendDispatchers.h … … 59 58 */ 60 59 61 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 62 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 60 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 63 61 64 62 #pragma once … … 116 114 */ 117 115 118 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 119 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 116 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 120 117 121 118 #pragma once … … 162 159 */ 163 160 164 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 165 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 161 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 166 162 167 163 #include "config.h" … … 175 171 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 176 172 #include "TestAlternateBackendDispatchers.h" 177 #endif 173 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 178 174 179 175 namespace Inspector { … … 213 209 */ 214 210 215 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 216 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 211 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 217 212 218 213 #pragma once … … 257 252 */ 258 253 259 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 260 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 254 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 261 255 262 256 #include "config.h" … … 300 294 */ 301 295 302 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 303 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 296 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 304 297 305 298 #pragma once … … 337 330 338 331 namespace Runtime { 332 339 333 /* Key path. */ 340 334 class KeyPath : public JSON::ObjectBase { … … 458 452 */ 459 453 460 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 461 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 454 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 462 455 463 456 #include "config.h" … … 484 477 485 478 // Enums in the 'Runtime' Domain 479 486 480 template<> 487 481 Optional<Inspector::Protocol::Runtime::KeyPath::Type> parseEnumValueFromString<Inspector::Protocol::Runtime::KeyPath::Type>(const String& protocolString) … … 499 493 } 500 494 501 502 495 } // namespace TestHelpers 503 496 … … 538 531 */ 539 532 540 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 541 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 533 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 542 534 543 535 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 581 573 */ 582 574 583 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 584 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 575 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 585 576 586 577 #import "config.h" … … 625 616 */ 626 617 627 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 628 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 618 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 629 619 630 620 #import <WebInspector/TestProtocol.h> … … 665 655 */ 666 656 667 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 668 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 657 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 669 658 670 659 #import "TestProtocolConfiguration.h" … … 732 721 */ 733 722 734 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 735 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 723 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 736 724 737 725 #import "TestProtocolInternal.h" … … 773 761 */ 774 762 775 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 776 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 763 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 777 764 778 765 #import <Foundation/Foundation.h> … … 782 769 783 770 @class TestProtocolRuntimeKeyPath; 784 785 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {786 TestProtocolPlatformAll,787 TestProtocolPlatformGeneric,788 TestProtocolPlatformIOS,789 TestProtocolPlatformMacOS,790 };791 792 771 793 772 typedef NS_ENUM(NSInteger, TestProtocolRuntimeKeyPathType) { … … 796 775 TestProtocolRuntimeKeyPathTypeArray, 797 776 }; 798 799 777 800 778 __attribute__((visibility ("default"))) … … 845 823 */ 846 824 847 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 848 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 825 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 849 826 850 827 #import "TestProtocol.h" … … 886 863 */ 887 864 888 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 889 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 865 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 890 866 891 867 #import "TestProtocol.h" … … 896 872 template<typename ObjCEnumType> 897 873 Optional<ObjCEnumType> fromProtocolString(const String& value); 898 899 inline String toProtocolString(TestProtocolPlatform value)900 {901 switch(value) {902 case TestProtocolPlatformAll:903 return "all"_s;904 case TestProtocolPlatformGeneric:905 return "generic"_s;906 case TestProtocolPlatformIOS:907 return "ios"_s;908 case TestProtocolPlatformMacOS:909 return "macos"_s;910 }911 }912 913 template<>914 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)915 {916 if (value == "all")917 return TestProtocolPlatformAll;918 if (value == "generic")919 return TestProtocolPlatformGeneric;920 if (value == "ios")921 return TestProtocolPlatformIOS;922 if (value == "macos")923 return TestProtocolPlatformMacOS;924 return WTF::nullopt;925 }926 927 874 928 875 inline String toProtocolString(TestProtocolRuntimeKeyPathType value) … … 982 929 */ 983 930 984 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 985 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 931 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 986 932 987 933 #import "TestProtocolTypeConversions.h" … … 1040 986 */ 1041 987 1042 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json 1043 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 988 // DO NOT EDIT THIS FILE. It is automatically generated from shadowed-optional-type-setters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1044 989 1045 990 #import "TestProtocolInternal.h" … … 1052 997 using namespace Inspector; 1053 998 1054 1055 999 @implementation TestProtocolRuntimeKeyPath 1056 1000 -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/should-strip-comments.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 ### End File: InspectorBackendCommands.js 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 30 ### End File: InspectorBackendCommands.js.in 32 31 33 32 ### Begin File: TestAlternateBackendDispatchers.h … … 59 58 */ 60 59 61 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 62 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 60 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 63 61 64 62 #pragma once … … 116 114 */ 117 115 118 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 119 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 116 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 120 117 121 118 #pragma once … … 162 159 */ 163 160 164 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 165 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 161 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 166 162 167 163 #include "config.h" … … 175 171 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 176 172 #include "TestAlternateBackendDispatchers.h" 177 #endif 173 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 178 174 179 175 namespace Inspector { … … 213 209 */ 214 210 215 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 216 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 211 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 217 212 218 213 #pragma once … … 257 252 */ 258 253 259 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 260 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 254 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 261 255 262 256 #include "config.h" … … 300 294 */ 301 295 302 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 303 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 296 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 304 297 305 298 #pragma once … … 355 348 */ 356 349 357 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 358 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 350 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 359 351 360 352 #include "config.h" … … 404 396 */ 405 397 406 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 407 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 398 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 408 399 409 400 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 447 438 */ 448 439 449 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 450 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 440 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 451 441 452 442 #import "config.h" … … 491 481 */ 492 482 493 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 494 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 483 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 495 484 496 485 #import <WebInspector/TestProtocol.h> … … 531 520 */ 532 521 533 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 534 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 522 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 535 523 536 524 #import "TestProtocolConfiguration.h" … … 598 586 */ 599 587 600 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 601 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 588 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 602 589 603 590 #import "TestProtocolInternal.h" … … 639 626 */ 640 627 641 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 642 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 628 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 643 629 644 630 #import <Foundation/Foundation.h> … … 649 635 650 636 651 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {652 TestProtocolPlatformAll,653 TestProtocolPlatformGeneric,654 TestProtocolPlatformIOS,655 TestProtocolPlatformMacOS,656 };657 658 637 659 638 … … 697 676 */ 698 677 699 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 700 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 678 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 701 679 702 680 #import "TestProtocol.h" … … 738 716 */ 739 717 740 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 741 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 718 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 742 719 743 720 #import "TestProtocol.h" … … 749 726 Optional<ObjCEnumType> fromProtocolString(const String& value); 750 727 751 inline String toProtocolString(TestProtocolPlatform value)752 {753 switch(value) {754 case TestProtocolPlatformAll:755 return "all"_s;756 case TestProtocolPlatformGeneric:757 return "generic"_s;758 case TestProtocolPlatformIOS:759 return "ios"_s;760 case TestProtocolPlatformMacOS:761 return "macos"_s;762 }763 }764 765 template<>766 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)767 {768 if (value == "all")769 return TestProtocolPlatformAll;770 if (value == "generic")771 return TestProtocolPlatformGeneric;772 if (value == "ios")773 return TestProtocolPlatformIOS;774 if (value == "macos")775 return TestProtocolPlatformMacOS;776 return WTF::nullopt;777 }778 779 728 } // namespace Inspector 780 729 … … 809 758 */ 810 759 811 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 812 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 760 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 813 761 814 762 #import "TestProtocolTypeConversions.h" … … 855 803 */ 856 804 857 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json 858 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 805 // DO NOT EDIT THIS FILE. It is automatically generated from should-strip-comments.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 859 806 860 807 #import "TestProtocolInternal.h" -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-aliased-primitive-type.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 ### End File: InspectorBackendCommands.js 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 30 ### End File: InspectorBackendCommands.js.in 32 31 33 32 ### Begin File: TestAlternateBackendDispatchers.h … … 59 58 */ 60 59 61 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 62 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 60 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 63 61 64 62 #pragma once … … 116 114 */ 117 115 118 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 119 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 116 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 120 117 121 118 #pragma once … … 162 159 */ 163 160 164 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 165 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 161 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 166 162 167 163 #include "config.h" … … 175 171 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 176 172 #include "TestAlternateBackendDispatchers.h" 177 #endif 173 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 178 174 179 175 namespace Inspector { … … 213 209 */ 214 210 215 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 216 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 211 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 217 212 218 213 #pragma once … … 257 252 */ 258 253 259 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 260 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 254 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 261 255 262 256 #include "config.h" … … 300 294 */ 301 295 302 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 303 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 296 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 304 297 305 298 #pragma once … … 360 353 */ 361 354 362 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 363 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 355 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 364 356 365 357 #include "config.h" … … 409 401 */ 410 402 411 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 412 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 403 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 413 404 414 405 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 452 443 */ 453 444 454 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 455 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 445 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 456 446 457 447 #import "config.h" … … 496 486 */ 497 487 498 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 499 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 488 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 500 489 501 490 #import <WebInspector/TestProtocol.h> … … 536 525 */ 537 526 538 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 539 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 527 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 540 528 541 529 #import "TestProtocolConfiguration.h" … … 603 591 */ 604 592 605 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 606 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 593 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 607 594 608 595 #import "TestProtocolInternal.h" … … 644 631 */ 645 632 646 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 647 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 633 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 648 634 649 635 #import <Foundation/Foundation.h> … … 654 640 655 641 656 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {657 TestProtocolPlatformAll,658 TestProtocolPlatformGeneric,659 TestProtocolPlatformIOS,660 TestProtocolPlatformMacOS,661 };662 663 642 664 643 … … 702 681 */ 703 682 704 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 705 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 683 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 706 684 707 685 #import "TestProtocol.h" … … 743 721 */ 744 722 745 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 746 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 723 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 747 724 748 725 #import "TestProtocol.h" … … 754 731 Optional<ObjCEnumType> fromProtocolString(const String& value); 755 732 756 inline String toProtocolString(TestProtocolPlatform value)757 {758 switch(value) {759 case TestProtocolPlatformAll:760 return "all"_s;761 case TestProtocolPlatformGeneric:762 return "generic"_s;763 case TestProtocolPlatformIOS:764 return "ios"_s;765 case TestProtocolPlatformMacOS:766 return "macos"_s;767 }768 }769 770 template<>771 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)772 {773 if (value == "all")774 return TestProtocolPlatformAll;775 if (value == "generic")776 return TestProtocolPlatformGeneric;777 if (value == "ios")778 return TestProtocolPlatformIOS;779 if (value == "macos")780 return TestProtocolPlatformMacOS;781 return WTF::nullopt;782 }783 784 733 785 734 … … 816 765 */ 817 766 818 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 819 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 767 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 820 768 821 769 #import "TestProtocolTypeConversions.h" … … 874 822 */ 875 823 876 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json 877 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 824 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-aliased-primitive-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 878 825 879 826 #import "TestProtocolInternal.h" -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-array-type.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Debugger … … 34 33 InspectorBackend.registerEnum("Debugger.Reason", {Died: "Died", Fainted: "Fainted", Hungry: "Hungry"}); 35 34 InspectorBackend.activateDomain("Debugger", null); 36 ### End File: InspectorBackendCommands.js 35 ### End File: InspectorBackendCommands.js.in 37 36 38 37 ### Begin File: TestAlternateBackendDispatchers.h … … 64 63 */ 65 64 66 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 67 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 65 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 68 66 69 67 #pragma once … … 121 119 */ 122 120 123 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 124 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 121 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 125 122 126 123 #pragma once … … 167 164 */ 168 165 169 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 170 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 166 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 171 167 172 168 #include "config.h" … … 180 176 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 181 177 #include "TestAlternateBackendDispatchers.h" 182 #endif 178 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 183 179 184 180 namespace Inspector { … … 218 214 */ 219 215 220 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 221 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 216 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 222 217 223 218 #pragma once … … 262 257 */ 263 258 264 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 265 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 259 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 266 260 267 261 #include "config.h" … … 305 299 */ 306 300 307 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 308 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 301 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 309 302 310 303 #pragma once … … 355 348 356 349 namespace Debugger { 357 /* */ 350 358 351 enum class Reason { 359 352 Died = 0, … … 361 354 Hungry = 2, 362 355 }; // enum class Reason 356 363 357 } // Debugger 364 358 … … 421 415 */ 422 416 423 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 424 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 417 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 425 418 426 419 #include "config.h" … … 447 440 448 441 // Enums in the 'Debugger' Domain 442 449 443 template<> 450 444 Optional<Inspector::Protocol::Debugger::Reason> parseEnumValueFromString<Inspector::Protocol::Debugger::Reason>(const String& protocolString) … … 462 456 } 463 457 464 465 458 } // namespace TestHelpers 466 459 … … 501 494 */ 502 495 503 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 504 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 496 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 505 497 506 498 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 544 536 */ 545 537 546 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 547 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 538 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 548 539 549 540 #import "config.h" … … 588 579 */ 589 580 590 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 591 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 581 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 592 582 593 583 #import <WebInspector/TestProtocol.h> … … 628 618 */ 629 619 630 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 631 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 620 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 632 621 633 622 #import "TestProtocolConfiguration.h" … … 695 684 */ 696 685 697 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 698 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 686 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 699 687 700 688 #import "TestProtocolInternal.h" … … 736 724 */ 737 725 738 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 739 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 726 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 740 727 741 728 #import <Foundation/Foundation.h> … … 744 731 745 732 746 747 748 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {749 TestProtocolPlatformAll,750 TestProtocolPlatformGeneric,751 TestProtocolPlatformIOS,752 TestProtocolPlatformMacOS,753 };754 733 755 734 … … 799 778 */ 800 779 801 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 802 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 780 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 803 781 804 782 #import "TestProtocol.h" … … 840 818 */ 841 819 842 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 843 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 820 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 844 821 845 822 #import "TestProtocol.h" … … 850 827 template<typename ObjCEnumType> 851 828 Optional<ObjCEnumType> fromProtocolString(const String& value); 852 853 inline String toProtocolString(TestProtocolPlatform value)854 {855 switch(value) {856 case TestProtocolPlatformAll:857 return "all"_s;858 case TestProtocolPlatformGeneric:859 return "generic"_s;860 case TestProtocolPlatformIOS:861 return "ios"_s;862 case TestProtocolPlatformMacOS:863 return "macos"_s;864 }865 }866 867 template<>868 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)869 {870 if (value == "all")871 return TestProtocolPlatformAll;872 if (value == "generic")873 return TestProtocolPlatformGeneric;874 if (value == "ios")875 return TestProtocolPlatformIOS;876 if (value == "macos")877 return TestProtocolPlatformMacOS;878 return WTF::nullopt;879 }880 881 829 882 830 inline String toProtocolString(TestProtocolDebuggerReason value) … … 938 886 */ 939 887 940 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 941 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 888 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 942 889 943 890 #import "TestProtocolTypeConversions.h" … … 1054 1001 */ 1055 1002 1056 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json 1057 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1003 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-array-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1058 1004 1059 1005 #import "TestProtocolInternal.h" -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-enum-type.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Runtime … … 35 34 InspectorBackend.registerEnum("Runtime.TwoLeggedAnimals", {Ducks: "Ducks", Hens: "Hens", Crows: "Crows", Flamingos: "Flamingos"}); 36 35 InspectorBackend.activateDomain("Runtime", null); 37 ### End File: InspectorBackendCommands.js 36 ### End File: InspectorBackendCommands.js.in 38 37 39 38 ### Begin File: TestAlternateBackendDispatchers.h … … 65 64 */ 66 65 67 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 68 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 66 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 69 67 70 68 #pragma once … … 122 120 */ 123 121 124 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 125 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 122 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 126 123 127 124 #pragma once … … 168 165 */ 169 166 170 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 171 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 167 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 172 168 173 169 #include "config.h" … … 181 177 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 182 178 #include "TestAlternateBackendDispatchers.h" 183 #endif 179 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 184 180 185 181 namespace Inspector { … … 219 215 */ 220 216 221 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 222 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 217 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 223 218 224 219 #pragma once … … 263 258 */ 264 259 265 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 266 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 260 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 267 261 268 262 #include "config.h" … … 306 300 */ 307 301 308 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 309 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 302 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 310 303 311 304 #pragma once … … 344 337 345 338 namespace Runtime { 346 /* */ 339 347 340 enum class FarmAnimals { 348 341 Pigs = 0, … … 351 344 Hens = 3, 352 345 }; // enum class FarmAnimals 353 /* */ 346 354 347 enum class TwoLeggedAnimals { 355 348 Ducks = 4, … … 358 351 Flamingos = 6, 359 352 }; // enum class TwoLeggedAnimals 353 360 354 } // Runtime 361 355 … … 424 418 */ 425 419 426 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 427 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 420 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 428 421 429 422 #include "config.h" … … 454 447 455 448 // Enums in the 'Runtime' Domain 449 456 450 template<> 457 451 Optional<Inspector::Protocol::Runtime::FarmAnimals> parseEnumValueFromString<Inspector::Protocol::Runtime::FarmAnimals>(const String& protocolString) … … 486 480 } 487 481 488 489 482 } // namespace TestHelpers 490 483 … … 525 518 */ 526 519 527 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 528 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 520 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 529 521 530 522 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 568 560 */ 569 561 570 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 571 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 562 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 572 563 573 564 #import "config.h" … … 612 603 */ 613 604 614 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 615 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 605 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 616 606 617 607 #import <WebInspector/TestProtocol.h> … … 652 642 */ 653 643 654 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 655 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 644 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 656 645 657 646 #import "TestProtocolConfiguration.h" … … 719 708 */ 720 709 721 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 722 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 710 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 723 711 724 712 #import "TestProtocolInternal.h" … … 760 748 */ 761 749 762 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 763 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 750 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 764 751 765 752 #import <Foundation/Foundation.h> … … 768 755 769 756 770 771 772 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {773 TestProtocolPlatformAll,774 TestProtocolPlatformGeneric,775 TestProtocolPlatformIOS,776 TestProtocolPlatformMacOS,777 };778 757 779 758 … … 831 810 */ 832 811 833 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 834 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 812 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 835 813 836 814 #import "TestProtocol.h" … … 872 850 */ 873 851 874 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 875 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 852 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 876 853 877 854 #import "TestProtocol.h" … … 882 859 template<typename ObjCEnumType> 883 860 Optional<ObjCEnumType> fromProtocolString(const String& value); 884 885 inline String toProtocolString(TestProtocolPlatform value)886 {887 switch(value) {888 case TestProtocolPlatformAll:889 return "all"_s;890 case TestProtocolPlatformGeneric:891 return "generic"_s;892 case TestProtocolPlatformIOS:893 return "ios"_s;894 case TestProtocolPlatformMacOS:895 return "macos"_s;896 }897 }898 899 template<>900 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)901 {902 if (value == "all")903 return TestProtocolPlatformAll;904 if (value == "generic")905 return TestProtocolPlatformGeneric;906 if (value == "ios")907 return TestProtocolPlatformIOS;908 if (value == "macos")909 return TestProtocolPlatformMacOS;910 return WTF::nullopt;911 }912 913 861 914 862 inline String toProtocolString(TestProtocolRuntimeFarmAnimals value) … … 1000 948 */ 1001 949 1002 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 1003 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 950 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1004 951 1005 952 #import "TestProtocolTypeConversions.h" … … 1069 1016 */ 1070 1017 1071 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json 1072 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1018 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-enum-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1073 1019 1074 1020 #import "TestProtocolInternal.h" -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-object-type.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 1 ### Begin File: InspectorBackendCommands.js.in 2 2 /* 3 3 * Copyright (C) 2013 Google Inc. All rights reserved. … … 27 27 */ 28 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 29 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Database … … 36 35 InspectorBackend.registerEnum("Database.ParameterBundleDirectionality", {LTR: "LTR", RTL: "RTL"}); 37 36 InspectorBackend.activateDomain("Database", null); 38 ### End File: InspectorBackendCommands.js 37 ### End File: InspectorBackendCommands.js.in 39 38 40 39 ### Begin File: TestAlternateBackendDispatchers.h … … 66 65 */ 67 66 68 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 69 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 67 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 70 68 71 69 #pragma once … … 123 121 */ 124 122 125 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 126 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 123 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 127 124 128 125 #pragma once … … 169 166 */ 170 167 171 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 172 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 168 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 173 169 174 170 #include "config.h" … … 182 178 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 183 179 #include "TestAlternateBackendDispatchers.h" 184 #endif 180 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 185 181 186 182 namespace Inspector { … … 220 216 */ 221 217 222 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 223 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 218 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 224 219 225 220 #pragma once … … 264 259 */ 265 260 266 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 267 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 261 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 268 262 269 263 #include "config.h" … … 307 301 */ 308 302 309 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 310 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 303 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 311 304 312 305 #pragma once … … 357 350 358 351 namespace Database { 352 359 353 /* Database error. */ 360 354 class Error : public JSON::ObjectBase { … … 430 424 Right = 3, 431 425 }; // enum class MouseButton 426 432 427 class OptionalParameterBundle : public JSON::ObjectBase { 433 428 public: … … 756 751 757 752 namespace Test { 753 758 754 class ParameterBundle : public JSON::ObjectBase { 759 755 public: … … 948 944 */ 949 945 950 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 951 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 946 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 952 947 953 948 #include "config.h" … … 977 972 978 973 // Enums in the 'Database' Domain 974 979 975 template<> 980 976 Optional<Inspector::Protocol::Database::MouseButton> parseEnumValueFromString<Inspector::Protocol::Database::MouseButton>(const String& protocolString) … … 1021 1017 } 1022 1018 1023 1024 1019 // Enums in the 'Test' Domain 1020 1025 1021 template<> 1026 1022 Optional<Inspector::Protocol::Test::ParameterBundle::Directionality> parseEnumValueFromString<Inspector::Protocol::Test::ParameterBundle::Directionality>(const String& protocolString) … … 1036 1032 return WTF::nullopt; 1037 1033 } 1038 1039 1034 1040 1035 } // namespace TestHelpers … … 1076 1071 */ 1077 1072 1078 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 1079 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1073 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1080 1074 1081 1075 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 1119 1113 */ 1120 1114 1121 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 1122 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1115 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1123 1116 1124 1117 #import "config.h" … … 1163 1156 */ 1164 1157 1165 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 1166 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1158 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1167 1159 1168 1160 #import <WebInspector/TestProtocol.h> … … 1203 1195 */ 1204 1196 1205 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 1206 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1197 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1207 1198 1208 1199 #import "TestProtocolConfiguration.h" … … 1270 1261 */ 1271 1262 1272 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 1273 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1263 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1274 1264 1275 1265 #import "TestProtocolInternal.h" … … 1311 1301 */ 1312 1302 1313 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 1314 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1303 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1315 1304 1316 1305 #import <Foundation/Foundation.h> … … 1326 1315 @class TestProtocolTestParameterBundle; 1327 1316 1328 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {1329 TestProtocolPlatformAll,1330 TestProtocolPlatformGeneric,1331 TestProtocolPlatformIOS,1332 TestProtocolPlatformMacOS,1333 };1334 1335 1336 1317 typedef NS_ENUM(NSInteger, TestProtocolDatabaseMouseButton) { 1337 1318 TestProtocolDatabaseMouseButtonNone, … … 1350 1331 TestProtocolDatabaseParameterBundleDirectionalityRTL, 1351 1332 }; 1352 1353 1333 typedef NS_ENUM(NSInteger, TestProtocolTestParameterBundleDirectionality) { 1354 1334 TestProtocolTestParameterBundleDirectionalityLTR, 1355 1335 TestProtocolTestParameterBundleDirectionalityRTL, 1356 1336 }; 1357 1358 1337 1359 1338 __attribute__((visibility ("default"))) … … 1414 1393 - (instancetype)initWithProtocolObject:(RWIProtocolJSONObject *)jsonObject; 1415 1394 @end 1416 1417 1395 __attribute__((visibility ("default"))) 1418 1396 @interface TestProtocolTestParameterBundle : RWIProtocolJSONObject … … 1467 1445 */ 1468 1446 1469 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 1470 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1447 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1471 1448 1472 1449 #import "TestProtocol.h" … … 1508 1485 */ 1509 1486 1510 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 1511 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1487 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1512 1488 1513 1489 #import "TestProtocol.h" … … 1518 1494 template<typename ObjCEnumType> 1519 1495 Optional<ObjCEnumType> fromProtocolString(const String& value); 1520 1521 inline String toProtocolString(TestProtocolPlatform value)1522 {1523 switch(value) {1524 case TestProtocolPlatformAll:1525 return "all"_s;1526 case TestProtocolPlatformGeneric:1527 return "generic"_s;1528 case TestProtocolPlatformIOS:1529 return "ios"_s;1530 case TestProtocolPlatformMacOS:1531 return "macos"_s;1532 }1533 }1534 1535 template<>1536 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)1537 {1538 if (value == "all")1539 return TestProtocolPlatformAll;1540 if (value == "generic")1541 return TestProtocolPlatformGeneric;1542 if (value == "ios")1543 return TestProtocolPlatformIOS;1544 if (value == "macos")1545 return TestProtocolPlatformMacOS;1546 return WTF::nullopt;1547 }1548 1549 1496 1550 1497 inline String toProtocolString(TestProtocolDatabaseMouseButton value) … … 1615 1562 return WTF::nullopt; 1616 1563 } 1617 1618 1564 1619 1565 inline String toProtocolString(TestProtocolTestParameterBundleDirectionality value) … … 1669 1615 */ 1670 1616 1671 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 1672 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1617 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1673 1618 1674 1619 #import "TestProtocolTypeConversions.h" … … 1785 1730 */ 1786 1731 1787 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json 1788 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1732 // DO NOT EDIT THIS FILE. It is automatically generated from type-declaration-object-type.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1789 1733 1790 1734 #import "TestProtocolInternal.h" … … 1796 1740 1797 1741 using namespace Inspector; 1798 1799 1742 1800 1743 @implementation TestProtocolDatabaseError … … 2293 2236 @end 2294 2237 2295 2296 2238 @implementation TestProtocolTestParameterBundle 2297 2239 -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // Test … … 35 34 InspectorBackend.registerEnum("Test.CastedAnimals", {Ducks: "Ducks", Hens: "Hens", Crows: "Crows", Flamingos: "Flamingos"}); 36 35 InspectorBackend.activateDomain("Test", null); 37 ### End File: InspectorBackendCommands.js 36 ### End File: InspectorBackendCommands.js.in 38 37 39 38 ### Begin File: TestAlternateBackendDispatchers.h … … 65 64 */ 66 65 67 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 68 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 66 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 69 67 70 68 #pragma once … … 122 120 */ 123 121 124 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 125 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 122 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 126 123 127 124 #pragma once … … 168 165 */ 169 166 170 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 171 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 167 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 172 168 173 169 #include "config.h" … … 181 177 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 182 178 #include "TestAlternateBackendDispatchers.h" 183 #endif 179 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 184 180 185 181 namespace Inspector { … … 219 215 */ 220 216 221 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 222 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 217 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 223 218 224 219 #pragma once … … 263 258 */ 264 259 265 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 266 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 260 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 267 261 268 262 #include "config.h" … … 306 300 */ 307 301 308 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 309 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 302 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 310 303 311 304 #pragma once … … 352 345 353 346 namespace Test { 347 354 348 /* A dummy type that requires runtime casts, and forces non-primitive referenced types to also emit runtime cast helpers. */ 355 349 class TypeNeedingCast : public JSON::ObjectBase { … … 445 439 }; 446 440 447 /* */448 441 enum class UncastedAnimals { 449 442 Pigs = 4, … … 452 445 Hens = 1, 453 446 }; // enum class UncastedAnimals 454 /* */ 447 455 448 enum class CastedAnimals { 456 449 Ducks = 0, … … 459 452 Flamingos = 3, 460 453 }; // enum class CastedAnimals 454 461 455 class RecursiveObject1 : public JSON::ObjectBase { 462 456 public: … … 641 635 */ 642 636 643 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 644 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 637 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 645 638 646 639 #include "config.h" … … 671 664 672 665 // Enums in the 'Test' Domain 666 673 667 template<> 674 668 Optional<Inspector::Protocol::Test::UncastedAnimals> parseEnumValueFromString<Inspector::Protocol::Test::UncastedAnimals>(const String& protocolString) … … 702 696 return WTF::nullopt; 703 697 } 704 705 698 706 699 } // namespace TestHelpers … … 853 846 */ 854 847 855 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 856 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 848 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 857 849 858 850 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 896 888 */ 897 889 898 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 899 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 890 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 900 891 901 892 #import "config.h" … … 940 931 */ 941 932 942 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 943 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 933 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 944 934 945 935 #import <WebInspector/TestProtocol.h> … … 980 970 */ 981 971 982 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 983 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 972 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 984 973 985 974 #import "TestProtocolConfiguration.h" … … 1047 1036 */ 1048 1037 1049 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 1050 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1038 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1051 1039 1052 1040 #import "TestProtocolInternal.h" … … 1088 1076 */ 1089 1077 1090 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 1091 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1078 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1092 1079 1093 1080 #import <Foundation/Foundation.h> … … 1099 1086 @class TestProtocolTestRecursiveObject1; 1100 1087 @class TestProtocolTestRecursiveObject2; 1101 1102 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {1103 TestProtocolPlatformAll,1104 TestProtocolPlatformGeneric,1105 TestProtocolPlatformIOS,1106 TestProtocolPlatformMacOS,1107 };1108 1109 1088 1110 1089 typedef NS_ENUM(NSInteger, TestProtocolTestUncastedAnimals) { … … 1121 1100 TestProtocolTestCastedAnimalsFlamingos, 1122 1101 }; 1123 1124 1102 1125 1103 __attribute__((visibility ("default"))) … … 1186 1164 */ 1187 1165 1188 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 1189 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1166 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1190 1167 1191 1168 #import "TestProtocol.h" … … 1227 1204 */ 1228 1205 1229 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 1230 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1206 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1231 1207 1232 1208 #import "TestProtocol.h" … … 1237 1213 template<typename ObjCEnumType> 1238 1214 Optional<ObjCEnumType> fromProtocolString(const String& value); 1239 1240 inline String toProtocolString(TestProtocolPlatform value)1241 {1242 switch(value) {1243 case TestProtocolPlatformAll:1244 return "all"_s;1245 case TestProtocolPlatformGeneric:1246 return "generic"_s;1247 case TestProtocolPlatformIOS:1248 return "ios"_s;1249 case TestProtocolPlatformMacOS:1250 return "macos"_s;1251 }1252 }1253 1254 template<>1255 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)1256 {1257 if (value == "all")1258 return TestProtocolPlatformAll;1259 if (value == "generic")1260 return TestProtocolPlatformGeneric;1261 if (value == "ios")1262 return TestProtocolPlatformIOS;1263 if (value == "macos")1264 return TestProtocolPlatformMacOS;1265 return WTF::nullopt;1266 }1267 1268 1215 1269 1216 inline String toProtocolString(TestProtocolTestUncastedAnimals value) … … 1355 1302 */ 1356 1303 1357 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 1358 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1304 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1359 1305 1360 1306 #import "TestProtocolTypeConversions.h" … … 1459 1405 */ 1460 1406 1461 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json 1462 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1407 // DO NOT EDIT THIS FILE. It is automatically generated from type-requiring-runtime-casts.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1463 1408 1464 1409 #import "TestProtocolInternal.h" … … 1470 1415 1471 1416 using namespace Inspector; 1472 1473 1417 1474 1418 @implementation TestProtocolTestTypeNeedingCast -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/type-with-open-parameters.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 ### End File: InspectorBackendCommands.js 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 30 ### End File: InspectorBackendCommands.js.in 32 31 33 32 ### Begin File: TestAlternateBackendDispatchers.h … … 59 58 */ 60 59 61 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 62 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 60 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 63 61 64 62 #pragma once … … 116 114 */ 117 115 118 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 119 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 116 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 120 117 121 118 #pragma once … … 162 159 */ 163 160 164 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 165 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 161 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 166 162 167 163 #include "config.h" … … 175 171 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 176 172 #include "TestAlternateBackendDispatchers.h" 177 #endif 173 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 178 174 179 175 namespace Inspector { … … 213 209 */ 214 210 215 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 216 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 211 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 217 212 218 213 #pragma once … … 257 252 */ 258 253 259 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 260 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 254 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 261 255 262 256 #include "config.h" … … 300 294 */ 301 295 302 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 303 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 296 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 304 297 305 298 #pragma once … … 327 320 328 321 namespace Test { 322 329 323 class NoOpenParameters : public JSON::ObjectBase { 330 324 public: … … 497 491 */ 498 492 499 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 500 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 493 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 501 494 502 495 #include "config.h" … … 546 539 */ 547 540 548 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 549 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 541 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 550 542 551 543 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 589 581 */ 590 582 591 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 592 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 583 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 593 584 594 585 #import "config.h" … … 633 624 */ 634 625 635 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 636 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 626 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 637 627 638 628 #import <WebInspector/TestProtocol.h> … … 673 663 */ 674 664 675 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 676 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 665 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 677 666 678 667 #import "TestProtocolConfiguration.h" … … 740 729 */ 741 730 742 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 743 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 731 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 744 732 745 733 #import "TestProtocolInternal.h" … … 781 769 */ 782 770 783 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 784 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 771 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 785 772 786 773 #import <Foundation/Foundation.h> … … 791 778 @class TestProtocolTestNoOpenParameters; 792 779 @class TestProtocolTestOpenParameters; 793 794 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {795 TestProtocolPlatformAll,796 TestProtocolPlatformGeneric,797 TestProtocolPlatformIOS,798 TestProtocolPlatformMacOS,799 };800 801 780 802 781 … … 857 836 */ 858 837 859 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 860 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 838 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 861 839 862 840 #import "TestProtocol.h" … … 898 876 */ 899 877 900 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 901 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 878 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 902 879 903 880 #import "TestProtocol.h" … … 909 886 Optional<ObjCEnumType> fromProtocolString(const String& value); 910 887 911 inline String toProtocolString(TestProtocolPlatform value)912 {913 switch(value) {914 case TestProtocolPlatformAll:915 return "all"_s;916 case TestProtocolPlatformGeneric:917 return "generic"_s;918 case TestProtocolPlatformIOS:919 return "ios"_s;920 case TestProtocolPlatformMacOS:921 return "macos"_s;922 }923 }924 925 template<>926 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)927 {928 if (value == "all")929 return TestProtocolPlatformAll;930 if (value == "generic")931 return TestProtocolPlatformGeneric;932 if (value == "ios")933 return TestProtocolPlatformIOS;934 if (value == "macos")935 return TestProtocolPlatformMacOS;936 return WTF::nullopt;937 }938 939 888 940 889 … … 971 920 */ 972 921 973 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 974 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 922 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 975 923 976 924 #import "TestProtocolTypeConversions.h" … … 1036 984 */ 1037 985 1038 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json 1039 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 986 // DO NOT EDIT THIS FILE. It is automatically generated from type-with-open-parameters.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1040 987 1041 988 #import "TestProtocolInternal.h" … … 1048 995 using namespace Inspector; 1049 996 1050 1051 997 @implementation TestProtocolTestNoOpenParameters 1052 998 -
trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/version.json-result
r262202 r262203 1 ### Begin File: InspectorBackendCommands.js 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 30 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 1 ### Begin File: InspectorBackendCommands.js.in 2 /* 3 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013-2016 Apple Inc. All rights reserved. 5 * Copyright (C) 2014 University of Washington. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 26 * THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 31 30 32 31 // VersionDomain … … 34 33 InspectorBackend.registerVersion("VersionDomain", 42); 35 34 InspectorBackend.activateDomain("VersionDomain", null); 36 ### End File: InspectorBackendCommands.js 35 ### End File: InspectorBackendCommands.js.in 37 36 38 37 ### Begin File: TestAlternateBackendDispatchers.h … … 64 63 */ 65 64 66 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 67 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 65 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 68 66 69 67 #pragma once … … 121 119 */ 122 120 123 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 124 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 121 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 125 122 126 123 #pragma once … … 167 164 */ 168 165 169 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 170 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 166 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 171 167 172 168 #include "config.h" … … 180 176 #if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 181 177 #include "TestAlternateBackendDispatchers.h" 182 #endif 178 #endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS) 183 179 184 180 namespace Inspector { … … 218 214 */ 219 215 220 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 221 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 216 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 222 217 223 218 #pragma once … … 262 257 */ 263 258 264 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 265 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 259 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 266 260 267 261 #include "config.h" … … 305 299 */ 306 300 307 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 308 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 301 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 309 302 310 303 #pragma once … … 365 358 */ 366 359 367 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 368 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 360 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 369 361 370 362 #include "config.h" … … 414 406 */ 415 407 416 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 417 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 408 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 418 409 419 410 #include <JavaScriptCore/InspectorAlternateBackendDispatchers.h> … … 457 448 */ 458 449 459 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 460 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 450 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 461 451 462 452 #import "config.h" … … 501 491 */ 502 492 503 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 504 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 493 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 505 494 506 495 #import <WebInspector/TestProtocol.h> … … 541 530 */ 542 531 543 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 544 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 532 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 545 533 546 534 #import "TestProtocolConfiguration.h" … … 608 596 */ 609 597 610 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 611 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 598 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 612 599 613 600 #import "TestProtocolInternal.h" … … 649 636 */ 650 637 651 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 652 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 638 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 653 639 654 640 #import <Foundation/Foundation.h> … … 659 645 660 646 661 typedef NS_ENUM(NSInteger, TestProtocolPlatform) {662 TestProtocolPlatformAll,663 TestProtocolPlatformGeneric,664 TestProtocolPlatformIOS,665 TestProtocolPlatformMacOS,666 };667 668 647 669 648 … … 707 686 */ 708 687 709 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 710 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 688 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 711 689 712 690 #import "TestProtocol.h" … … 748 726 */ 749 727 750 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 751 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 728 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 752 729 753 730 #import "TestProtocol.h" … … 759 736 Optional<ObjCEnumType> fromProtocolString(const String& value); 760 737 761 inline String toProtocolString(TestProtocolPlatform value)762 {763 switch(value) {764 case TestProtocolPlatformAll:765 return "all"_s;766 case TestProtocolPlatformGeneric:767 return "generic"_s;768 case TestProtocolPlatformIOS:769 return "ios"_s;770 case TestProtocolPlatformMacOS:771 return "macos"_s;772 }773 }774 775 template<>776 inline Optional<TestProtocolPlatform> fromProtocolString(const String& value)777 {778 if (value == "all")779 return TestProtocolPlatformAll;780 if (value == "generic")781 return TestProtocolPlatformGeneric;782 if (value == "ios")783 return TestProtocolPlatformIOS;784 if (value == "macos")785 return TestProtocolPlatformMacOS;786 return WTF::nullopt;787 }788 789 738 } // namespace Inspector 790 739 … … 819 768 */ 820 769 821 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 822 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 770 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 823 771 824 772 #import "TestProtocolTypeConversions.h" … … 865 813 */ 866 814 867 // DO NOT EDIT THIS FILE. It is automatically generated from version.json 868 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 815 // DO NOT EDIT THIS FILE. It is automatically generated from version.json by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 869 816 870 817 #import "TestProtocolInternal.h" -
trunk/Source/WebCore/ChangeLog
r262194 r262203 1 2020-05-27 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: replace `featureGuard` and `availability` with a combined `condition` that accepts any macro 4 https://bugs.webkit.org/show_bug.cgi?id=210014 5 6 Reviewed by Brian Burg. 7 8 Previously, the generated InspectorBackendCommands.js would include code for things that the 9 backend doesn't actually support. By using actual macros and preprocessing that file, we can 10 ensure that the frontend doesn't incorrectly think that something is supported by the page 11 being inspected: 12 - the `Canvas` commands and events related to shader programs/pipelines should only exist 13 when the corresponding context type exists, namely `ENABLE(WEBGL)` and `ENABLE(WEBGPU)`. 14 - iOS doesn't support showing rulers, so create a variant of `DOM.setInspectModeEnabled` 15 that only exists for `PLATFORM(IOS_FAMILY)` that doesn't have the `showRulers` optional 16 parameter, as well as removing `Page.setShowRulers` entirely. 17 - setting the forced appearance should only be possible if dark mode is supported. 18 - web archives only exist if CF is used. 19 20 * inspector/InspectorInstrumentation.h: 21 * inspector/InspectorInstrumentation.cpp: 22 * inspector/agents/InspectorCanvasAgent.h: 23 * inspector/agents/InspectorCanvasAgent.cpp: 24 (WebCore::InspectorCanvasAgent::InspectorCanvasAgent): 25 (WebCore::InspectorCanvasAgent::enable): 26 (WebCore::InspectorCanvasAgent::startRecording): 27 (WebCore::InspectorCanvasAgent::reset): 28 (WebCore::InspectorCanvasAgent::unbindCanvas): 29 * inspector/InspectorShaderProgram.h: 30 * inspector/InspectorShaderProgram.cpp: 31 (WebCore::InspectorShaderProgram::requestShaderSource): 32 (WebCore::InspectorShaderProgram::updateShader): 33 * inspector/agents/InspectorDOMAgent.h: 34 * inspector/agents/InspectorDOMAgent.cpp: 35 (WebCore::InspectorDOMAgent::setInspectModeEnabled): 36 * inspector/agents/InspectorPageAgent.h: 37 * inspector/agents/InspectorPageAgent.cpp: 38 (WebCore::InspectorPageAgent::enable): 39 (WebCore::InspectorPageAgent::disable): 40 (WebCore::InspectorPageAgent::setForcedAppearance): 41 (WebCore::InspectorPageAgent::archive): 42 43 * Configurations/FeatureDefines.xcconfig: 44 Add `ENABLE_WEB_ARCHIVE` since it's always enabled in wtf/PlatformEnableCocoa.h. 45 46 * inspector/InspectorFrontendHost.idl: 47 Drive-by: replace the `#if` with the IDL `[Conditional=]`. 48 1 49 2020-05-27 Miguel Gomez <magomez@igalia.com> 2 50 -
trunk/Source/WebCore/Configurations/FeatureDefines.xcconfig
r261845 r262203 378 378 ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN_macosx = ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN; 379 379 380 ENABLE_WEB_ARCHIVE = ENABLE_WEB_ARCHIVE; 381 380 382 ENABLE_WEBDRIVER_MOUSE_INTERACTIONS = $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS_$(WK_PLATFORM_NAME)); 381 383 ENABLE_WEBDRIVER_MOUSE_INTERACTIONS_macosx = ENABLE_WEBDRIVER_MOUSE_INTERACTIONS; … … 420 422 ENABLE_XSLT = ENABLE_XSLT; 421 423 422 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_EDITABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FULLSCREEN_API) $(ENABLE_PICTURE_IN_PICTURE_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_GPU_PROCESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INSPECTOR_TELEMETRY) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NETWORK_CACHE_STALE_WHILE_REVALIDATE) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFSCREEN_CANVAS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB DRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEBXR) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);424 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_EDITABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FULLSCREEN_API) $(ENABLE_PICTURE_IN_PICTURE_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_GPU_PROCESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INSPECTOR_TELEMETRY) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NETWORK_CACHE_STALE_WHILE_REVALIDATE) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFSCREEN_CANVAS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_ARCHIVE) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEBXR) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT); -
trunk/Source/WebCore/PAL/ChangeLog
r262084 r262203 1 2020-05-27 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: replace `featureGuard` and `availability` with a combined `condition` that accepts any macro 4 https://bugs.webkit.org/show_bug.cgi?id=210014 5 6 Reviewed by Brian Burg. 7 8 Previously, the generated InspectorBackendCommands.js would include code for things that the 9 backend doesn't actually support. By using actual macros and preprocessing that file, we can 10 ensure that the frontend doesn't incorrectly think that something is supported by the page 11 being inspected: 12 - the `Canvas` commands and events related to shader programs/pipelines should only exist 13 when the corresponding context type exists, namely `ENABLE(WEBGL)` and `ENABLE(WEBGPU)`. 14 - iOS doesn't support showing rulers, so create a variant of `DOM.setInspectModeEnabled` 15 that only exists for `PLATFORM(IOS_FAMILY)` that doesn't have the `showRulers` optional 16 parameter, as well as removing `Page.setShowRulers` entirely. 17 - setting the forced appearance should only be possible if dark mode is supported. 18 - web archives only exist if CF is used. 19 20 * Configurations/FeatureDefines.xcconfig: 21 Add `ENABLE_WEB_ARCHIVE` since it's always enabled in wtf/PlatformEnableCocoa.h. 22 1 23 2020-05-22 Alex Christensen <achristensen@webkit.org> 2 24 -
trunk/Source/WebCore/PAL/Configurations/FeatureDefines.xcconfig
r261845 r262203 378 378 ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN_macosx = ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN; 379 379 380 ENABLE_WEB_ARCHIVE = ENABLE_WEB_ARCHIVE; 381 380 382 ENABLE_WEBDRIVER_MOUSE_INTERACTIONS = $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS_$(WK_PLATFORM_NAME)); 381 383 ENABLE_WEBDRIVER_MOUSE_INTERACTIONS_macosx = ENABLE_WEBDRIVER_MOUSE_INTERACTIONS; … … 420 422 ENABLE_XSLT = ENABLE_XSLT; 421 423 422 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_EDITABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FULLSCREEN_API) $(ENABLE_PICTURE_IN_PICTURE_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_GPU_PROCESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INSPECTOR_TELEMETRY) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NETWORK_CACHE_STALE_WHILE_REVALIDATE) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFSCREEN_CANVAS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB DRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEBXR) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);424 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_EDITABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FULLSCREEN_API) $(ENABLE_PICTURE_IN_PICTURE_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_GPU_PROCESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INSPECTOR_TELEMETRY) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NETWORK_CACHE_STALE_WHILE_REVALIDATE) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFSCREEN_CANVAS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_ARCHIVE) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEBXR) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT); -
trunk/Source/WebCore/inspector/InspectorFrontendHost.idl
r257835 r262203 94 94 95 95 readonly attribute boolean supportsDiagnosticLogging; 96 #if ENABLE_INSPECTOR_TELEMETRY 97 void logDiagnosticEvent(DOMString eventName, DOMString content); 98 #endif 96 [Conditional=INSPECTOR_TELEMETRY] void logDiagnosticEvent(DOMString eventName, DOMString content); 99 97 }; 100 98 -
trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp
r261104 r262203 794 794 } 795 795 796 #if ENABLE(DARK_MODE_CSS) || HAVE(OS_DARK_MODE_SUPPORT) 796 797 void InspectorInstrumentation::defaultAppearanceDidChangeImpl(InstrumentingAgents& instrumentingAgents, bool useDarkAppearance) 797 798 { … … 799 800 inspectorPageAgent->defaultAppearanceDidChange(useDarkAppearance); 800 801 } 802 #endif 801 803 802 804 void InspectorInstrumentation::willDestroyCachedResourceImpl(CachedResource& cachedResource) -
trunk/Source/WebCore/inspector/InspectorInstrumentation.h
r261104 r262203 230 230 static void frameScheduledNavigation(Frame&, Seconds delay); 231 231 static void frameClearedScheduledNavigation(Frame&); 232 #if ENABLE(DARK_MODE_CSS) || HAVE(OS_DARK_MODE_SUPPORT) 232 233 static void defaultAppearanceDidChange(Page&, bool useDarkAppearance); 234 #endif 233 235 static void willDestroyCachedResource(CachedResource&); 234 236 … … 435 437 static void frameScheduledNavigationImpl(InstrumentingAgents&, Frame&, Seconds delay); 436 438 static void frameClearedScheduledNavigationImpl(InstrumentingAgents&, Frame&); 439 #if ENABLE(DARK_MODE_CSS) || HAVE(OS_DARK_MODE_SUPPORT) 437 440 static void defaultAppearanceDidChangeImpl(InstrumentingAgents&, bool useDarkAppearance); 441 #endif 438 442 static void willDestroyCachedResourceImpl(CachedResource&); 439 443 … … 1238 1242 } 1239 1243 1244 #if ENABLE(DARK_MODE_CSS) || HAVE(OS_DARK_MODE_SUPPORT) 1240 1245 inline void InspectorInstrumentation::defaultAppearanceDidChange(Page& page, bool useDarkAppearance) 1241 1246 { … … 1243 1248 defaultAppearanceDidChangeImpl(instrumentingAgentsForPage(page), useDarkAppearance); 1244 1249 } 1250 #endif 1245 1251 1246 1252 inline void InspectorInstrumentation::willDestroyCachedResource(CachedResource& cachedResource) -
trunk/Source/WebCore/inspector/InspectorShaderProgram.cpp
r254064 r262203 27 27 #include "InspectorShaderProgram.h" 28 28 29 #if ENABLE(WEBGL) || ENABLE(WEBGPU) 30 29 31 #include "InspectorCanvas.h" 30 32 #include <JavaScriptCore/IdentifiersFactory.h> … … 153 155 String InspectorShaderProgram::requestShaderSource(Inspector::Protocol::Canvas::ShaderType shaderType) 154 156 { 155 #if !ENABLE(WEBGL) && !ENABLE(WEBGPU)156 UNUSED_PARAM(shaderType);157 #endif158 159 157 return WTF::switchOn(m_program, 160 158 #if ENABLE(WEBGL) … … 185 183 bool InspectorShaderProgram::updateShader(Inspector::Protocol::Canvas::ShaderType shaderType, const String& source) 186 184 { 187 #if !ENABLE(WEBGL) && !ENABLE(WEBGPU)188 UNUSED_PARAM(shaderType);189 UNUSED_PARAM(source);190 #endif191 192 185 return WTF::switchOn(m_program, 193 186 #if ENABLE(WEBGL) … … 282 275 283 276 } // namespace WebCore 277 278 #endif // ENABLE(WEBGL) || ENABLE(WEBGPU) -
trunk/Source/WebCore/inspector/InspectorShaderProgram.h
r250874 r262203 25 25 26 26 #pragma once 27 28 #if ENABLE(WEBGL) || ENABLE(WEBGPU) 27 29 28 30 #include <JavaScriptCore/InspectorProtocolObjects.h> … … 100 102 101 103 } // namespace WebCore 104 105 #endif // ENABLE(WEBGL) || ENABLE(WEBGPU) -
trunk/Source/WebCore/inspector/agents/InspectorCanvasAgent.cpp
r253226 r262203 89 89 , m_inspectedPage(context.inspectedPage) 90 90 , m_canvasDestroyedTimer(*this, &InspectorCanvasAgent::canvasDestroyedTimerFired) 91 #if ENABLE(WEBGL) || ENABLE(WEBGPU) 91 92 , m_programDestroyedTimer(*this, &InspectorCanvasAgent::programDestroyedTimerFired) 93 #endif // ENABLE(WEBGL) || ENABLE(WEBGPU) 92 94 { 93 95 } … … 133 135 if (is<GPUCanvasContext>(context)) 134 136 continue; 135 #endif 137 #endif // ENABLE(WEBGPU) 136 138 137 139 if (existsInCurrentPage(context->canvasBase().scriptExecutionContext())) … … 148 150 } 149 151 } 150 #endif 152 #endif // ENABLE(WEBGPU) 151 153 152 154 #if ENABLE(WEBGL) … … 158 160 } 159 161 } 160 #endif 162 #endif // ENABLE(WEBGL) 161 163 162 164 #if ENABLE(WEBGPU) … … 168 170 } 169 171 } 170 #endif 172 #endif // ENABLE(WEBGPU) 171 173 } 172 174 … … 304 306 } 305 307 308 #if ENABLE(WEBGL) || ENABLE(WEBGPU) 306 309 void InspectorCanvasAgent::requestShaderSource(ErrorString& errorString, const String& programId, const String& shaderTypeString, String* outSource) 307 310 { … … 341 344 } 342 345 346 #if ENABLE(WEBGL) 343 347 void InspectorCanvasAgent::setShaderProgramDisabled(ErrorString& errorString, const String& programId, bool disabled) 344 348 { … … 358 362 inspectorProgram->setHighlighted(highlighted); 359 363 } 364 #endif // ENABLE(WEBGL) 365 #endif // ENABLE(WEBGL) || ENABLE(WEBGPU) 360 366 361 367 void InspectorCanvasAgent::frameNavigated(Frame& frame) … … 626 632 return inspectorProgram->highlighted(); 627 633 } 628 #endif 634 #endif // ENABLE(WEBGL) 629 635 630 636 #if ENABLE(WEBGPU) … … 689 695 unbindProgram(*inspectorProgram); 690 696 } 691 #endif 697 #endif // ENABLE(WEBGPU) 692 698 693 699 void InspectorCanvasAgent::startRecording(InspectorCanvas& inspectorCanvas, Inspector::Protocol::Recording::Initiator initiator, RecordingOptions&& recordingOptions) … … 701 707 #if ENABLE(WEBGL) 702 708 && !is<WebGLRenderingContext>(context) 703 #endif 709 #endif // ENABLE(WEBGL) 704 710 #if ENABLE(WEBGL2) 705 711 && !is<WebGL2RenderingContext>(context) 706 #endif 712 #endif // ENABLE(WEBGL2) 707 713 ) 708 714 return; … … 734 740 } 735 741 742 #if ENABLE(WEBGL) || ENABLE(WEBGPU) 736 743 void InspectorCanvasAgent::programDestroyedTimerFired() 737 744 { … … 744 751 m_removedProgramIdentifiers.clear(); 745 752 } 753 #endif // ENABLE(WEBGL) || ENABLE(WEBGPU) 746 754 747 755 void InspectorCanvasAgent::reset() … … 757 765 m_canvasDestroyedTimer.stop(); 758 766 767 #if ENABLE(WEBGL) || ENABLE(WEBGPU) 759 768 m_identifierToInspectorProgram.clear(); 760 769 m_removedProgramIdentifiers.clear(); 761 770 if (m_programDestroyedTimer.isActive()) 762 771 m_programDestroyedTimer.stop(); 772 #endif // ENABLE(WEBGL) || ENABLE(WEBGPU) 763 773 764 774 m_recordingCanvasIdentifiers.clear(); … … 799 809 return inspectorCanvas; 800 810 } 801 #endif 811 #endif // ENABLE(WEBGPU) 802 812 803 813 void InspectorCanvasAgent::unbindCanvas(InspectorCanvas& inspectorCanvas) … … 812 822 for (auto* inspectorProgram : programsToRemove) 813 823 unbindProgram(*inspectorProgram); 814 #endif 824 #endif // ENABLE(WEBGL) 815 825 816 826 if (auto* context = inspectorCanvas.canvasContext()) … … 857 867 return nullptr; 858 868 } 859 #endif 860 869 #endif // ENABLE(WEBGPU) 870 871 #if ENABLE(WEBGL) || ENABLE(WEBGPU) 861 872 void InspectorCanvasAgent::unbindProgram(InspectorShaderProgram& inspectorProgram) 862 873 { … … 892 903 return nullptr; 893 904 } 894 #endif 905 #endif // ENABLE(WEBGL) 895 906 896 907 #if ENABLE(WEBGPU) … … 903 914 return nullptr; 904 915 } 905 #endif 916 #endif // ENABLE(WEBGPU) 917 #endif // ENABLE(WEBGL) || ENABLE(WEBGPU) 906 918 907 919 } // namespace WebCore -
trunk/Source/WebCore/inspector/agents/InspectorCanvasAgent.h
r253226 r262203 44 44 45 45 class CanvasRenderingContext; 46 #if ENABLE(WEBGL) || ENABLE(WEBGPU) 46 47 class InspectorShaderProgram; 47 48 #if ENABLE(WEBGL) 48 49 class WebGLProgram; 49 50 class WebGLRenderingContextBase; 50 #endif 51 #endif // ENABLE(WEBGL) 51 52 #if ENABLE(WEBGPU) 52 53 class GPUCanvasContext; … … 54 55 class WebGPUPipeline; 55 56 class WebGPUSwapChain; 56 #endif 57 #endif // ENABLE(WEBGPU) 58 #endif // ENABLE(WEBGL) || ENABLE(WEBGPU) 57 59 58 60 typedef String ErrorString; … … 80 82 void startRecording(ErrorString&, const String& canvasId, const int* frameCount, const int* memoryLimit) override; 81 83 void stopRecording(ErrorString&, const String& canvasId) override; 84 #if ENABLE(WEBGL) || ENABLE(WEBGPU) 82 85 void requestShaderSource(ErrorString&, const String& programId, const String& shaderType, String* source) override; 83 86 void updateShader(ErrorString&, const String& programId, const String& shaderType, const String& source) override; 87 #if ENABLE(WEBGL) 84 88 void setShaderProgramDisabled(ErrorString&, const String& programId, bool disabled) override; 85 89 void setShaderProgramHighlighted(ErrorString&, const String& programId, bool highlighted) override; 90 #endif // ENABLE(WEBGL) 91 #endif // ENABLE(WEBGL) || ENABLE(WEBGPU) 86 92 87 93 // CanvasObserver … … 105 111 bool isWebGLProgramDisabled(WebGLProgram&); 106 112 bool isWebGLProgramHighlighted(WebGLProgram&); 107 #endif 113 #endif // ENABLE(WEBGL) 108 114 #if ENABLE(WEBGPU) 109 115 void didCreateWebGPUDevice(WebGPUDevice&); … … 112 118 void didCreateWebGPUPipeline(WebGPUDevice&, WebGPUPipeline&); 113 119 void willDestroyWebGPUPipeline(WebGPUPipeline&); 114 #endif 120 #endif // ENABLE(WEBGPU) 115 121 116 122 private: … … 123 129 124 130 void canvasDestroyedTimerFired(); 131 #if ENABLE(WEBGL) || ENABLE(WEBGPU) 125 132 void programDestroyedTimerFired(); 133 #endif // ENABLE(WEBGL) || ENABLE(WEBGPU) 126 134 void reset(); 127 135 … … 129 137 #if ENABLE(WEBGPU) 130 138 InspectorCanvas& bindCanvas(WebGPUDevice&, bool captureBacktrace); 131 #endif 139 #endif // ENABLE(WEBGPU) 132 140 void unbindCanvas(InspectorCanvas&); 133 141 RefPtr<InspectorCanvas> assertInspectorCanvas(ErrorString&, const String& canvasId); … … 135 143 #if ENABLE(WEBGPU) 136 144 RefPtr<InspectorCanvas> findInspectorCanvas(WebGPUDevice&); 137 #endif 145 #endif // ENABLE(WEBGPU) 138 146 147 #if ENABLE(WEBGL) || ENABLE(WEBGPU) 139 148 void unbindProgram(InspectorShaderProgram&); 140 149 RefPtr<InspectorShaderProgram> assertInspectorProgram(ErrorString&, const String& programId); 141 150 #if ENABLE(WEBGL) 142 151 RefPtr<InspectorShaderProgram> findInspectorProgram(WebGLProgram&); 143 #endif 152 #endif // ENABLE(WEBGL) 144 153 #if ENABLE(WEBGPU) 145 154 RefPtr<InspectorShaderProgram> findInspectorProgram(WebGPUPipeline&); 146 #endif 155 #endif // ENABLE(WEBGPU) 156 #endif // ENABLE(WEBGL) || ENABLE(WEBGPU) 147 157 148 158 std::unique_ptr<Inspector::CanvasFrontendDispatcher> m_frontendDispatcher; … … 156 166 Timer m_canvasDestroyedTimer; 157 167 168 #if ENABLE(WEBGL) || ENABLE(WEBGPU) 158 169 HashMap<String, RefPtr<InspectorShaderProgram>> m_identifierToInspectorProgram; 159 170 Vector<String> m_removedProgramIdentifiers; 160 171 Timer m_programDestroyedTimer; 172 #endif // ENABLE(WEBGL) || ENABLE(WEBGPU) 161 173 162 174 HashSet<String> m_recordingCanvasIdentifiers; -
trunk/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
r261233 r262203 1208 1208 } 1209 1209 1210 #if PLATFORM(IOS_FAMILY) 1211 void InspectorDOMAgent::setInspectModeEnabled(ErrorString& errorString, bool enabled, const JSON::Object* highlightConfig) 1212 { 1213 setSearchingForNode(errorString, enabled, highlightConfig ? highlightConfig : nullptr, false); 1214 } 1215 #else 1210 1216 void InspectorDOMAgent::setInspectModeEnabled(ErrorString& errorString, bool enabled, const JSON::Object* highlightConfig, const bool* showRulers) 1211 1217 { 1212 1218 setSearchingForNode(errorString, enabled, highlightConfig ? highlightConfig : nullptr, showRulers && *showRulers); 1213 1219 } 1220 #endif 1214 1221 1215 1222 void InspectorDOMAgent::highlightRect(ErrorString&, int x, int y, int width, int height, const JSON::Object* color, const JSON::Object* outlineColor, const bool* usePageCoordinates) -
trunk/Source/WebCore/inspector/agents/InspectorDOMAgent.h
r255396 r262203 132 132 void resolveNode(ErrorString&, int nodeId, const String* objectGroup, RefPtr<Inspector::Protocol::Runtime::RemoteObject>& result) override; 133 133 void getAttributes(ErrorString&, int nodeId, RefPtr<JSON::ArrayOf<String>>& result) override; 134 #if PLATFORM(IOS_FAMILY) 135 void setInspectModeEnabled(ErrorString&, bool enabled, const JSON::Object* highlightConfig) override; 136 #else 134 137 void setInspectModeEnabled(ErrorString&, bool enabled, const JSON::Object* highlightConfig, const bool* showRulers) override; 138 #endif 135 139 void requestNode(ErrorString&, const String& objectId, int* nodeId) override; 136 140 void pushNodeByPathToFrontend(ErrorString&, const String& path, int* nodeId) override; -
trunk/Source/WebCore/inspector/agents/InspectorPageAgent.cpp
r261233 r262203 357 357 stopwatch.start(); 358 358 359 #if HAVE(OS_DARK_MODE_SUPPORT)359 #if ENABLE(DARK_MODE_CSS) || HAVE(OS_DARK_MODE_SUPPORT) 360 360 defaultAppearanceDidChange(m_inspectedPage.defaultUseDarkAppearance()); 361 361 #endif … … 368 368 ErrorString unused; 369 369 setShowPaintRects(unused, false); 370 #if !PLATFORM(IOS_FAMILY) 370 371 setShowRulers(unused, false); 372 #endif 371 373 overrideUserAgent(unused, nullptr); 372 374 setEmulatedMedia(unused, emptyString()); 375 #if ENABLE(DARK_MODE_CSS) || HAVE(OS_DARK_MODE_SUPPORT) 373 376 setForcedAppearance(unused, emptyString()); 377 #endif 374 378 375 379 auto& inspectedPageSettings = m_inspectedPage.settings(); … … 771 775 } 772 776 777 #if !PLATFORM(IOS_FAMILY) 773 778 void InspectorPageAgent::setShowRulers(ErrorString&, bool showRulers) 774 779 { 775 780 m_overlay->setShowRulers(showRulers); 776 781 } 782 #endif 777 783 778 784 void InspectorPageAgent::setShowPaintRects(ErrorString&, bool show) … … 870 876 } 871 877 878 #if ENABLE(DARK_MODE_CSS) || HAVE(OS_DARK_MODE_SUPPORT) 872 879 void InspectorPageAgent::defaultAppearanceDidChange(bool useDarkAppearance) 873 880 { 874 881 m_frontendDispatcher->defaultAppearanceDidChange(useDarkAppearance ? Inspector::Protocol::Page::Appearance::Dark : Inspector::Protocol::Page::Appearance::Light); 875 882 } 883 #endif 876 884 877 885 void InspectorPageAgent::didClearWindowObjectInWorld(Frame& frame, DOMWrapperWorld& world) … … 1009 1017 } 1010 1018 1019 #if ENABLE(DARK_MODE_CSS) || HAVE(OS_DARK_MODE_SUPPORT) 1011 1020 void InspectorPageAgent::setForcedAppearance(ErrorString&, const String& appearance) 1012 1021 { 1013 if (appearance == m_forcedAppearance)1014 return;1015 1016 m_forcedAppearance = appearance;1017 1018 1022 if (appearance == "Light"_s) 1019 1023 m_inspectedPage.setUseDarkAppearanceOverride(false); … … 1023 1027 m_inspectedPage.setUseDarkAppearanceOverride(WTF::nullopt); 1024 1028 } 1029 #endif 1025 1030 1026 1031 void InspectorPageAgent::applyUserAgentOverride(String& userAgent) … … 1070 1075 } 1071 1076 1077 #if ENABLE(WEB_ARCHIVE) && USE(CF) 1072 1078 void InspectorPageAgent::archive(ErrorString& errorString, String* data) 1073 1079 { 1074 #if ENABLE(WEB_ARCHIVE) && USE(CF)1075 1080 auto archive = LegacyWebArchive::create(m_inspectedPage.mainFrame()); 1076 1081 if (!archive) { … … 1081 1086 RetainPtr<CFDataRef> buffer = archive->rawDataRepresentation(); 1082 1087 *data = base64Encode(CFDataGetBytePtr(buffer.get()), CFDataGetLength(buffer.get())); 1083 #else 1084 UNUSED_PARAM(data); 1085 errorString = "Not supported"_s; 1086 #endif 1087 } 1088 } 1089 #endif 1088 1090 1089 1091 } // namespace WebCore -
trunk/Source/WebCore/inspector/agents/InspectorPageAgent.h
r259173 r262203 109 109 void searchInResource(ErrorString&, const String& frameId, const String& url, const String& query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, const String* optionalRequestId, RefPtr<JSON::ArrayOf<Inspector::Protocol::GenericTypes::SearchMatch>>&) override; 110 110 void searchInResources(ErrorString&, const String&, const bool* caseSensitive, const bool* isRegex, RefPtr<JSON::ArrayOf<Inspector::Protocol::Page::SearchResult>>&) override; 111 #if !PLATFORM(IOS_FAMILY) 111 112 void setShowRulers(ErrorString&, bool) override; 113 #endif 112 114 void setShowPaintRects(ErrorString&, bool show) override; 113 115 void setEmulatedMedia(ErrorString&, const String&) override; 116 #if ENABLE(DARK_MODE_CSS) || HAVE(OS_DARK_MODE_SUPPORT) 114 117 void setForcedAppearance(ErrorString&, const String&) override; 118 #endif 115 119 void snapshotNode(ErrorString&, int nodeId, String* outDataURL) override; 116 120 void snapshotRect(ErrorString&, int x, int y, int width, int height, const String& coordinateSystem, String* outDataURL) override; 121 #if ENABLE(WEB_ARCHIVE) && USE(CF) 117 122 void archive(ErrorString&, String* data) override; 123 #endif 118 124 119 125 // InspectorInstrumentation … … 127 133 void frameScheduledNavigation(Frame&, Seconds delay); 128 134 void frameClearedScheduledNavigation(Frame&); 135 #if ENABLE(DARK_MODE_CSS) || HAVE(OS_DARK_MODE_SUPPORT) 129 136 void defaultAppearanceDidChange(bool useDarkAppearance); 137 #endif 130 138 void applyUserAgentOverride(String&); 131 139 void applyEmulatedMedia(String&); … … 162 170 String m_userAgentOverride; 163 171 String m_emulatedMedia; 164 String m_forcedAppearance;165 172 String m_bootstrapScript; 166 173 bool m_isFirstLayoutAfterOnLoad { false }; -
trunk/Source/WebInspectorUI/CMakeLists.txt
r260940 r262203 50 50 OUTPUT ${WebInspectorUI_DERIVED_SOURCES_DIR}/UserInterface/Protocol/InspectorBackendCommands.js 51 51 DEPENDS JavaScriptCore 52 InspectorBackendCommands 52 53 ${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector/InspectorBackendCommands.js 53 54 COMMAND ${CMAKE_COMMAND} -E copy ${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector/InspectorBackendCommands.js ${WebInspectorUI_DERIVED_SOURCES_DIR}/UserInterface/Protocol/InspectorBackendCommands.js -
trunk/Source/WebInspectorUI/ChangeLog
r262173 r262203 1 2020-05-27 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: replace `featureGuard` and `availability` with a combined `condition` that accepts any macro 4 https://bugs.webkit.org/show_bug.cgi?id=210014 5 6 Reviewed by Brian Burg. 7 8 Previously, the generated InspectorBackendCommands.js would include code for things that the 9 backend doesn't actually support. By using actual macros and preprocessing that file, we can 10 ensure that the frontend doesn't incorrectly think that something is supported by the page 11 being inspected: 12 - the `Canvas` commands and events related to shader programs/pipelines should only exist 13 when the corresponding context type exists, namely `ENABLE(WEBGL)` and `ENABLE(WEBGPU)`. 14 - iOS doesn't support showing rulers, so create a variant of `DOM.setInspectModeEnabled` 15 that only exists for `PLATFORM(IOS_FAMILY)` that doesn't have the `showRulers` optional 16 parameter, as well as removing `Page.setShowRulers` entirely. 17 - setting the forced appearance should only be possible if dark mode is supported. 18 - web archives only exist if CF is used. 19 20 * CMakeLists.txt: 21 Add a dependency on the new `InspectorBackendCommands` target. 22 23 * UserInterface/Base/Main.js: 24 (WI._updateDownloadTabBarButton): 25 1 26 2020-05-26 Devin Rousso <drousso@apple.com> 2 27 -
trunk/Source/WebInspectorUI/UserInterface/Base/Main.js
r261198 r262203 2394 2394 return; 2395 2395 2396 if (!InspectorBackend.has Domain("Page")) {2396 if (!InspectorBackend.hasCommand("Page.archive")) { 2397 2397 WI._downloadTabBarButton.hidden = true; 2398 2398 WI._updateTabBarDividers(); -
trunk/Source/WebKit/ChangeLog
r262200 r262203 1 2020-05-27 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: replace `featureGuard` and `availability` with a combined `condition` that accepts any macro 4 https://bugs.webkit.org/show_bug.cgi?id=210014 5 6 Reviewed by Brian Burg. 7 8 Previously, the generated InspectorBackendCommands.js would include code for things that the 9 backend doesn't actually support. By using actual macros and preprocessing that file, we can 10 ensure that the frontend doesn't incorrectly think that something is supported by the page 11 being inspected: 12 - the `Canvas` commands and events related to shader programs/pipelines should only exist 13 when the corresponding context type exists, namely `ENABLE(WEBGL)` and `ENABLE(WEBGPU)`. 14 - iOS doesn't support showing rulers, so create a variant of `DOM.setInspectModeEnabled` 15 that only exists for `PLATFORM(IOS_FAMILY)` that doesn't have the `showRulers` optional 16 parameter, as well as removing `Page.setShowRulers` entirely. 17 - setting the forced appearance should only be possible if dark mode is supported. 18 - web archives only exist if CF is used. 19 20 * Configurations/FeatureDefines.xcconfig: 21 Add `ENABLE_WEB_ARCHIVE` since it's always enabled in wtf/PlatformEnableCocoa.h. 22 23 * DerivedSources.make: 24 * PlatformMac.cmake: 25 Remove `platform` as it is handled by `condition`. 26 27 * UIProcess/Automation/Automation.json: 28 1 29 2020-05-27 Zalan Bujtas <zalan@apple.com> 2 30 -
trunk/Source/WebKit/Configurations/FeatureDefines.xcconfig
r261845 r262203 378 378 ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN_macosx = ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN; 379 379 380 ENABLE_WEB_ARCHIVE = ENABLE_WEB_ARCHIVE; 381 380 382 ENABLE_WEBDRIVER_MOUSE_INTERACTIONS = $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS_$(WK_PLATFORM_NAME)); 381 383 ENABLE_WEBDRIVER_MOUSE_INTERACTIONS_macosx = ENABLE_WEBDRIVER_MOUSE_INTERACTIONS; … … 420 422 ENABLE_XSLT = ENABLE_XSLT; 421 423 422 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_EDITABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FULLSCREEN_API) $(ENABLE_PICTURE_IN_PICTURE_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_GPU_PROCESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INSPECTOR_TELEMETRY) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NETWORK_CACHE_STALE_WHILE_REVALIDATE) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFSCREEN_CANVAS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB DRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEBXR) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);424 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_EDITABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FULLSCREEN_API) $(ENABLE_PICTURE_IN_PICTURE_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_GPU_PROCESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INSPECTOR_TELEMETRY) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NETWORK_CACHE_STALE_WHILE_REVALIDATE) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFSCREEN_CANVAS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_ARCHIVE) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEBXR) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT); -
trunk/Source/WebKit/DerivedSources.make
r261375 r262203 318 318 AUTOMATION_PROTOCOL_OUTPUT_PATTERNS = $(subst .,%,$(AUTOMATION_PROTOCOL_OUTPUT_FILES)) 319 319 320 ifeq ($(OS),MACOS)321 ifeq ($(shell $(CC) -std=gnu++1z -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ' WTF_PLATFORM_IOS_FAMILY ' | cut -d' ' -f3), 1)322 AUTOMATION_BACKEND_PLATFORM_ARGUMENTS = --platform iOS323 else324 AUTOMATION_BACKEND_PLATFORM_ARGUMENTS = --platform macOS325 endif326 endif # MACOS327 328 320 # JSON-RPC Frontend Dispatchers, Backend Dispatchers, Type Builders 329 321 $(AUTOMATION_PROTOCOL_OUTPUT_PATTERNS) : $(AUTOMATION_PROTOCOL_INPUT_FILES) $(AUTOMATION_PROTOCOL_GENERATOR_SCRIPTS) 330 $(PYTHON) $(JavaScriptCore_SCRIPTS_DIR)/generate-inspector-protocol-bindings.py --framework WebKit $(AUTOMATION_BACKEND_PLATFORM_ARGUMENTS)--backend --outputDir . $(AUTOMATION_PROTOCOL_INPUT_FILES)322 $(PYTHON) $(JavaScriptCore_SCRIPTS_DIR)/generate-inspector-protocol-bindings.py --framework WebKit --backend --outputDir . $(AUTOMATION_PROTOCOL_INPUT_FILES) 331 323 332 324 all : $(AUTOMATION_PROTOCOL_OUTPUT_FILES) -
trunk/Source/WebKit/PlatformMac.cmake
r261375 r262203 481 481 endforeach () 482 482 483 list(APPEND WebKit_AUTOMATION_PROTOCOL_GENERATOR_EXTRA_FLAGS484 --platform=macOS485 )486 487 483 set(SecItemShimDirectory ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/WebKit.framework/Versions/A/Frameworks) 488 484 add_library(SecItemShim SHARED WebProcess/mac/SecItemShimLibrary.mm) -
trunk/Source/WebKit/UIProcess/Automation/Automation.json
r254118 r262203 438 438 "name": "inspectBrowsingContext", 439 439 "description": "Inspect the specified browsing context using Web Inspector.", 440 " platform": "macos",440 "condition": "defined(WTF_PLATFORM_MAC) && WTF_PLATFORM_MAC", 441 441 "parameters": [ 442 442 { "name": "handle", "$ref": "BrowsingContextHandle", "description": "The handle for the browsing context that should be inspected." }, -
trunk/Source/WebKit/UIProcess/Automation/WebAutomationSession.h
r255343 r262203 201 201 void setSessionPermissions(Inspector::ErrorString&, const JSON::Array& in_permissions) override; 202 202 203 // Platform: macOS204 203 #if PLATFORM(MAC) 205 204 void inspectBrowsingContext(const String&, const bool* optionalEnableAutoCapturing, Ref<InspectBrowsingContextCallback>&&) override; -
trunk/Source/WebKit/UIProcess/Automation/mac/WebAutomationSessionMac.mm
r259665 r262203 43 43 using namespace WebCore; 44 44 45 #pragma mark Commands for Platform: 'macOS'45 #pragma mark Commands for 'PLATFORM(MAC)' 46 46 47 47 void WebAutomationSession::inspectBrowsingContext(const String& handle, const bool* optionalEnableAutoCapturing, Ref<InspectBrowsingContextCallback>&& callback) -
trunk/Source/WebKitLegacy/mac/ChangeLog
r262190 r262203 1 2020-05-27 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: replace `featureGuard` and `availability` with a combined `condition` that accepts any macro 4 https://bugs.webkit.org/show_bug.cgi?id=210014 5 6 Reviewed by Brian Burg. 7 8 Previously, the generated InspectorBackendCommands.js would include code for things that the 9 backend doesn't actually support. By using actual macros and preprocessing that file, we can 10 ensure that the frontend doesn't incorrectly think that something is supported by the page 11 being inspected: 12 - the `Canvas` commands and events related to shader programs/pipelines should only exist 13 when the corresponding context type exists, namely `ENABLE(WEBGL)` and `ENABLE(WEBGPU)`. 14 - iOS doesn't support showing rulers, so create a variant of `DOM.setInspectModeEnabled` 15 that only exists for `PLATFORM(IOS_FAMILY)` that doesn't have the `showRulers` optional 16 parameter, as well as removing `Page.setShowRulers` entirely. 17 - setting the forced appearance should only be possible if dark mode is supported. 18 - web archives only exist if CF is used. 19 20 * Configurations/FeatureDefines.xcconfig: 21 Add `ENABLE_WEB_ARCHIVE` since it's always enabled in wtf/PlatformEnableCocoa.h. 22 1 23 2020-05-27 David Kilzer <ddkilzer@apple.com> 2 24 -
trunk/Source/WebKitLegacy/mac/Configurations/FeatureDefines.xcconfig
r261845 r262203 378 378 ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN_macosx = ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN; 379 379 380 ENABLE_WEB_ARCHIVE = ENABLE_WEB_ARCHIVE; 381 380 382 ENABLE_WEBDRIVER_MOUSE_INTERACTIONS = $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS_$(WK_PLATFORM_NAME)); 381 383 ENABLE_WEBDRIVER_MOUSE_INTERACTIONS_macosx = ENABLE_WEBDRIVER_MOUSE_INTERACTIONS; … … 420 422 ENABLE_XSLT = ENABLE_XSLT; 421 423 422 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_EDITABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FULLSCREEN_API) $(ENABLE_PICTURE_IN_PICTURE_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_GPU_PROCESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INSPECTOR_TELEMETRY) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NETWORK_CACHE_STALE_WHILE_REVALIDATE) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFSCREEN_CANVAS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB DRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEBXR) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);424 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_EDITABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FULLSCREEN_API) $(ENABLE_PICTURE_IN_PICTURE_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_GPU_PROCESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INSPECTOR_TELEMETRY) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NETWORK_CACHE_STALE_WHILE_REVALIDATE) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFSCREEN_CANVAS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_ARCHIVE) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEBXR) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT); -
trunk/Tools/ChangeLog
r262191 r262203 1 2020-05-27 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: replace `featureGuard` and `availability` with a combined `condition` that accepts any macro 4 https://bugs.webkit.org/show_bug.cgi?id=210014 5 6 Reviewed by Brian Burg. 7 8 Previously, the generated InspectorBackendCommands.js would include code for things that the 9 backend doesn't actually support. By using actual macros and preprocessing that file, we can 10 ensure that the frontend doesn't incorrectly think that something is supported by the page 11 being inspected: 12 - the `Canvas` commands and events related to shader programs/pipelines should only exist 13 when the corresponding context type exists, namely `ENABLE(WEBGL)` and `ENABLE(WEBGPU)`. 14 - iOS doesn't support showing rulers, so create a variant of `DOM.setInspectModeEnabled` 15 that only exists for `PLATFORM(IOS_FAMILY)` that doesn't have the `showRulers` optional 16 parameter, as well as removing `Page.setShowRulers` entirely. 17 - setting the forced appearance should only be possible if dark mode is supported. 18 - web archives only exist if CF is used. 19 20 * Configurations/FeatureDefines.xcconfig: 21 Add `ENABLE_WEB_ARCHIVE` since it's always enabled in wtf/PlatformEnableCocoa.h. 22 23 * Scripts/webkitpy/inspector/main.py: 24 (InspectorGeneratorTests.generate_from_json): 25 (InspectorGeneratorTests.run_tests): 26 (InspectorGeneratorTests.main): 27 1 28 2020-05-27 Philippe Normand <pnormand@igalia.com> 2 29 -
trunk/Tools/Scripts/webkitpy/inspector/main.py
r225733 r262203 39 39 self.executive = executive 40 40 41 def generate_from_json(self, json_file, platform,output_directory):41 def generate_from_json(self, json_file, output_directory): 42 42 cmd = ['python', 43 43 'JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py', … … 46 46 '--framework', 'Test', 47 47 '--test', 48 '--platform', platform,49 48 json_file] 50 49 … … 89 88 return changes_found 90 89 91 def run_tests(self, platform,input_directory, reference_directory):90 def run_tests(self, input_directory, reference_directory): 92 91 work_directory = reference_directory 93 92 … … 102 101 work_directory = tempfile.mkdtemp() 103 102 104 if self.generate_from_json(os.path.join(input_directory, input_file), platform,work_directory):103 if self.generate_from_json(os.path.join(input_directory, input_file), work_directory): 105 104 passed = False 106 105 … … 123 122 124 123 base_directory = os.path.join('JavaScriptCore', 'inspector', 'scripts', 'tests') 125 126 platform_directories = { 127 'macos': 'mac', 128 'ios': 'ios', 129 'generic': 'generic', 130 'all': 'all', 131 } 132 133 for platform_name, platform_directory in platform_directories.iteritems(): 134 input_directory = os.path.join(base_directory, platform_directory) 135 reference_directory = os.path.join(input_directory, 'expected') 136 if not os.path.isdir(input_directory) or not os.path.isdir(reference_directory): 137 continue 138 139 all_tests_passed = all_tests_passed and self.run_tests(platform_name, input_directory, reference_directory) 124 input_directory = base_directory 125 reference_directory = os.path.join(input_directory, 'expected') 126 if os.path.isdir(input_directory) and os.path.isdir(reference_directory): 127 all_tests_passed = self.run_tests(input_directory, reference_directory) 140 128 141 129 print('') -
trunk/Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig
r261845 r262203 378 378 ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN_macosx = ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN; 379 379 380 ENABLE_WEB_ARCHIVE = ENABLE_WEB_ARCHIVE; 381 380 382 ENABLE_WEBDRIVER_MOUSE_INTERACTIONS = $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS_$(WK_PLATFORM_NAME)); 381 383 ENABLE_WEBDRIVER_MOUSE_INTERACTIONS_macosx = ENABLE_WEBDRIVER_MOUSE_INTERACTIONS; … … 420 422 ENABLE_XSLT = ENABLE_XSLT; 421 423 422 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_EDITABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FULLSCREEN_API) $(ENABLE_PICTURE_IN_PICTURE_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_GPU_PROCESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INSPECTOR_TELEMETRY) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NETWORK_CACHE_STALE_WHILE_REVALIDATE) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFSCREEN_CANVAS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB DRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEBXR) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);424 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_EDITABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FULLSCREEN_API) $(ENABLE_PICTURE_IN_PICTURE_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_GPU_PROCESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INSPECTOR_TELEMETRY) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NETWORK_CACHE_STALE_WHILE_REVALIDATE) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFSCREEN_CANVAS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEB_ARCHIVE) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEBXR) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);
Note:
See TracChangeset
for help on using the changeset viewer.