Commit Graph

6179 Commits

Author SHA1 Message Date
Jan Kurianski 4d624a41f8 Create ISSUE_TEMPLATE.md 2016-02-18 22:01:29 +11:00
amaitland 93bd341db4 A few minor changes to the IResourceHandler xml doco 2016-02-18 18:53:42 +10:00
Alex Maitland 7ec769de23 Merge pull request #1597 from amaitland/enhancement/rewriteresourcehandler
Rewrite IResourceHandler - Expose all methods
2016-02-18 18:25:18 +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
amaitland 231d6d8143 Allow for FindReplaceResponseFilter dataIn to be null 2016-02-18 16:31:09 +10:00
amaitland 110789db9e Add missing methods to IMenuModel 2016-02-18 13:36:25 +10:00
Alex Maitland 8a728a8bc8 Merge pull request #1596 from turgayselvi/patch-1
Change method parameter value to prevent popup window crashing.
2016-02-18 09:21:24 +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 cb02123000 Untabify 2016-02-17 17:22:17 +10:00
amaitland ec2059677a Add missing methods and types for IContextMenuParams
Part of #1589
2016-02-17 17:21:05 +10: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
antonyo 9419f61e29 Unset IsBrowserInitialized property when browser is disposed. 2016-02-16 19:39:45 +10:00
amaitland b89377e630 WPF Custom context menu - let CEF know when the menu has been closed 2016-02-12 11:55:11 +10:00
amaitland 784698c9a2 Add IsDisposed properties to IRunContextMenuCallback 2016-02-12 11:53:37 +10:00
amaitland 679fad6a89 Add AppendResponseFilter filter implementation
In the examples open custom://cefsharp/assets/js/application.js to see some data appended to a javascript file
2016-02-11 16:33:52 +10:00
Alex Maitland 3497903063 Merge pull request #1519 from amaitland/feature/requestfilter
Add IRequestHandler.GetResourceResponseFilter
2016-02-11 15:53:40 +10:00
amaitland 0288ee353e It's possible for the dataIn stream to be null, allow for it being optional. 2016-02-11 15:45:14 +10:00
amaitland 0962e6c46b Add an EmptyResponseFilterTest example - cannot seem to trigger the response filter just yet 2016-02-11 15:33:14 +10:00
amaitland 92f2fac35d Rewrite the xml doc for IResponseFilter 2016-02-11 14:55:28 +10:00
amaitland e2fe457b7e Update copyright year (few other files that needed updates as well, so they're coming along for the ride) 2016-02-11 14:40:47 +10:00
amaitland d84caa8646 Pass in find and replace strings as params
Code cleanup and simplifications - make things a little clearer
Remove dataInSize and dataOutSize - can be obtained from Stream.Length
Simplify writing overflow on second pass
Remove unused code
Should be working now
2016-02-11 14:36:23 +10:00
amaitland f238b2bf50 Add Filter test url to WPF Example 2016-02-11 11:33:44 +10:00
amaitland d5d31afadb Progress towards a working version 2016-02-11 11:25:28 +10:00
amaitland ede3370cfd Roughly port FindReplaceResponseFilter - compiles, not yet functional
https://bitbucket.org/chromiumembedded/cef/src/456ea5a19800a4cc05d0ce7f0c38111a7e73e18b/tests/cefclient/browser/response_filter_test.cc?fileviewer=file-view-default#response_filter_test.cc-31
2016-02-11 11:18:00 +10:00
amaitland 940a55a521 Rename to PassThruResponseFilter
Add example html file from https://bitbucket.org/chromiumembedded/cef/raw/456ea5a19800a4cc05d0ce7f0c38111a7e73e18b/tests/cefclient/resources/response_filter.html
2016-02-11 10:47:15 +10:00
amaitland 59edbf9ca5 Move filter into it's own folder 2016-02-11 10:44:29 +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 84f7c5dc62 WPF - Hack together a slightly more complete context menu example 2016-02-10 09:57:41 +10:00
amaitland 1e1e091c57 Add ThrowIfDisposed to more of the wrappers 2016-02-10 09:57:20 +10:00
amaitland 2d1f235942 IRunContextMenuCallback implements IDisposable (checked the other callbacks, it appears this is the only one that's missing the IDisposable interface). 2016-02-10 08:26:47 +10:00
amaitland f5248e7fec OffScreen - Dispose the framewrapper when done calling LoadUrl - was causing problems when trying to dispose quickly as the CefFrame reference was never released 2016-02-08 23:05:24 +10:00
amaitland 1c44c24f0e Add IsBrowserInitialized guard to OffScreen Size property - only called WasRezied when the browser has been initialized 2016-02-08 22:48:53 +10:00
amaitland 8a93ba6564 Demo setting and then getting a reference - using enable_do_not_track an example 2016-02-02 07:35:38 +10:00
Alex Maitland 69ffd4370b Merge pull request #1542 from amaitland/cleanup/duplicatecode
Cleanup ManagedCefBrowserAdapater + Remove Duplicate Code
2016-02-01 16:16:07 +10:00
amaitland 96e5900558 Add example of how to disable extensions
Add example of how to disable internal PDF viewer
2016-01-29 18:15:11 +10:00
Per Lundberg 5ad36a1778 Added support for drag & drop from input fields
There was a problem with the previous implementation. It worked correctly for many use cases:

- Dragging from a web app to a WPF control.
- Dragging from a WPF control to a web app.
- Dragging _html content_ from a web app to an input field

**But**: when dragging text from one input field to another, the text would vanish (!) when you drop it.

We debugged this here quite extensively. It turned out that if you have _set_ the `FragmentHtml` (even though you've set it to an empty string), it behaves like this. The solution is to avoid setting it if it is empty.
2016-01-29 09:26:27 +02:00
Alex Maitland c52a6347aa Update README.md
Release 47.0.0 - mark 45.0.0 as Unsupported.
Still list 43 as Release due to it being the last version to support NPAPI. Only bug fixes will be applied to this branch.
2016-01-22 13:33:42 +10:00
amaitland b388e13ecb Remove unused using statement 2016-01-18 18:32:53 +10:00
amaitland 072ca4cc97 Add IResourceHandlerFactory and IResourceHandler example - downloads a specific swf file using the .Net WebRequest class and returns the response 2016-01-18 18:32:44 +10:00
amaitland 1722914300 Re-add dpiAware to app.manifest for BrowserSubProcess 2016-01-16 09:11:40 +10:00
amaitland b220db31a0 Re-add the dpiAware attribute to the WinForms Example (no harm having it)
Add a list of supported applications including Windows 10
2016-01-12 18:21:06 +10:00
amaitland 306be4255d Add try/catch around _browserProcessServiceHost->Open call - seems that occasionally there's a timing issue
See #862, #804 and #1494
2016-01-12 16:00:38 +10:00
amaitland 0181d59850 Add SendKeyEvent overload that takes the message params and parses them - using the managed method would have required an unnecessary object creation
This code maybe useful to someone, can be used in the context of the OffScreen browser now
2016-01-12 15:31:13 +10:00
amaitland e20209b82d ManagedCefBrowserAdapter - _browserAdapter was never set so the Close method wasn't being called
Remove GetCefBrowser method as ManagedCefBrowserAdapter now totally relies on the managed wrappers for calls like SendKeyEvent
2016-01-12 15:16:31 +10:00
amaitland 63ba97042d Move the Drag OSR methods from ManagedCefBrowserAdapter to CefBrowserHostWrapper 2016-01-12 14:36:24 +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 627f80c8ec Pass in only the required params into BrowserProcessServiceHost - was passing in the browser adapter which wasn't strictly required.
Pass the IBrowser instance into IWebBrowserInternal.OnAfterBrowserCreated
Keep a reference to IBrowser in the ChromiumWebBrowser instances (reduces the number of GetBrowser calls and also makes it clearer internally when the browser variable is set)
2016-01-12 14:01:37 +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 a38b0d065b Tidy up the SchemeTest.html example a little more - still ajax posts requests are broken 2016-01-11 15:27:02 +10:00