Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement - Add DevToolsClient #3229

Merged
merged 25 commits into from Sep 21, 2020

Conversation

amaitland
Copy link
Member

@amaitland amaitland commented Sep 4, 2020

Fixes: #3218

Summary:

  • Add Strongly typed DevTools Domain classes
  • Deprecated methods are not generated
  • Only methods (no strongly typed events yet)

Changes: [specify the structures changed]

  • Add DevToolsClient
  • Add enums/classes to represent the various domains

How Has This Been Tested?
Basic unit tests pass

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Updated documentation

Checklist:

  • Tested the code(if applicable)
  • Commented my code
  • Changed the documentation(if applicable)
  • New files have a license disclaimer
  • The formatting is consistent with the project (project supports .editorconfig)

@amaitland amaitland self-assigned this Sep 4, 2020
@AppVeyorBot
Copy link

@amaitland
Copy link
Member Author

amaitland commented Sep 4, 2020

Enums aren't always being correctly specified as the type https://github.com/cefsharp/CefSharp/pull/3229/files#diff-a3bf8720232fac45e8639f5e2269cfd5R50

Also need to decorate the enum values with an attribute to map them correctly.

https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.enummemberattribute?view=netcore-3.1

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@amaitland
Copy link
Member Author

I think adding a partial method for each domain method that passes in all parameters to allow for custom validation would be worthwhile. From what I can tell there are parameters that are listed as optional yet they're conditionally optional. Set cookie you need to provide either a domain or a url.

@amaitland amaitland added this to the 85.3.x milestone Sep 18, 2020
@AppVeyorBot
Copy link

- Add option to capture the SyncContext
- Add option to provide custom SyncContext (can just pass in UI SyncContext and all continuations will happen there).
- Fix bug in ExecuteDevToolsMethodAsync sending the command twice when exeucted on the CEF UI thread
The problem with developing with the .Net Core project where files are automatically included is you
forget to include them in the regular csproj file.
@AppVeyorBot
Copy link

…hrowExceptionIfBrowserNotInitialized calls

Those methods were removed as the GetBrowser call handles the checks for us.
@AppVeyorBot
Copy link

Add ability to manually add validation logic
Was working when targeting M84, now with M85 it fails.

The mapping appears to be correct, will need to investigate further
@AppVeyorBot
Copy link

@amaitland amaitland merged commit 78e32a3 into cefsharp:master Sep 21, 2020
@amaitland amaitland linked an issue Oct 6, 2020 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement - Add DevToolsClient (Direct Devtools Protocol)
2 participants