Commit Graph

601 Commits

Author SHA1 Message Date
amaitland c135fe2d90 Fixes #1387 StatusCode, StatusText and MimeType were always being overwritten in the constructor 2015-10-30 08:00:02 +10:00
amaitland 94b77750e6 Fix #1357
In GetBrowserWrapper check if _cefBrowser has a valid pointer
Add ManagedCefBrowserAdapter IsDisposed check in JavascriptCallbackProxy::GetBrowser
Add CanExecute to check if underlying resources are still available
2015-10-26 12:04:54 +10:00
amaitland cb927c5ef6 Remove redundant else statement from StringUtils.h 2015-10-26 11:49:14 +10:00
illfang c5a9ed9038 added missing include for CI build 2015-10-23 16:51:22 +09:00
illfang bd95633741 added CreateExceptionString to the string utils which creates a verbose message from a Cef V8 exception, if possible 2015-10-23 16:40:25 +09:00
amaitland 7aa128781d Add IsDisposed checks
Resolves #1307
2015-10-13 19:46:38 +10:00
amaitland b1053cb6a5 Merge remote-tracking branch 'remotes/upstream/master' into enhancement/v8contextperframe 2015-10-13 14:08:32 +10:00
amaitland b739c155f9 Make ICookieManager.FlushStore Async
Resolves #1276
2015-10-12 08:47:38 +10:00
amaitland 514d7e275d Add IContextMenuHandler.RunContextMenu 2015-10-12 08:08:41 +10:00
amaitland 20b8aa5732 Add IDragHandler.OnDraggableRegionsChanged 2015-10-12 07:16:33 +10:00
amaitland 2f3d9f868f Make js callbacks and async methods Frame aware - add FrameId so they can be executed on a specific frame
Resolves a problem where multiple contexts are created and only the first one is dealt with properly (each frame has it's own V8 context)
2015-10-11 20:41:17 +10: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
amaitland 8f2dbcbe91 Remove stray quotes 2015-09-30 08:30:03 +10:00
amaitland b9ee476e8e Fix up some of the vc++ include mess that we had going
Cleanup using namespace statements as well
2015-09-29 16:26:06 +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 d161cefa6c Merge remote-tracking branch 'remotes/upstream/master' into feature/geocallback 2015-09-28 07:21:14 +10:00
amaitland 5e2546067b Change CefRequestWrapper to return null when PostData is null; 2015-09-25 11:47:09 +10:00
amaitland cb989648cb Keep a WeakReference to IBrowserAdapter instead of IBrowser and lookup the browser by it's Id for callbacks 2015-09-24 21:00:53 +10:00
amaitland 8bba47d383 Add TODO about callbacks being executed in the context of a popup 2015-09-24 20:24:16 +10:00
amaitland 8a8da5b35a Async JSB now working in popups
Still have the issue of callbacks not working as expect, for some reason it can't find the context
2015-09-24 20:08:15 +10:00
amaitland a93e9e51e5 Only send kJavascriptRootObjectRequest when main browser is created (OnRenderViewReady)
Remove IsPopup check from async binding
2015-09-24 19:50:48 +10:00
amaitland c4f99dad7f Add rough GetGeolocationAsync implementation
Not tested yet
2015-09-22 12:47:03 +10:00
amaitland 1843486050 Rename CefSharpPdfPrintSettings to PdfPrintSettings (inconsistent naming)
Add xml documentation to PdfPrintSettings
Change return type from Task to Task<bool> (exceptions are expensive and unnecessary)
Fix small bug in assigning HeaderFooterTitle and HeaderFooterUrl (values were switched)
Allow PrintToPdfAsync to accept nullptr for settings (use defaults)
Update xml documentation in various instances for PrintToPdfAsync
2015-09-20 18:43:06 +10:00
David Serfozo 6ecb0fc129 PrintToPdf API changed to use Tasks instead of callbacks 2015-09-19 13:28:52 +02:00
David Serfozo 8e8edf80f3 simplified PrintToPDF in CefBrowserHostWrapper 2015-09-19 13:06:08 +02:00
David Serfozo fc03b24abf added printtopdf implementation 2015-09-19 11:02:32 +02:00
David Serfozo e6338ce7e6 added printtopdf to browserhost interface 2015-09-19 10:53:46 +02:00
amaitland 9a7ca5eda0 Rename IComplectionHandler to ICompletionCallback (matches CefComplectionCallback naming)
Should be the final breaking changes before the 43.0.0 release
2015-09-18 17:21:30 +10: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 e492c0d21e Fixes #1263
Pass in CefCustomScheme as command line argument, as they're registered correctly in all processes
2015-09-15 15:15:26 +10:00
amaitland 19afbfe167 Add BrowserSettings.WindowlessFrameRate
Add IBrowserHost.WindowlessFrameRate
2015-09-10 15:14:37 +10:00
amaitland d4dd2bfeaf Revert "Do not self-dispose CefCallbackWrapper" Reverts commit 86c72ea1eb.
No longer keep reference to the callback wrapper in ResourceHandlerWrapper, will be disposed like all the other callbacks

Changes are still related to GitHub issue #1143
2015-09-09 09:09:51 +10:00
jankurianski 86c72ea1eb Do not self-dispose CefCallbackWrapper
Because ResourceHandlerWrapper already takes care of this.  Fixes
AccessViolationException noted in #1143
2015-09-04 14:17:10 +10:00
amaitland 63157b8e1b Add IDisplayHandler.OnFullscreenModeChange
No sample implementation as yet
2015-09-04 12:21:09 +10:00
amaitland d6e2c3233e Untabify 2015-09-01 22:15:06 +10:00
amaitland 24a423bfc7 Fixed VS2015 build errors - had to prefix array<> with cli namespace as compiler was reporting ambiguous reference (VS2013 was fine with the code)
Basic VS2015 build should now be working
2015-09-01 22:09:47 +10:00
amaitland 5901cb60b0 Remove StreamAdapter - no longer used 2015-09-01 22:07:55 +10:00
amaitland c9f9fdb26a Add missing return 2015-09-01 22:07:44 +10:00
amaitland 4a1b4aba18 Remove stray semi colon 2015-09-01 22:07:43 +10:00
amaitland de7f6e186e Remove lock from StreamAdapter (was only used one, so not required)
Remove lock from ResourceHandlerWrapper - seemed kinda pointless and the cef implementation doesn't have one.
https://bitbucket.org/chromiumembedded/cef/src/4a8546efd70700eed1e1f921e85293abf90d2691/libcef_dll/wrapper/cef_stream_resource_handler.cc?at=master#cef_stream_resource_handler.cc-140
2015-09-01 18:59:33 +10:00
Bjarte Skogøy c9d01fa298 Fix issue with disposed tasks in .Net 4.0. 2015-09-01 09:40:07 +02:00
amaitland a63f11e4ea Tweak ThrowIfDisposed to output the first interface of the object - should work for all current classes that inherit from CefWrapper 2015-09-01 15:42:39 +10:00
amaitland 72b1bcab49 Add CefWrapper object to abstract some of the boiler plate stuff like ThrowIfDisposed and IsDisposed
Fix up incorrect namespaces (move to Internals)
2015-09-01 12:10:42 +10:00
amaitland 51b699ef56 Add hasparent check to OnAfterCreated when retrieving the popup instance 2015-08-31 14:54:30 +10:00
amaitland ac269e860c Add more IsDispoed properties 2015-08-31 14:41:47 +10:00
amaitland 330e6b38b0 Add IsDisposed property to interface objects
Fixes #1223
2015-08-31 13:32:48 +10:00
amaitland fc4307629b Improve IMenuModel xml documentation
Add NotFound to CefMenuCommand
Strongly type some more of the params for IMenuModel
2015-08-31 12:12:56 +10:00
amaitland fa7728b0d0 Strongly type commandId
Add example of using custom menu id numbers
2015-08-31 11:36:49 +10:00
amaitland 5ec43558c7 Merge branch 'master' of https://github.com/zkovacs1/CefSharp 2015-08-31 11:25:47 +10:00