Commit Graph

21 Commits

Author SHA1 Message Date
Alex Maitland 165a05071d WinForms - ChromiumHostControl now has basic events
- Create ChromiumHostControlBase as common base class for ChromiumHostControl and ChromiumWebBrowser
- ChromiumHostControl is now the specific implementation for hosting popups
  Has AddressChanged, LoadingStateChanged, etc events
2021-11-30 13:47:41 +10:00
Alex Maitland 3dc37b2dd2 WinForms - Add LifeSpanHandler implementation capable of hosting popups as Tabs/Controls (#3529)
* 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
2021-06-04 14:51:49 +10:00
amaitland 545cbce36d WinForms - Form minimise set browser size to 0,0
When the form is minimized set the browser window size to 0x0 to reduce resource usage.

https://github.com/chromiumembedded/cef/blob/c7701b8a6168f105f2c2d6b239ce3958da3e3f13/tests/cefclient/browser/browser_window_std_win.cc#L89

Issue #2922
2020-05-05 08:30:27 +10:00
Chris 30ee538ce0 Added EditorConfig (#2514) 2018-09-17 00:46:21 +02: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
Chris cd934267c6 Updated copyright year and made sure it used same format everywhere (#1966) 2017-03-06 08:44:37 +10:00
amaitland afe758eb51 Use GhostDoc to generate bulk xml documentation - it's not perfect at least a lot of the interface doco has been copied into the
ChromiumWebBrowser instance classes
2016-06-15 13:44:16 +10:00
amaitland bae3c28e92 Update copyright to 2016 2016-01-11 14:11:30 +10:00
amaitland 37f584ed01 Remove NotifyMoveOrResizeStarted and SetFocus from WinForms ChromiumWebBrowser - will mark them as obsolete in the 47 branch so they can be removed from master 2016-01-09 08:09:39 +10:00
Atvaark b04ccbb269 Add missing comments 2015-11-04 13:10:00 +10:00
rassilon 7128e40fd1 It's time for copyright updates again. Yay!
Throw in a couple of tab containing files for good measure.
Evil tabs, evil I say.
2015-04-25 02:45:21 -04:00
rassilon 48c2550011 Fix #918 by adding extension method to cast from IntPtr to Int32 2015-03-31 10:26:09 -04:00
amaitland a503365073 Indent case statement
Remove unused using statements
2015-03-18 17:50:40 +10:00
rassilon 8bd76e1db9 Further cleanups based on comments. 2015-03-17 09:39:40 -04:00
rassilon b27b7d8fdf Remove debugging logic, and add some additional commentary. 2015-03-15 12:42:15 -04:00
rassilon cc8e51dced Don't .Activate ChromiumWebBrowser during activation if the ChromiumWebBrowser was the .ActiveControl before the app was deactivated.
This will allow WinForm's .ActiveControl logic to occur properly.
Update address bar logic to deal with BackColor being in yellow whenever the control has focus.
2015-03-06 02:31:05 -05:00
rassilon 340d671b1f Move WM_ACTIVATE logging from MovingListener to Interceptor. 2015-03-03 02:07:28 -05:00
amaitland 113512c3db Re-add Browser.IsBrowserInitialized check (IsBrowserInitialized is now set to false when disposing, so just avoids any potential null pointer exceptions) 2015-02-24 13:30:26 +10:00
amaitland 9060ca8183 Resharper inspired cleanups
Change line wrapping slightly (no need to be so aggressive when wrapping when < 132 columns)
2015-02-24 13:28:14 +10:00
rassilon 6b51d5759d Notify browser control directly instead of using an event. 2015-02-23 22:15:37 -05:00
rassilon 7c3dcb656e * Code Review changes
* Add float right select drop down for additional move test.
2015-02-11 17:30:33 -05:00