Commit Graph

6179 Commits

Author SHA1 Message Date
amaitland 308603e788 Merge branch 'wpf/basecontrolandpopupchange' of https://github.com/amaitland/CefSharp 2018-08-02 18:23:04 +10:00
amaitland a7c738456c WPF/OffScreen - Add missing ScreenInfo values
Change to using Rect struct

Follow up to #2474
2018-08-02 13:22:41 +10:00
amaitland a1895159a1 WPF - Revert unnecessary formatting changes from #2474 2018-08-02 13:22:41 +10:00
amaitland ba8b9db4b5 WPF/OffScreen - Removed unneeded code 2018-08-02 13:22:26 +10:00
alfein 391fe825d4 GetScreenInfo - Allow setting of Rect/AvaliableRect (#2474)
* added some code to send monitor information back to the cef

* reverted framework target change

* small cleanup.  Handling location changed of the window to force refresh screeninfo

* Fixed formatting of C++ code, added comments, removed code from samples

* removed extra white space
2018-08-02 13:21:02 +10:00
amaitland d87e795000 WinForms/Wpf/OffScreen - Create specific CefSettings class for each version
- This is a breaking change as there is no common `CefSharp.CefSettings`, there is no `CefSharp.Wpf.CefSettings`, `CefSharp.WinForms.CefSettings` and `CefSharp.OffScreen.CefSettings`
 - Cef.Initialize has been removed, the `ChromiumWebBrowser` constructor will call the `Cef.Initialize` with the defaults for your flavour
 - CefSettings.FocusedNodeChangedEnabled has been moved to CefSharpSettings.FocusedNodeChangedEnabled

Resolves #2477
2018-08-02 10:47:12 +10:00
amaitland 161e1ae0cc Upgrade to CEF 3.3440.1803.gde363ee / Chromium 68.0.3440.75 2018-08-02 10:03:10 +10:00
amaitland 1d94885d75 Upgrade to CEF 3.3396.1786.gd3e36d0 / Chromium 67.0.3396.79 2018-07-31 19:20:56 +10:00
amaitland 0f240f9510 Wpf Example - LifespanHandler Update comment to make it clear the code is experimental and incomplete 2018-07-29 19:50:15 +10:00
amaitland bf934b2ec3 WinForms - Example LifeSpanHandler update DevTools Url
The Default Devtools URL has been changed in `CEF`.

https://bitbucket.org/chromiumembedded/cef/commits/7b00e057140c3c134dfae328718a005f2064b9f6?at=3396
2018-07-29 19:37:00 +10:00
amaitland a6d4657b5a README.md - Re-add financial support section.
If anyone has questions (or objections) then feel free to contact me on gitter

Fixed/Added a few links whilst I was at it.
2018-07-27 21:01:19 +10:00
amaitland 0f789fb09b Cef.Shutdown - Improve Thread Check error message 2018-07-25 21:58:08 +10:00
amaitland 9d4504db99 IDownloadHandler - Add IWebBrowser param to methods
Resolves #2470
2018-07-24 12:38:45 +10:00
amaitland 430c439690 IFocusHandler - Add IWebBrowser and IBrowser Params
IFocusHandler methods are now called for popups, use browser.IsPopup to differentiate
DefaultFocusHandler has been updated accordingly

Resolves #2468
2018-07-24 12:26:04 +10:00
amaitland d28ce081ed Handler Xml Doc Cleanup - Rename webBrowser to chromiumWebBrowser 2018-07-24 12:13:37 +10:00
amaitland 1107a1a894 WinForms Example - Set FocusHandler to null when multiThreadedMessageLoopEnabled = false
It's not required when multiThreadedMessageLoopEnabled = false and can interfere with
the system onscreen keyboard used by touch screen.
2018-07-23 21:18:44 +10:00
amaitland 4c3b0652b0 JavascriptObjectRepository - Throw exception if trying to Register .Net built in type
Also Simplify some code as per VS suggestion

Resolves #2466
2018-07-23 09:52:30 +10:00
amaitland 7275d2c611 WebBrowserExtensions - Add GetCookieManager extension method to simplify getting the
cookie manager associated with the IWebBrowser instance
2018-07-21 21:08:21 +10:00
amaitland e3ae0024f3 Untabify RequestContext 2018-07-19 11:36:34 +10:00
amaitland 82db644213 RequestContext - Add new constructor methods creating a new context object that shares storage with otherRequestContext and uses an optional handler. 2018-07-18 21:21:42 +10:00
amaitland 2f7618bf0e OffScreen - Remove BrowserSettings property
Can now only set BrowserSetting through the constructor or CreateBrowser method
BrowserSettings are only changeable before the browser has been created, this removes any confusion.
2018-07-18 19:38:11 +10:00
amaitland 8f72479738 Nuspec - Experiment with adding dependencies to a dependency group
Interesting to see if this forces a minimum version of .Net 4.5.2
2018-07-17 20:44:58 +10:00
amaitland 85668c0eb5 Readme.md - Make version 65 as released and update master branch version 2018-07-17 20:12:40 +10:00
Alex Maitland 8b64cc31d9 Update Readme.txt
Make `x86`, `x64` target info a little more detailed.
2018-07-17 14:54:04 +10:00
amaitland 0544428f4c Untabify 2018-07-16 20:24:05 +10:00
amaitland 1502a06eb6 BrowserSettings/CefSettings BackgroundColor xml doc updated
Also added Cef.ColorSetARGB helper function
2018-07-16 20:20:13 +10:00
amaitland fd02981fc8 WPF - Add Support for binding RenderTransformProperty
Resolves #2291
2018-07-13 11:05:01 +10:00
amaitland 9c79dfeb2c IFrame.LoadRequest - Update xml doc
LoadRequest can only be called when a render process has already been created, suggest loading a data uri initially

http://magpcss.org/ceforum/viewtopic.php?f=6&t=16058&p=38563&hilit=LoadRequest#p38559

Resolves #2451
2018-07-13 10:28:25 +10:00
amaitland 5b15ed01bd Add IJavascriptObjectRepository.UnRegisterAll
UnRegisterAll all bound objects - does not unbind them from the JS context
2018-07-13 10:13:08 +10:00
amaitland b779d2b567 OffScreen - Add xml doc comment to constructor
Add note about legacy binding and creating the browser
2018-07-12 20:35:52 +10:00
amaitland 37a364c0ad Add IJavascriptObjectRepository.UnRegister
Allows for an object to be removed from the repository, doesn't unbind the object from javascript though
2018-07-12 20:31:31 +10:00
amaitland 383734efdf CefSharp.BrowserSubprocess/Program.cs - Remove redundant using 2018-07-11 18:05:12 +10:00
Per Lundberg 2e966d9935 Bug fix: handle type=crashpad-handler
Cherry-pick of #2449 which was approved by Alex.

I was seeing instances of the subprocess being spawned this way when running the CefSharp.Wpf.Example project. Debugging showed me that no such argument was being passed to the process. This PR works around the issue by opting out from getting the parent process ID for such processes.
2018-07-11 09:55:02 +03:00
amaitland 48bd8d5590 Add IRequestContextHandler.OnRequestContextInitialized
- Rename RequestContextHandler to CefRequestContextHandlerAdapter and move to internals
- Add missing RequestContextSettings.EnableNetSecurityExpiration
- Minor code cleanup
2018-07-10 20:21:46 +10:00
amaitland 49d353bc9e JavascriptAsyncMethodHandler::Execute - Add extra logging
- Add extra logging
- Fix formatting
- Add reference to relevant github issue

Follow up to https://github.com/cefsharp/CefSharp/pull/2446
2018-07-09 20:31:15 +10:00
mtajmajer 8fb47b4761 Add nullcheck to promiseData. This is null at times; I see it when refreshing the browser in the development tools. 2018-07-09 20:16:18 +10:00
amaitland 709645a195 WPF Example - Remove commented out context menu code
Left over from when the built in wasn't working (it still only works partially) due to https://github.com/cefsharp/CefSharp/issues/1767
Improve comments and add links to make clearer
2018-07-09 20:04:41 +10:00
amaitland 41a6b837a0 Example projects - copy crash_reporter.cfg to bin folder 2018-07-06 07:54:34 +10:00
amaitland 8301090afe Merge branch 'split_ceffiledialogmode_enum' of https://github.com/fuzzykiller/CefSharp 2018-07-02 18:24:44 +10:00
amaitland cf04ab4b2e WPF - Add basic JavascriptBindingStressTest command
Loads JSB test page and then reloads every 10 seconds
2018-06-30 15:40:57 +10:00
amaitland 2899112843 OffScreen - ScreenshotAsync now correctly passes through blend to ScreenshotOrNull 2018-06-27 21:51:53 +10:00
amaitland 10a891548b WPF/OffScreen Example - Disable SurfaceSynchronization
https://bitbucket.org/chromiumembedded/cef/src/514ced40ceffa16966d9dee23a253014faf74d72/libcef/browser/osr/render_widget_host_view_osr.cc?at=3396&fileviewer=file-view-default#render_widget_host_view_osr.cc-243 (Apparently only relevant for 3396 branch)

See https://github.com/cefsharp/CefSharp/issues/2431
2018-06-27 20:42:53 +10:00
amaitland 90c5e71aeb WPF/OffScreen - Removed ViewRect and replaced with existing Rect (struct)
IRenderWebBrowser.GetViewRect didn't allow you to return the x and y coordinates

This is a breaking change
2018-06-27 19:54:41 +10:00
amaitland 2da7df0379 WPF/OffScreen - Initialize Cef with WindowlessRendering enabled by default
Suggestion is this is now required to be set

https://github.com/cefsharp/CefSharp/issues/2431
2018-06-27 18:57:11 +10:00
amaitland 72c1babab9 Upgrade version numbers to 67 2018-06-25 21:33:57 +10:00
amaitland d09c3e8b03 CefSharpArguments.ExitIfParentProcessClosed - Change to lowercase
Chromium changes the args to lowercase, so we switch to lowercase for compare.
2018-06-25 21:31:17 +10:00
amaitland 61f95f6893 BindingTest.html - Fix formatting
Braces on new lines
Remove blank line
2018-06-25 21:31:17 +10:00
Damir Ainullin 416cdde616 Fix possible null reference of RenderHandler (#2428)
* Fix possible null reference

* Used "is" operator instead of GetType and typeof

* Removed redundant condition
2018-06-25 11:53:09 +10:00
Mark Vulfson d1b78bcbd7 Serialize any Enumerable (List<T>) type to V8 object properly (#2393)
* Serialize any Enumerable (List<T>) type to V8 object properly (Issue #2392)
Handle any enumarable, not just arrays when serializing (e.g. when calling
`IJavascriptCallback.ExecuteAsync`).
Otherwise, `System.Reflection.TargetParameterCountException` is thrown during serialization

* fixup! Serialize any Enumerable (List<T>) type to V8 object properly (Issue #2392) Handle any enumarable, not just arrays when serializing (e.g. when calling `IJavascriptCallback.ExecuteAsync`). Otherwise, `System.Reflection.TargetParameterCountException` is thrown during serialization

* fixup! fixup! Serialize any Enumerable (List<T>) type to V8 object properly (Issue #2392) Handle any enumarable, not just arrays when serializing (e.g. when calling `IJavascriptCallback.ExecuteAsync`). Otherwise, `System.Reflection.TargetParameterCountException` is thrown during serialization
2018-06-25 11:20:42 +10:00
Alex Maitland d8f9b6faf5 Update appveyor.yml
Upgrade version number to 67
2018-06-24 13:16:10 +10:00