Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Web Inspector: the protocol generator should have separate prefix opt…
…ions for Objective-C classes and filenames https://bugs.webkit.org/show_bug.cgi?id=155101 <rdar://problem/25000053> Reviewed by Timothy Hatcher. It should be possible to generate Objective-C protocol types without prefixing all class names. The prefixes are only necessary when the generated files are part of a framework, but this isn't how the generated Objective-C frontend files are used. Add a separate framework setting and switch over code to use the 'protocol_group' in filenames, and the 'objc_prefix' for Objective-C enum and class prefixes. No tests need to be rebaselined because tests always set the protocol_group and objc_prefix to the same value. * inspector/scripts/codegen/generate_objc_backend_dispatcher_header.py: (ObjCBackendDispatcherHeaderGenerator.output_filename): * inspector/scripts/codegen/generate_objc_backend_dispatcher_implementation.py: (ObjCConfigurationImplementationGenerator.output_filename): (ObjCConfigurationImplementationGenerator.generate_output): * inspector/scripts/codegen/generate_objc_configuration_header.py: (ObjCConfigurationHeaderGenerator.output_filename): (ObjCConfigurationHeaderGenerator.generate_output): (ObjCConfigurationHeaderGenerator._generate_configuration_interface_for_domains): * inspector/scripts/codegen/generate_objc_configuration_implementation.py: (ObjCBackendDispatcherImplementationGenerator.output_filename): (ObjCBackendDispatcherImplementationGenerator.generate_output): (ObjCBackendDispatcherImplementationGenerator._generate_configuration_implementation_for_domains): * inspector/scripts/codegen/generate_objc_conversion_helpers.py: (ObjCConversionHelpersGenerator.output_filename): * inspector/scripts/codegen/generate_objc_frontend_dispatcher_implementation.py: (ObjCFrontendDispatcherImplementationGenerator.output_filename): (ObjCFrontendDispatcherImplementationGenerator.generate_output): * inspector/scripts/codegen/generate_objc_header.py: (ObjCHeaderGenerator.output_filename): * inspector/scripts/codegen/generate_objc_internal_header.py: (ObjCInternalHeaderGenerator.output_filename): (ObjCInternalHeaderGenerator.generate_output): * inspector/scripts/codegen/generate_objc_protocol_types_implementation.py: (ObjCProtocolTypesImplementationGenerator.output_filename): (ObjCProtocolTypesImplementationGenerator.generate_output): * inspector/scripts/codegen/models.py: * inspector/scripts/codegen/objc_generator.py: (ObjCGenerator): (ObjCGenerator.protocol_name): (ObjCGenerator.objc_prefix): Canonical link: https://commits.webkit.org/173192@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@197658 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
12 changed files
with
89 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters