rassilon
431cb511c3
* Move unmanged objects into finalizer and call finalizer from Dispose.
...
* Remove DisposableResources from ManagedCefBrowserAdapter
* Improve disposing of CefRequestWrapper
* Have callbacks dispose themselves.
* Allow the Application exit handler shutdown CEF from the Winforms example application.
2015-06-13 10:42:33 -04:00
amaitland
5cf5fcf24c
Few more tweaks to simplify getting the browser instance.
...
Still need to move the wrapper out from ManagedCefBrowserAdapter and into ClientAdapter for the main CefBrowserWrapper
2015-06-11 13:33:35 +10:00
amaitland
fb8be8c816
Remove outdated comment, both key params are passed through
2015-06-11 13:07:25 +10:00
amaitland
4dbd6e36a7
IPopupHandler now implements IKeyboardHandler
...
At some point later on we can then consolidate the code in ClientAdapter to be much simpler
2015-06-11 12:40:32 +10:00
amaitland
169a8d1cf6
Dispose of CefContextMenuParamsWrapper
2015-06-11 12:28:20 +10:00
amaitland
dc6f991065
Auto dispose of drag data
2015-06-11 12:25:38 +10:00
amaitland
abeaca86a9
Reduce the amount of code required to get the cached popup instance
2015-06-11 12:24:32 +10:00
amaitland
d2f9ab13b4
Rename entry to browserWrapper (same as all other instances)
...
Remove the browserId variable - was really only there for debugging early on
2015-06-11 11:49:22 +10:00
amaitland
6aecd5e2bc
Add IBrowser to ILifeSpanHandler.OnBeforeClose
2015-06-11 11:44:35 +10:00
amaitland
defe059908
Start making the wrapper/callback naming consistent
...
Change to using auto where possible
2015-06-11 11:21:55 +10:00
amaitland
60be64f67b
Add IBrowser to IRequestHandler.OnBeforeBrowse - reorder params to match CEF API
...
Need to look at loading the cached browser instance
2015-06-11 11:06:19 +10:00
amaitland
801bebbbd0
Merge branch 'MorePopupHandlerWork' of https://github.com/rassilon/CefSharp
2015-06-11 10:04:43 +10:00
amaitland
d0af09c82d
Merge remote-tracking branch 'remotes/origin/cleanup/downloadhandler'
2015-06-11 09:33:41 +10:00
rassilon
79d8565d9e
Add native_key_code paraameter to OnKeyEvent since it isn't exactly the same as windowsKeyCode on Windows. Update docs to adapt.
2015-06-10 19:22:00 -04:00
rassilon
eab58306c1
Merge remote-tracking branch 'origin/master' into development
...
Merges master into the formerly cef/2272 branch.
Conflicts:
CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj
CefSharp.BrowserSubprocess.Core/packages.config
CefSharp.Core/CefSharp.Core.vcxproj
CefSharp.Core/Internals/ClientAdapter.cpp
CefSharp.Core/Internals/ClientAdapter.h
CefSharp.Core/packages.config
CefSharp.Example/RequestHandler.cs
CefSharp.Example/TempFileDialogHandler.cs
CefSharp.OffScreen.Example/packages.config
CefSharp.Test/packages.config
CefSharp.WinForms.Example/packages.config
CefSharp.Wpf.Example/packages.config
CefSharp/IDialogHandler.cs
CefSharp/IKeyboardHandler.cs
CefSharp/IRequestHandler.cs
build.ps1
2015-06-10 11:31:16 -04:00
rassilon
fdc0cc972a
Ref parameters are simple after all.
2015-06-10 00:17:35 -04:00
rassilon
fd0f8499fc
Add example Ctrl-T menu handler that gets invoked when you have focus inside browser.
2015-06-09 23:29:09 -04:00
rassilon
94e3fecae1
Make isKeyboardShortcut actually settable from the handler, and improve the IKeyboardHandler documentation.
2015-06-09 16:20:55 -04:00
amaitland
d4630ead1a
API changed for OnBeforeResourceLoad, OnCertificateError, OnQuotaRequest.
...
For OnCertificateError, OnQuotaRequest the callback was changed to be a generic one, so no outward facing API change.
With OnBeforeResourceLoad there is now a async callback which isn't used, the only two options that will work are Cancel or Continue
Conflicts:
CefSharp.Core/Internals/ClientAdapter.cpp
CefSharp.Core/Internals/ClientAdapter.h
2015-06-09 14:43:18 +10:00
amaitland
adc47f075f
Update to 2272 nuget packages
...
Updated OnCertificateError and OnFileDialog as API changed - build now compiles
Conflicts:
CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj
CefSharp.BrowserSubprocess.Core/packages.config
CefSharp.Core/CefSharp.Core.vcxproj
CefSharp.Core/packages.config
CefSharp.OffScreen.Example/packages.config
CefSharp.Test/packages.config
CefSharp.WinForms.Example/packages.config
CefSharp.Wpf.Example/packages.config
2015-06-09 14:35:52 +10:00
Bill Tutt
a92e44e4ad
Move IBrowser into FrameLoadStart/EndEventArgs.
2015-06-08 23:07:37 -04:00
Bill Tutt
a7ba17fbc2
The changes continue...
2015-06-08 22:48:29 -04:00
amaitland
721894feaf
Reorder usings - remove redundant paths and group cef imports at the top
2015-06-05 15:48:15 +10:00
amaitland
74eb29e92a
Rename callback wrappers to bring them inline with the new ones
2015-06-05 15:44:25 +10:00
Bill Tutt
3a330f4352
Here's some more, and the missing return stmt. GetResourceHandler of course doesn't go on PopupHandler.
2015-06-03 00:14:43 -04:00
amaitland
6bda7b20aa
Add CefAuthCallbackWrapper
2015-06-01 16:46:28 +10:00
amaitland
4b6af9448a
Add CefFileDialogCallbackWrapper
2015-06-01 16:27:42 +10:00
amaitland
053c2f0f3f
Add CefGeolocationCallbackWrapper
2015-06-01 11:56:50 +10:00
amaitland
e6e39e773a
Add CefBeforeDownloadCallbackWrapper
2015-06-01 11:48:12 +10:00
amaitland
2ed594df66
Move CefDownloadItemCallbackWrapper into Internals folder/namespace
2015-06-01 11:38:53 +10:00
amaitland
6daff6e780
Update OnBeforeUnloadDialog to expose IJsDialogCallback
...
Add a Continue overload to IJsDialogCallback to simplify use (just passes in an empty CefString)
2015-06-01 11:31:57 +10:00
amaitland
1d6bfa09a9
Simplify CloseAllPopups - can now use the IBrowserHost interface rather than casting
2015-06-01 11:19:06 +10:00
amaitland
3fb959f7ed
Add CefDownloadItemCallback Wrapper - Can now Pause and Resume a download
2015-06-01 11:12:56 +10:00
amaitland
48d516edc0
Merge DownloadAdapter code into ClientAdapter - now consistent with other handler code
...
Resolves the issue of passing in the browserAdapter instance
2015-06-01 10:49:14 +10:00
Bill Tutt
668738ed58
Add some more methods on IPopupHandler and call them.
...
Don't put the following handlers on IPopupHandler due to the underlying security related purpose, but add IBrowser parameters:
* OnCertificateError
* OnQuotaError
* OnPluginCrashed
* OnRenderProcessTerminated
* OnProtocolExecution
* OnBeforePluginLoad
* GetAuthCredentials
2015-05-29 01:33:44 -04:00
amaitland
d394124b3a
Move public facing CefBrowserHost methods into extension methods that use the IBrowserHost wrapper
2015-05-29 11:23:25 +10:00
amaitland
9c7bf2e930
Change ResourceHandler to IResourceHandler
...
Add StatusText
2015-05-27 17:11:52 +10:00
amaitland
8a53dfe54d
Pass the IBrowserAdapter (ManagedCefBrowserAdapter) reference directly into the ClientAdapter instance
2015-05-21 13:57:17 +10:00
Bill Tutt
c08b1ff38e
Fix some review comments, and add frameloadstart/end/error related methods to IPopupHandler.
2015-05-20 22:59:43 -04:00
Bill Tutt
adb5ae0d77
More work on wrapping CefBrowser/CefFrame.
2015-05-17 17:41:44 -04:00
amaitland
95470df8ee
Merge remote-tracking branch 'remotes/upstream/cef/2272' into enhancement/onjsdialog
2015-05-07 15:27:44 +10:00
Alex Maitland
16ba0ab6a5
Merge pull request #1008 from amaitland/enhancement/requestcallback
...
Implement CefRequestCallback wrapper
2015-05-07 15:24:44 +10:00
Alex Maitland
0900a6cd32
Merge pull request #1011 from amaitland/enhancement/favicon
...
Add OnFaviconURLChange
2015-05-07 15:22:40 +10:00
amaitland
b118b5f678
Merge remote-tracking branch 'remotes/upstream/cef/2272' into enhancement/requestcallback
2015-05-07 14:35:35 +10:00
amaitland
fb3fb8e0de
Merge remote-tracking branch 'remotes/upstream/cef/2272' into enhancement/onjsdialog
2015-05-07 14:32:36 +10:00
amaitland
fb87cab4f4
Add OnFaviconURLChange implementation - there is no IDisplayHandler interface so added the method to IRequestHandler as that seemed the next best place.
2015-05-07 13:52:19 +10:00
amaitland
fc9e6dc9ad
Rewrite OnJSDialog so now matches the Cef API, whilst I understand that the ideal of having the types split into different methods was nice from a user point of view, I think we kept functionality from users that was exposed.
...
So the callback wrapper has been added so can now be executed async. SuppressMessage is now possible.
Fixes #999
2015-05-07 12:53:36 +10:00
amaitland
dc986b3b06
Implement CefRequestCallback wrapper and expose for relevant CefRequestHandler interfaces
...
Resolves #982
2015-05-07 11:33:33 +10:00
Bill Tutt
1f59244b81
Merge remote-tracking branch 'origin/cef/2272' into CefSharpBrowserWrapper
2015-05-05 18:26:05 -04:00
amaitland
db3956bbe4
Add ILifeSpanHandler.OnBeforePopup no_javascript_access as ref param
2015-05-04 16:39:18 +10:00