Smaran Harihar
fa41529853
Add IRequestHandler.OnSelectClientCertificate ( #1878 )
...
* wip create hooks for onSelectClientCertificate
* create interface and wrapper for callback
* get certificate from CefCertificateList, convert to X509Certificate2, add them to X509CertificateCollection and return this to ClientAdapter
* code review changes. Certificate selection in wrapper requires recreation of certificate in iteration
* added certificate dialog selection to WinFormsRequestHandler. Used VS untabify to remove all the tabs and replaced it with spaces
* missed updating a summary on ISelectClientCertificateCallback
* code review changes
2016-12-13 09:48:15 +10:00
amaitland
6d568c7d09
Update CefSslInfoWrapper implementation and ClientAdapter::OnCertificateError so that it's now passed in as the param
...
(Possible to see the invalid certificate when there is an error)
2016-12-12 06:00:07 +10:00
amaitland
f2050a0861
Add scriptUrl and startLine to EvaluateScriptAsync
2016-12-02 06:10:40 +10:00
amaitland
abd1ad32d8
ILifeSpanHandler.OnBeforeClose the IBrowser wrapper was already disposed, so for now just create a new wrapper and dispose of it immediately after the call
2016-10-24 12:14:07 +10:00
amaitland
cce8cd825d
Upgrade to 3.2840.1493 (Chromium 54.0.2840.59)
...
Add IResponse to IRequestHandler::OnResourceRedirect
2016-10-19 08:17:50 +10:00
amaitland
c8177da0b6
Upgrade to 3.2743.1441
...
Add TransitionType to FrameLoadStartEventArgs
2016-07-16 21:24:00 +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
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
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
370ffc2769
ThrowUnknownPopupBrowser has been removed - throwing an exception would crash CEF is a lot of cases, so now we'll just pass null into the interface methods
...
Change EvaluateScriptAsyncto check for null and subsequently return null (would have caused a nullptr exception)
2016-04-18 13:51:24 +10:00
edgchen1
0a01649b58
Issue 1594 - Updated calls to GetBrowserWrapper()
...
Changed the returnNullIfBrowserNotFound parameter to true for some calls to GetBrowserWrapper() to prevent exceptions when closing a popup window.
2016-04-15 10:32:44 -07:00
amaitland
cad16c40e4
CEF API Changes for 2623 upgrade
...
Update IGeolocationHandler.OnCancelGeolocationPermission - remove requestUrl
2016-03-18 08:47:24 +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
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
turgayselvi
46c9836f80
ClientAdapter.cpp
...
set returnNullIfBrowserNotFound field value as "true" for GetBrowserWrapper method in OnBeforeResourceLoad in order to prevent crashing popup window, when window is closed.
2016-02-17 14:43:08 -08:00
amaitland
87461203b5
Fix for #1594
...
When using a popup and OnResourceLoadComplete it's possible that the popup will be removed from the collection causing an exception
Simple fix for now, just return nullptr in that particular instance.
2016-02-17 13:13:19 +10:00
amaitland
c4eb6bf564
Remove some stray semi colons
2016-02-17 12:57:05 +10:00
amaitland
8d00a3dd26
Add a rough implementation of IRequestHandler.GetResourceResponseFilter
...
Looks like the basic pass through implementation is working - have yet to append any data
2016-02-11 10:40:11 +10:00
amaitland
264be0e753
Store a reference to IBrowser in ClientAdapter rather than trying to access it through the BrowserAdapter
2016-01-12 14:11:49 +10:00
amaitland
f74bef6921
Instead of passing in the BrowserId on OnAfterBrowserCreated pass in the IBrowser
2016-01-12 13:42:35 +10:00
amaitland
bae3c28e92
Update copyright to 2016
2016-01-11 14:11:30 +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
8d013feb9f
Replace gcnew String() with StringUtils::ToClr().
2015-12-07 10:52:57 -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
Rich McNeary
ce79f71275
When OnFocusedNodeChanged data is passed from render to browser process.
2015-12-03 15:59:27 -05:00
amaitland
8cd491562d
Reorder params for SetInt64, SetJsCallback and SetCefTime - they're not in a logical order
2015-12-02 19:20:54 +10: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
263ac29a40
Reorder serializer params - now slightly more logical
2015-11-18 18:49:12 +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
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
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
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
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
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