14 Commits

Author SHA1 Message Date
Luke 1992e4970c WinForms - Add example of how to dock devtools into the same window. (#2804)
* 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
2019-08-14 10:16:21 +10:00
Chris bef5dd37c4 Maintenance - Fixed formatting, file encoding, and copyright year (#2504)
* Applied formatting

* Fixed file encoding + Updated copyright year

* Updated License

* Fixed more file encoding

* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +10:00
amaitland 38254a59d5 Rewrite ChromeWidgetHandleFinder to use a GCHandle - much cleaner method of interfacing with dllimport 2016-04-11 07:52:10 +10:00
cefsharp-ms 7744b7197f async bindings are dispatched to a background thread for each browser 2015-07-23 15:12:05 +02:00
jankurianski ea64d04061 Browser now docks properly on startup 2014-10-14 10:10:24 +10:00
amaitland 2a1a472081 HACK: Set DockStyle.Fill on Browser Panel Paint 2014-10-13 16:36:57 +10:00
amaitland 4008448ce4 Replace splitpanel with panel as no longer needed by devtools 2014-10-13 15:52:59 +10:00
amaitland c363a23b4e Show DevTools in panel 2014-08-26 17:46:46 +10:00
amaitland 3831b8cd6b Add Panel to host browser control 2014-08-26 17:39:19 +10:00
amaitland aa9da690e7 First attempt at removing the toolStripContainer 2014-08-26 17:19:42 +10:00
amaitland f0adf4657c Add in Status message example 2014-08-25 12:42:09 +10:00
amaitland 7375fd01e8 Make newly created tab active 2014-07-01 12:03:58 +10:00
amaitland 6ed6662427 Re-add find to BrowserTabUserControl 2014-07-01 12:03:58 +10:00
amaitland 395a09c270 Create BrowserTabUserControl in preparation for migration to TabControl 2014-07-01 12:03:57 +10:00