Commit Graph

37 Commits

Author SHA1 Message Date
amaitland 4b4e568f7d Add BindingTestSingle.html
Simple test page that can be used to test cases in isolation (useful for debugging purposes)
2018-03-05 14:02:59 +10:00
Alex Maitland 9b01b69d2f Implement Javascript Binding v2 (#2247)
* JSB Rewrite - Add CefSharp.RegisterBoundObject javascript method

To get around the problem of IPC timing, I've reversed the communication, now it's the render process requesting
the bound objects, the implementation is incomplete at this stage, more just a basic proof of concept

Rewrite BindingTest.html using QUnit
One of the tests doesn't map correctly as it requires def user interaction

TODO:

- Get objects by name
- Rename Messages.h values that relate to this change so they are more descriptive
- Better error handling
- Caching of objects within a render process
- Investigate global context options, don't think it's possible to call an async method directly in the global context

# Conflicts:
#	CefSharp.Example/Resources/BindingTest.html

* JSB Improve Request/Response message names

* BindingTest.html - Output stress test results

* Remove JavascriptRootObject was leftover from time we used WCF to transmit objects

* JavascriptObjectRepository - Objects are now sent in the same list with an IsAsync flag

Separation when sending over IPC with two unique lists isn't necessary

* JavascriptObjectRepository - Return objects by name or return all by default

Untabify CefAppUnmanagedWrapper.cpp
Add minor comment to CefBrowserWrapper for a reminder that we use Frame Identifier as dictionary key

* Add //TODO: JSB comments for work that's left to be done

Ideally within a render process we cache bound objects once they've been communicated,
It would also be nice to make multiple binding requests so objects can later be added dynamically

* JSB Allow multiple calls to CefSharp.RegisterBoundObject

Update BindingTest.html to name two distinct calls to different bound objects

* JSB - Add some notes about caching, no working implementation yet

* JSB - Dynamically Register object on Request

* JSB Add ability to unbind an object and rename RegisterBoundObject to BindObjectAsync

# Conflicts:
#	CefSharp.Example/Resources/BindingTest.html

* JSB BindObjectAsync - if objects already bound then return false

* JSB - Ignore Indexer properties

Were previously throwing an exception

* JSB - Add LegacyJavascriptBindingEnabled option so preserve existing behaviour

This is only useful for SPA application and those that only navigate to pages
hosting within a single domain. Any sort of cross-site navigation and a new
render process will be spawned and objects won't be bound automatically
(You can use the new methods to request they're bound yourself, at least in theory,
more testing required on this)

* Add LegacyBindingTest.html

Current disabled by default. To enable uncomment CefSharpSettings.LegacyJavascriptBindingEnabled = true;
in CefExample.cs

* RegisterJsObject and RegisterAsyncJsObject can now only be used when CefSharpSettings.LegacyJavascriptBindingEnabled = true

See https://github.com/cefsharp/CefSharp/issues/2246 for details
2018-01-22 10:24:25 +10:00
amaitland 0067d02360 Add UnicodeExamples one equal to 32kb (the default buffer size) and one slightly greater.
Change CefSharpSchemeHandlerFactory to always include a BOM (premable) to the front of the response data
2017-05-05 13:06:26 +10:00
amaitland 6ded700373 Add Recaptcha test - https://cefsharp.com/Recaptcha.html 2017-03-30 07:55:47 +10:00
amaitland 04ff93817e Add https://pixabay.com/en/beach-pacific-coastline-ocean-coast-2089936/ to CefSharp.Example as embedded resource - test loading of image using browser.RegisterResourceHandler 2017-03-06 08:57:11 +10:00
Justin Stenning 2298ea0a93 Implementation of Cef.RegisterWidevineCdm (#1935)
* Added Cef.RegisterWidevineCdm for CEF Widevine CDM registration #1934
* Added test page for WidevineCdm registration and example registration #1934
* Noted additional steps for Widevine and proprietary codecs to CdmSupportTest.html
* Link for more information changed to issue #1934 in CefExample.cs
* replaced Cef.RegisterCdmCallback's async result with IRegisterCdmCallback parameter
* RegisterCdmCallback now uses taskCompletionSource
2017-02-13 15:37:55 +10:00
amaitland 2b4840fc90 Add CssAnimation example for testing purposes 2017-02-01 09:37:08 +10:00
amaitland 54f7fccdaa Upgrade to .Net 4.5.2
Resolve #1572
2016-05-10 20:28:21 +10:00
amaitland 4c4eb210f4 Add WPF Draggable Regions Test
Remove old generic DragHandler - maybe someone will write a WinForms specific one?
Remove some unused references from CefSharp.csproj
2016-04-12 16:57:47 +10:00
amaitland f238b2bf50 Add Filter test url to WPF Example 2016-02-11 11:33:44 +10:00
Rich McNeary 8e548d9c31 Add javascript syntax highlighting. New page to evaluate / execute js code. 2015-12-28 14:27:02 -05:00
illfang 441a2872c5 added multi binding test for testing bindings with multiple contexts and dynamic context creation / destruction
1 browser, multiple changing contexts
also added a link to the popuptest
2015-10-09 15:23:50 +09:00
illfang a9f5ab4c97 merge with master 2015-09-16 18:05:13 +09:00
illfang 94e352908a added test for WebGL content which is loaded in a cefsharp/CefSharp/issues/1226 2015-09-16 17:59:20 +09:00
illfang 81c545cf39 added test html logging exception log messages: ExceptionTest.html
custom://cefsharp/ExceptionTest.html
2015-09-08 11:20:31 +09:00
David Serfozo 756bd44bbd added extension example 2015-08-01 20:26:03 +02:00
JanEggers cb5a93d66e reuse assembly info 2014-03-14 22:47:32 +01:00
Per Lundberg 15b351cda6 Harmonized a bunch of AssemblyInfos, and also made the copyrights a bit clearer. 2013-11-10 23:54:08 +02:00
Per Lundberg b07deda22e Started some of the fun work on the "home" page, based heavily on Twitter Bootstrap's "general usage" page (which is liberally licenses, to our benefit). Still a lot of work to be done, and the unfinished parts are obviously hard to document, but it's a good start. I think we could also publish this up using GitHub Pages eventually. 2013-10-27 10:53:17 +02:00
Per Lundberg c75d93c65c Started working on a nice little "home page", which we will include, using Twitter Bootstrap. The idea is to add links to the various tests we provide + to the CefSharp web page of course, in line with the "build UIs with HTML" paradigm. Relies on a bug fix for #150 which isn't really implemented yet though. :) 2013-09-18 22:46:27 +03:00
Per Lundberg a6db06d0ef 1.25.2 coming up. 2013-06-17 07:11:22 +02:00
Per Lundberg 96d3704917 Updated links to indicate the forked nature of this, err, fork. :) 2013-06-17 07:08:19 +02:00
Per Lundberg 4b7917b2a0 Regenerated with VS2012. 2013-05-01 18:09:25 +03:00
anthony taranto d1d77918fc bump copyright year to 2013 2013-03-11 15:09:00 -07:00
anthony taranto 07ec4c58ae bump assembly versions to 1.25.0 2013-03-11 15:07:55 -07:00
anthony taranto 25379bf03d bump AssemblyVersions to 0.12 2012-04-10 19:53:46 -07:00
anthony taranto f20f8c74ce bump asm versions to 0.11.* 2012-03-21 17:58:55 -07:00
anthony taranto 99b2041fee split per toolkit test projects 2012-02-29 14:59:55 -08:00
anthony taranto 5c61f41b50 rename tooltips to tooltip 2012-02-28 19:19:53 -08:00
anthony taranto ab91d467b0 wpf tooltips 2012-02-28 16:50:33 -08:00
anthony taranto 0079dd4501 move test logic into CefSharp.Example, run all example tests in wpf 2012-02-24 17:03:55 -08:00
anthony taranto 417f01fd59 add CefSharp.Example to house shared code 2012-02-23 15:08:50 -08:00
anthony taranto 04be2df6e6 rename CefSharp.Example to CefSharp.WinFormsExample 2012-02-17 14:12:07 -08:00
anthony taranto 03da84ab58 add popup test html file to test target=_blank and window.open() popups 2011-07-18 16:35:26 -07:00
anthony taranto 4c71c081c4 add quick winforms tooltip test html file 2011-06-10 13:53:12 -07:00
chillitom 97b26909c5 added a binding test page to CefSharp.Example 2010-12-14 21:26:23 +08:00
chillitom 24983d67ab rename CefTest directory to CefSharp.Example 2010-12-14 10:02:57 +00:00