[dotnet] [bidi] Unify all event arguments to be *EventArgs#17125
Conversation
PR TypeEnhancement, Other Description
|
| Relevant files | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Enhancement | |||||||||||||||||||||||
| Refactoring | 11 files
| ||||||||||||||||||||||
| Tests |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
There was a problem hiding this comment.
Pull request overview
This PR unifies the naming convention for BiDi event argument types to consistently use the *EventArgs suffix, addressing issue #15546. The change improves API consistency by ensuring all event handler parameters follow the same naming pattern.
Changes:
- Renamed
LogEntryand derived types (ConsoleLogEntry,JavascriptLogEntry,GenericLogEntry) to*LogEntryEventArgs - Renamed
FileDialogInfotoFileDialogEventArgs - Created
NavigationEventArgs(while keepingNavigationInfoas a data type for implementingIBaseNavigationInfo) - Created
BrowsingContextEventArgs(while keepingBrowsingContextInfoas a data type used in results)
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| dotnet/src/webdriver/BiDi/Log/LogEntryEventArgs.cs | Renamed file and types from LogEntry to LogEntryEventArgs hierarchy |
| dotnet/src/webdriver/BiDi/Log/LogModule.cs | Updated method signatures and JSON context to use LogEntryEventArgs |
| dotnet/src/webdriver/BiDi/Input/FileDialogEventArgs.cs | Renamed file and type from FileDialogInfo to FileDialogEventArgs |
| dotnet/src/webdriver/BiDi/Input/InputModule.cs | Updated method signatures and JSON context to use FileDialogEventArgs |
| dotnet/src/webdriver/BiDi/BrowsingContext/NavigationEventArgs.cs | Created new EventArgs type for navigation events |
| dotnet/src/webdriver/BiDi/BrowsingContext/NavigationInfo.cs | Removed EventArgs inheritance, keeping as data type |
| dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextEventArgs.cs | Created new EventArgs type for browsing context events |
| dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextInfo.cs | Removed EventArgs inheritance, keeping as data type |
| dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextModule.cs | Updated all event handler signatures and JSON context |
| dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContext.cs | Updated all navigation event handler signatures |
| dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextLogModule.cs | Updated log entry handler signatures |
| dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextInputModule.cs | Updated file dialog handler signatures |
| dotnet/src/webdriver/BiDi/Json/Converters/Polymorphic/LogEntryEventArgsConverter.cs | Renamed converter class and updated all type references |
| dotnet/test/common/BiDi/Log/LogTests.cs | Updated test code to use new EventArgs types |
| dotnet/test/common/BiDi/Input/InputEventsTests.cs | Updated test code to use FileDialogEventArgs |
| dotnet/test/common/BiDi/Script/ScriptCommandsTests.cs | Updated test code to use Log.LogEntryEventArgs |
Now all types are *EventArgs, pretty consistent.
🔗 Related Issues
Contributes to #15546
🔄 Types of changes