* WinForms - Add LifeSpanHandler implementation capable of hosting popups as Tabs/Child controls in WinForms
- Update Example
- Remove PopupAsChildHelper and example LifeSpanHandler
- Examples always opens popups as tabs now.
- Improve xml doc and comments
- Make ParentFormMessageInterceptor public
- Make ChromiumHostControl public, move into CefSharp.WinForms.Host namespace
Rather than having the class in the CefSharp.WinForms namespace and potentially
confuse users, move into it's own namespace.
- Clarify ShowDevToolsDocked needs to be used with the new WinForms lifespan handler
* Add a SplitContainer as the base UI panel and place the browserPanel in Panel1 and new devToolsPanel in Panel2.
Create two new public methods to open and close the devtools.
* BrowserForm - Changed the Show/Close devtools to call the new methods in the BrowserTabUserControl. If the LifeHandler is null, normal behaviour is assumed.
* Handle the DoClose event in LifeSpanHandler if the IBrowserHost.CloseDevTools() is called directly. This is more of a fail-safe, if the normal CEF behaviour is allowed then entire application will close.
* Added some addtional comments.
* Uncomment the instantiation of the LifeSpanHandler
* Removed devToolsPanel from designer
Removed CloseDevToolsDocked() method
Made ShowDevToolsDocked() method easier to copy and paste
Closing Devtools should now be handled in LifeSpanHandler.DoClose()
Added a bool to the LifeSpanHandler constructor whether to handle Browser popups.
Added Toolscript menu item to show DevTools Docked or Popup
Added async Method to check it DevTools is open
* Changed field access modifier to private
* Renamed dispose devtools handler with a more meaningful name
Hopefully this makes it clearer that the IWebBrowser instance is actually the ChromiumWebBrowser
Updated almost all instances, there's one WinForms example that wasn't updated
- Make members protected virtual (BREAKING CHANGE)
- Remove Default from name of DefaultResourceRequestHandlerFactory/DefaultResourceRequestHandlerFactoryItem
ScheduleMessagePumpBrowserProcessHandler - contains a simplistic message pump example
WinFormsBrowserProcessHandler - contains just a timer that calls Cef.DoMessageLoopWork
These are the two options for integrating CEF into WinForms
* Applied formatting
* Fixed file encoding + Updated copyright year
* Updated License
* Fixed more file encoding
* Copyright notice now shows the year the file was created
* wip create hooks for onSelectClientCertificate
* create interface and wrapper for callback
* get certificate from CefCertificateList, convert to X509Certificate2, add them to X509CertificateCollection and return this to ClientAdapter
* code review changes. Certificate selection in wrapper requires recreation of certificate in iteration
* added certificate dialog selection to WinFormsRequestHandler. Used VS untabify to remove all the tabs and replaced it with spaces
* missed updating a summary on ISelectClientCertificateCallback
* code review changes
- Make it so that the lifespan handler is still called when the
ChromiumWebBrowser is disposed We need to make sure that the
LifeSpanHandler is still around when `managedCefBrowserAdapter`
is disposed since it is going to call `CloseBrowser`. That way,
we can implement LifeSpanHandler and reject closing the entire
application as described in #1574
(This is now possible as IWindowInfo exposes all the relevant pieces).
This will allow for a little more flexibility, specially on the WinForms front, it should be possible to create the control and then show the window later
Update WinForms popup example - comment out experimental feature
Had to add interfaces to allow for wrapping of the structures (BrowserSettings and PopupFeatures)
Resolves#1586