CefSharp icon indicating copy to clipboard operation
CefSharp copied to clipboard

Reduce ChromiumWebBrowser code duplication

Open amaitland opened this issue 6 years ago • 3 comments

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

amaitland avatar Mar 14 '20 23:03 amaitland

Implement #3033 as part of this effort, can reduce duplication further.

amaitland avatar Mar 24 '20 08:03 amaitland

Basic plumbing done in commit https://github.com/cefsharp/CefSharp/commit/0183c429e0a6333181d0cd664a1a22a71261bd43

amaitland avatar Aug 07 '20 05:08 amaitland

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.

amaitland avatar Sep 16 '20 10:09 amaitland