CefSharp
CefSharp copied to clipboard
Reduce ChromiumWebBrowser code duplication
It's possible we can use a partial class common to all three.
Borrowing idea from https://github.com/CefNet/CefNet/blob/master/CefNet/WebView.CommonImplementation.cs#L17
Implement #3033 as part of this effort, can reduce duplication further.
Basic plumbing done in commit https://github.com/cefsharp/CefSharp/commit/0183c429e0a6333181d0cd664a1a22a71261bd43
Add controlState property to simplify tracking the state of the control
- 0 initial
- 1 browser created
- 2 after browser created
- 3 Disposed
Make the three implementations consistent and remove the custom browser initialized/disposed code from each. Follow same pattern as used in WPF.