amaitland
d6fbe2e60b
Reformat inline js (use @ notation so much of the string encapsulation can be removed)
...
Make ScriptedMethods class static and convert the methods into extension methods (really just for the hell of it)
Make some of the comments a little less verbose in terms of number of lines
Some Resharper inspired simplifications
Other code reformatting to make consistent with other parts of the project (switch case statements should have braces, ContinueWith blocks reformatted to match others)
Untabify ScriptedMethodsTest.html
Remove unused usings from ScriptedMethods
Add a few comments about camelCaseJavascriptNames
2016-01-09 07:59:32 +10:00
Rich McNeary
0db20550ae
Add menu to demonstrate javascript evaluation / execution.
2016-01-09 07:59:32 +10:00
Rich McNeary
a252785858
Add javascript syntax highlighting. Include demo page.
2016-01-09 07:59:31 +10:00
Rich McNeary
ab178bdf2c
Add javascript syntax highlighting. New page to evaluate / execute js code.
2016-01-09 07:59:31 +10:00
Rich McNeary
6a3eafc7fe
Initial script examples.
2016-01-09 07:59:31 +10:00
Rich McNeary
f06649a9ab
Change from EnableFocusedNodeChanged to FocusedNodeChangedEnabled to match the existing WindowlessRenderingEnabled setting property.
2016-01-06 11:43:49 +10:00
amaitland
c18f951a97
Move OnContextCreated from IRequestHandler to IRenderProcessMessageHandler
...
Manually resolve some merge conflicts
2015-12-09 11:32:24 +10:00
amaitland
af02212217
Merge branch 'feature/oncontextcreated' of https://github.com/amaitland/CefSharp
2015-12-09 11:26:07 +10:00
amaitland
d33c41ec5d
Remove unused include
...
No need to wrap bool in gcroot
Move command line parsing into c# land - can be reused in a few places.
Reduce code duplication in OnProcessMessageReceived - kOnFocusedNodeChanged handler
Minor changes for code consistency/formatting
2015-12-09 11:23:06 +10:00
Rich McNeary
5784444f43
Merge remote-tracking branch 'refs/remotes/cefsharp/master' into focus-changed-1256
...
# Conflicts:
# CefSharp/IRequestHandler.cs
2015-12-08 09:36:44 -05:00
Rich McNeary
7d4e074ef4
Move OnFocusedNodeChanged into new IRenderProcessMessageHandler.
2015-12-08 09:32:54 -05:00
Rich McNeary
443804084e
Changed to specifically request FocusNodeChanged messages.
2015-12-08 09:04:22 -05:00
amaitland
7782490513
Add IRequestHandler.OnResourceLoadComplete
...
https://bitbucket.org/chromiumembedded/cef/commits/ced449a0efbb39e7ff36af844a4d067935dc324b
2015-12-08 10:46:27 +10:00
Rich McNeary
1fb54241f7
Add the OptionalMessages property to CefSettings.
2015-12-07 16:27:17 -05:00
Rich McNeary
ae49a5385b
Fix: tabs to spaces, if and for braces, use frame ID.
2015-12-07 09:48:57 -05:00
Rich McNeary
1ecf2d57b0
Initial implementation complete.
...
Add support for when an element node in the DOM gets focus. Also invoked
when focus passes from an element node to an non-element node or
nothing.
2015-12-04 16:01:26 -05:00
Rich McNeary
34f7554023
Added initial implementation to IRequestHandler.
2015-12-03 16:08:34 -05:00
amaitland
6f272833fb
Add IRequestHandler.OnContextCreated handler
...
Send an IPC message when OnContextCreated is called in the render process
Currently only called for the main frame
Should be possible to hook the DOMContentLoaded event
2015-12-02 19:04:19 +10:00
amaitland
c00eeb82f5
Remove some stray AnyCPU targets from the csprojcts
2015-11-27 11:35:41 +10:00
amaitland
3f15b53ab7
Resolves #1407
...
More the DeserializeV8Object call to within the context->Enter so a V8Object can be created
Change callback to use a struct as it's return type to demo the solution to this bug
Add missing list->SetDictionary call in V8Serialization.cpp
2015-11-18 09:17:16 +10:00
amaitland
0ecd64dfd2
Upgrade to 3.2526.1347
...
Upgrade 45.0.0 references to 47.0.0
Remove BrowserSettings.Java as it's an NPAPI plugin and support was removed in version 45
2015-10-30 09:10:12 +10:00
illfang
8c76967b62
test for js exceptions created in callbacks
2015-10-23 16:40:07 +09:00
amaitland
fe11f2eada
Add Cef.DoMessageLoopWork example to WinForms.Example project
2015-10-21 19:56:45 +10:00
amaitland
17b7f0ced1
BindingTest - Braces on new lines
...
Fix CefAppUnmanagedWrapper code formatting
Slightly more descriptive error message when frame not found
2015-10-19 13:24:24 +10:00
Greg Martin
a64f25193f
This should fix #1336 (IJavascriptCallback.ExecuteAsync never returns when callback no longer exists) and likely fixes as-of-yet undiscovered related callback problems.
...
The code previously in CefAppUnmanagedWrapper.cpp's OnProcessMessageReceived method did not check for a nullptr callbackWrapper resulting in an exception.
Also note that previously the success and reponse variables were not initialized by default which I believe to have been a mistake after following all of the if..else code paths (most importantly some error conditions would never be returned back).
I added a new test to BindingTest.html entitled "Test Disposed Callback" which makes the same 1.5 second delayed callback that "Test Callback" does, but then immediately navigate the page to www.google.com. Without the fix in CefAppUnmanagedWrapper.cpp the browser's renderer process will die in about 10 seconds.
2015-10-19 13:24:24 +10:00
amaitland
f341c5ba1f
Improve display of TooltipTest.html - minor html cleanup
2015-10-13 13:11:27 +10:00
amaitland
ad9f7c70ac
Add IPluginHandler.OnBeforePluginLoad
...
Can now be used through the RequestContext
Add Example to WPF application
2015-10-12 15:32:10 +10:00
amaitland
20b8aa5732
Add IDragHandler.OnDraggableRegionsChanged
2015-10-12 07:16:33 +10:00
Alex Maitland
a707902485
Merge pull request #1318 from illfang/feature-multi-binding-test
...
Feature multi binding test
2015-10-09 19:46:36 +10:00
illfang
1f601c9beb
replaced tabs for spaces in test html files
2015-10-09 17:56:17 +09:00
illfang
06597c3368
fix formatting of multi binding test
2015-10-09 17:55:14 +09: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
amaitland
c2b712f06c
Update to CEF 3.2454.1326
...
Remove IRequestHandler.OnBeforePluginLoad (was moved on the upstream API, will need to be re-added)
Fixes #1306
2015-10-01 20:21:21 +10:00
Alex Maitland
d95083ae4e
Merge pull request #1284 from amaitland/bug/popupjsb
...
Add support for JSB in Popups
2015-09-29 08:16:13 +10:00
amaitland
d9c3569bd7
Add IRequestHandler.OnResourceResponse
2015-09-29 08:03:54 +10:00
amaitland
73df171a22
Add example of setting Referer in OnBeforeResourceLoad
2015-09-29 06:51:38 +10:00
amaitland
2153c51d15
Add PostData null checks to examples
...
Add basic ajax post example for custom scheme handler test page/handler
2015-09-25 11:47:10 +10:00
amaitland
83f5ae94fa
Add popup to open BindingTest.html
2015-09-24 18:48:53 +10:00
amaitland
78dbdcd8ee
Update CI build to 45
...
Update another 43 reference to 43 in Home.html
2015-09-23 09:11:36 +10:00
amaitland
190178e79e
Only enable WCF if a bound object has been registered
...
Fixes #1272
2015-09-18 13:56:43 +10:00
amaitland
fff0808693
Demo opening OnOpenUrlFromTab - rough example
2015-09-18 13:22:11 +10: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
amaitland
99762a8e05
Add pointer check to CefPostDataWrapper - return an empty collection if no CefPostData was passed in
...
Handle the empty post data better in the example SchemeHandler
2015-09-16 16:07:40 +10:00
amaitland
3fac742403
Demo Post data for #1267
2015-09-16 16:01:48 +10:00
Alex Maitland
3ba9dc914d
Merge pull request #1268 from amaitland/fix/schemeregistration
...
Register Custom Schemes in all sub processes
2015-09-16 09:06:41 +10:00
amaitland
561b50b2cd
Register the same scheme twice to confirm parsing of command line arguments
...
Fix up some urls in the custom scheme popup test
Add PopupTest.html to WPF example menu
2015-09-16 09:05:52 +10:00
amaitland
7f46d90e00
Add EnableInternalPdfViewerOffScreen to simplify disabling surfaces for internal PDF viewer (offscreen rendering)
2015-09-16 07:22:18 +10:00
amaitland
5f8f09ec1f
Remove some duplication from the offscreen performance args part
2015-09-16 07:18:58 +10:00
amaitland
9ece6dcbbd
Update Home.html - make code relevant for newer branches
...
Start adding new sections making it more info a full tutorial on CefSharp
Still a work in progress
2015-09-10 21:59:49 +10:00