Commit Graph

6179 Commits

Author SHA1 Message Date
amaitland 6291240a4f Enable NPAPI in the example projects 2015-07-23 08:31:32 +10:00
jankurianski 1301e941ce Add ChromeWidgetMessageInterceptor to WinForms Example
Addresses #570
2015-07-22 22:34:02 +10:00
amaitland 7169d904e7 Pedantic code cleanup - mostly just formatting and rearrange some if statements
Fixed one minor issue with OnBeforeResourceLoad - wouldn't have been called for a popup if RequestHandler was null
2015-07-22 15:36:44 +10:00
amaitland a88ca171c9 Add IBrowser param to OnFaviconUrlChange
Add IBrowser param to OnResourceRedirect
Update comment so hopefully it's clearer that the browserControl param is the ChromiumWebBrowser instance
2015-07-22 14:53:34 +10:00
amaitland 1aba3b59e6 Add Request param to OnResourceRedirect 2015-07-22 14:47:28 +10:00
amaitland 2a0b7a9ed6 Add AcceptLanguageList to BrowserSettings and CefSettings
Resolves #1055
2015-07-22 14:32:28 +10:00
Alex Maitland 3735150cdc Merge pull request #1135 from amaitland/feature/requestcontext2
Add basic RequestContext Implementation
2015-07-22 14:27:07 +10:00
amaitland be501ece1d Add basic comment to OffScreen example
Comment out second call to MainAsync
2015-07-22 14:25:10 +10:00
amaitland 42d51980ef Add nullptr check and return NULL for implicitor operator when object is not initialized 2015-07-22 14:19:50 +10:00
amaitland 50af1575cc Dispose of the RequestContextSettings when the RequestContext is disposed of 2015-07-22 14:11:44 +10:00
amaitland 4ce93ba555 Add RequestContextSettings wrapper 2015-07-22 14:09:20 +10:00
amaitland 0c031a1a3b Split RequestContext out from BrowserSettings 2015-07-22 13:51:16 +10:00
Jan Kurianski 0848139715 Merge pull request #1136 from NumbersInternational/fixes/dispose-twice-crash-fix
ManagedCefBrowserAdapter can now be disposed before initialization
2015-07-22 13:21:36 +10:00
jankurianski d8891c7f50 ManagedCefBrowserAdapter can now be disposed before initialization
This fixes a crash when disposing a ChromiumWebBrowser prior to
initialization.
2015-07-22 13:16:59 +10:00
amaitland 265ab37620 Assign cachePath
TODO create a wrapper around CefRequestContextSettings
2015-07-21 23:57:24 +10:00
amaitland dd4896d6e6 Rename cookies to cache path as new API enables access to more settings 2015-07-21 23:54:17 +10:00
Tommaso Ercole a3e869b542 Add basic CefRequestContext wrapper 2015-07-21 23:51:49 +10:00
amaitland f1d68df014 Switch back to using primary MyGet feed 2015-07-21 21:36:13 +10:00
Alex Maitland 847cedb3c7 Merge pull request #1134 from NumbersInternational/cef/2357-jan
Upgraded to 3.2357.1274
2015-07-21 21:30:09 +10:00
jankurianski cf7cb8b60e Fix code formatting 2015-07-21 20:26:29 +10:00
jankurianski 153d0fc7ea Reverting unintended changes to CefExample.cs 2015-07-21 20:20:18 +10:00
jankurianski 5e658fccb5 Upgraded to use local 3.2357.1274 NuGet packages and fixed breaking changes 2015-07-21 15:16:25 +10:00
amaitland a695cc9801 Explicitly Delete(dispose) CallbackRegistry so that it's unmanaged resources are freed ASAP 2015-07-16 13:44:03 +10:00
Alex Maitland 153c955885 Merge pull request #1113 from amaitland/feature/postdata
Add IPostData to IRequest
2015-07-16 13:37:12 +10:00
amaitland 86efb2c515 Add some basic comments for the extension methods 2015-07-16 13:36:00 +10:00
amaitland c88952a9fa Merge remote-tracking branch 'remotes/upstream/master' into feature/postdata 2015-07-10 16:55:46 +10:00
amaitland b765937b53 Remove commented out code block - was implemented in c# already was used as reference 2015-07-10 16:35:29 +10:00
amaitland 57c12033ad Comment out methods that aren't implemented from the IPostData interface 2015-07-10 16:33:57 +10:00
Alex Maitland c3dd980406 Merge pull request #1117 from amaitland/feature/replacewcf2
Followup changes for js callback ipc
2015-07-10 10:44:20 +10:00
amaitland 831d3bf166 Untabify 2015-07-10 10:40:30 +10:00
Alex Maitland cf08a6f8ad Merge pull request #1114 from arsher/cefipcjscallbacks
Javascript callbacks moved to cef ipc
2015-07-10 10:38:48 +10:00
amaitland 18c19edc86 kJavascriptCallbackDestroyRequest jscallbackId is located at Index 0 2015-07-10 10:35:51 +10:00
amaitland c74dc29b57 Add TODO about throwing exception in CefAppUnmanagedWrapper 2015-07-10 10:26:21 +10:00
amaitland a945e3f4dc Always create response message so that errors can be returned 2015-07-10 10:24:48 +10:00
amaitland 4784a0122e Return error message when unable to enter context or find matching frame 2015-07-10 10:22:12 +10:00
amaitland ca836c50af Reapply change to move try finally block inside context->Enter() - otherwise we could potentially Exit a context we never entered 2015-07-10 10:18:01 +10:00
amaitland d0f316379c Add more detail to NOTE
Call GetIdentifier() directly rather than allocating browserId
2015-07-10 10:15:27 +10:00
amaitland c201454905 Merge branch 'cefipcjscallbacks' of https://github.com/arsher/CefSharp into feature/replacewcf2 2015-07-10 10:12:53 +10:00
David Serfozo e0d5dcd283 added error handling when browser id has no match in render process 2015-07-09 23:36:31 +02:00
amaitland 249c09c583 Add menu to WPF example
Can now easily open binding test example
TODO: Import tests from cefclient example
2015-07-09 12:21:59 +10:00
amaitland 2eaebcc715 Remove stray line 2015-07-09 12:04:21 +10:00
amaitland d766cc826e The Message should be sent on the corresponding browser, not just the first browser - handle popups
Remove browserId from the message as it shouldn't be required now
2015-07-09 12:01:44 +10:00
amaitland 0f4570bba4 If BrowserId doesn't match then return an error message rather than throw exception 2015-07-09 11:35:10 +10:00
amaitland 582df0d0ad Only Exit context if we actually entered it - calls need to be paired up
Always create response message and return a message if unsuccessful
2015-07-09 11:23:11 +10:00
amaitland 7ec1d78205 Don't send message if browser->IsDisposed - shouldn't be throwing exceptions in destructor/finalizer blocks 2015-07-09 11:14:58 +10:00
amaitland 60f98cb55d Fix formatting 2015-07-09 11:06:42 +10:00
amaitland 7053eebae3 Reduce nesting for if statement 2015-07-09 11:06:36 +10:00
amaitland 9192bdfb4b Convert BrowserWrapper into a basic property - simpler 2015-07-09 11:05:00 +10:00
amaitland 7b49b479d0 Remove TODO - the field is still used 2015-07-09 11:02:59 +10:00
amaitland 1f74357e40 Going forward constructors/destructors/finalizers all go in the headers 2015-07-09 10:55:12 +10:00