Commit Graph

2231 Commits

Author SHA1 Message Date
amaitland 74af952377 Expose PrintToPdf - can use the callback directly if required 2016-05-31 19:11:01 +10:00
amaitland feff68895f Add Visit cookie async methods 2016-05-31 18:46:45 +10:00
amaitland ec8952073a TaskStringVisitor now explicitly implements the interface 2016-05-31 18:27:34 +10:00
amaitland c6d7945813 Add TaskCookieVisitor to wrap CookieVisit in an async fashion 2016-05-31 18:27:20 +10:00
amaitland 18e3cb77de Add IResponse.ErrorCode
Add IResponse.IsReadOnly
2016-05-30 08:20:25 +10:00
amaitland 28f6abd508 Update to 51.0.0 2016-05-30 07:59:51 +10:00
amaitland 62292e4211 NPAPI Plugin methods removed from API
cef_runnable.h has been removed
Update IJsDialogHandler.OnJSDialog - acceptLang removed from API
2016-05-30 07:57:48 +10:00
amaitland bc298f6415 Add GetSource and GetText methods that take an IStringVisitor 2016-05-29 22:21:32 +10:00
amaitland 3061becb3f IResourceHandler now implements IDisposable - you can cleanup and resources when the handler is disposed 2016-05-26 07:28:19 +10:00
amaitland 9262d731d5 IResponseFilter now implements IDisposable
Call delete in CefResponseFilterAdapter destructor
2016-05-20 08:13:14 +10:00
amaitland d1d754cf58 Remove CefWindowInfo from ClientAdapter::OnBeforePopup they will now need to be made in client code
(This is now possible as IWindowInfo exposes all the relevant pieces).
This will allow for a little more flexibility, specially on the WinForms front, it should be possible to create the control and then show the window later
2016-05-19 12:11:29 +10:00
amaitland 7bbcf162f9 Remove CefSubProcess.cpp - having such trivial cpp files seems silly
Convert CefRenderProcess into a cpp class - this should theoretically allow users to add CefSharp.BrowserSubprocess.Core as a reference then use their own process to spawn it
Move CefRenderProcess and CefSubProcess into CefSharp.BrowserSubprocess namespace - otherclasses should really be moved as well

Only use our custom subProcess when type is render, for gpu and plugin processes the standard implementation is just fine

Remove CefSubProcess
Rename CefAppWrapper to CefSubProcess
2016-05-16 19:46:30 +10:00
amaitland 54f7fccdaa Upgrade to .Net 4.5.2
Resolve #1572
2016-05-10 20:28:21 +10:00
amaitland c9944c981a Split paramArray and missing arg logic out into two if statements. Previously null was being replaced by Type.Missing.
Two seperate if statement branches allows for a method that has options params and a param array

Resolve #1673
2016-04-29 18:10:43 +10:00
amaitland a15cb795dd Add default values to DependencyChecker.AssertAllDependenciesPresent - make it easier to execute stand alone 2016-04-28 19:40:04 +10:00
amaitland 60ae3cc739 Switch to using TrySetResult instead of SetResult
Invoke TrySetResult using TaskFactory.Run so continuations are run in an async fashion

Reference #1672
2016-04-27 21:01:58 +10:00
amaitland cb5f4f6586 Add new CefMenuCommand enum items 2016-04-19 14:24:17 +10:00
Akash Jana d0e74f819f Fix Issue #1582, Use ToLowerInvariant while converting Function names to avoid culture specific conversion. 2016-04-17 19:17:09 -07:00
amaitland f16db5567c More xmldoc 2016-04-15 16:28:52 +10:00
amaitland 560fa2b867 Improve ResourceHandler documentation, add a minor simplification and update the FlashResourceHandler example to demo how simple it is to use a ResourceHandler when extending FlashResourceHandler 2016-04-15 16:25:06 +10:00
amaitland 4de3a1795d Remove DisposableResource - only class implementing it was JavascriptObjectRepository and it didn't override the InternalDispose method 2016-04-15 15:42:40 +10:00
amaitland fb5c6f7ecb More xml doc improvements 2016-04-15 15:27:19 +10:00
amaitland 7f1278d7e6 ICookieVisitor now implements IDisposable - call delete in CookieVisitor.h so there's a notification when the visitor
Improve ICookieVisitor doc
2016-04-15 15:26:02 +10:00
amaitland 98e8e1812f Add some remarks to FrameLoadStart about executing javascript 2016-04-15 12:05:50 +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
dga711 4e79f1091b Add some xml documentation (#1643)
* add some xml doc

* add missing drag xml doc

* xml doc corrections

* more xml doc
2016-04-08 18:55:29 -05:00
amaitland 669404f74c Change new paramAray test methods in BindingTest.html to execute immediately (same as all the majority)
Revert changes to NuGet.config
Remove unused using statement from ScriptedMethodsBoundObject
Rename JavascriptMethod.Parameters to just JavascriptMethod.Parameters (it's in the context of the method so naming was redundant)
Pre compute HasParamArray for minor (very minor) performance improvement - relevant when executing method many times in a tight loop
2016-04-05 17:03:33 +10:00
Alex Maitland 7cf5f17565 Merge pull request #1644 from ChrisBardsley/master
Add paramArray support to Javascript Binding
2016-04-05 01:06:54 -05:00
Chris Bardsley d3d6907dac Refactored changes from build#1644 to account for discussed changes. 2016-04-04 21:44:22 -07:00
amaitland e368a1a55e Update IDisplayHandler documentation - add return values that were missing 2016-03-30 10:58:29 +10:00
Chris Bardsley b628199ee9 Fix for C# paramArray and refactor on arguments mismatch 2016-03-23 21:17:47 -07:00
amaitland 105bdf3f80 ContextMenuEditState - Rename NONE to None for consistency 2016-03-22 07:20:58 +10:00
amaitland 5f087838ac Improve comments around CEF UI thread 2016-03-20 10:01:49 +10:00
amaitland 466fa67525 Change origin from string to Uri as that's what the code is expecting - so github.com wasn't working, http://www.github.com does
Improved the documentation a little
2016-03-20 09:45:28 +10:00
amaitland 8e817b3feb IRequestContext.ResolveHost changed to ResolveHostAsync with a TaskCompletionSource wrapper 2016-03-20 09:30:42 +10:00
amaitland 174beb2371 Add IRequestContext.ResolveHost
Add IRequestContext.ResolveHostCached
Both methods are for DNS -> IPAddress resolution

https://bitbucket.org/chromiumembedded/cef/commits/ce1e9e65fd3f5a075cac924ed987165bb4641d9d?at=master
2016-03-20 09:14:23 +10:00
amaitland ee67324a24 Add IRequestContext.CloseAllConnections
Add IRequestContext.ClearCertificateExceptions
Also forgot to make IRequestContext extend IDisposable

https://bitbucket.org/chromiumembedded/cef/commits/cd7e8a055816f1bfc681c18a2e959ef3e414f265?at=master
2016-03-20 08:13:45 +10:00
amaitland e4b2f24792 Add missing ResourceType enums as per https://bitbucket.org/chromiumembedded/cef/commits/3c1f28b051a44f3ec6d07bed99ff2ac11f4b88fe?at=master 2016-03-20 08:02:25 +10:00
amaitland f18fe9d4ae Add Cef.CurrentlyOnThread method for checking if your on a particular CEF thread
Add Cef.GetGlobalRequestContext, can be used to set preferences and other related features
Update IRequestContext.SetPreference documentation, preferences set via the command line are read only
2016-03-19 07:30:03 +10:00
amaitland cad16c40e4 CEF API Changes for 2623 upgrade
Update IGeolocationHandler.OnCancelGeolocationPermission - remove requestUrl
2016-03-18 08:47:24 +10:00
dga 86c3ec547e Target default scheduler to fix #1630 2016-03-17 21:58:14 +01:00
amaitland 703a7beb10 Add disable javasript to BrowserSettings comment so it's easier to search for 2016-03-11 08:56:09 +10:00
amaitland 2ee4eeab54 Update IBrowserSettings.Javascript comment - remove command line flag reference, no such argument exists
https://bitbucket.org/chromiumembedded/cef/issues/1848/fix-documentation-error-no-disable#comment-26103961
2016-03-11 08:45:30 +10:00
amaitland dd7ea823a3 Add PopupFeatures and BrowserSettings to OnBeforePopup
Update WinForms popup example - comment out experimental feature

Had to add interfaces to allow for wrapping of the structures (BrowserSettings and PopupFeatures)

Resolves #1586
2016-03-07 18:58:56 +10:00
amaitland af457916e3 Implement IFindHandler
Resolves #1459
2016-03-07 12:44:49 +10:00
amaitland ebccd68004 Add Identifer and IsReadOnly to IRequest
Resolves #1605
2016-03-07 08:39:45 +10:00
amaitland be593403b2 Upgrade version numbers to 49.0.0 - less confusion when downloading the packages from MyGet
Obviously the Chromium version hasn't been updated as yet, still waiting on cefbuilds.com to output the relevant packages.
2016-02-26 14:39:32 +10:00
amaitland 15d79c1561 Add IRequest.ResourceType 2016-02-25 11:24:10 +10:00
amaitland 93bd341db4 A few minor changes to the IResourceHandler xml doco 2016-02-18 18:53:42 +10:00
amaitland 12f42331dc Resolves #1592 - Expose all methods of CefResourceHandler
Previously we were passing in the frame, request wrappers which hadn't been used, so just keep things simple and remove the code.
Current users should extend ResourceHandler instead of IResourceHandler and add the override keyword
TODO: Deal with setting bytesRead property - currently using Stream.Length which won't work for every stream type
2016-02-18 16:44:51 +10:00