Commit Graph

6179 Commits

Author SHA1 Message Date
amaitland f499465f1d Add CefWindowInfoWrapper 2015-07-01 19:04:28 +10:00
amaitland 5fb726117d Move methods into body of class 2015-07-01 12:29:57 +10:00
amaitland 598937eb19 Cleanup Finalizer/Dispose for BrowserSettings and CefSettings 2015-07-01 12:29:48 +10:00
amaitland 958a6264a3 Remove LoadUrl code from ManagedCefBrowserAdapter - remove more duplication 2015-07-01 12:29:37 +10:00
amaitland 676ddc394e Remove redundant TypeUtils prefix 2015-07-01 12:29:09 +10:00
Alex Maitland eb4a1b7e53 Merge pull request #1097 from amaitland/enhancement/cefinitialize
Throw exception if Cef already Initialized
2015-06-29 22:23:27 +10:00
Alex Maitland ca40aed5d3 Merge pull request #1095 from arsher/cefipcserialization
CEF IPC based serialization and communication for EvaluateScriptAsync
2015-06-29 22:22:56 +10:00
amaitland 53be51b48a Explicitly throw Exception if Cef is already Initialized in response to issue on google group
https://groups.google.com/d/msg/cefsharp/JHO4KRARzdE/ol16kUGJQj0J
2015-06-29 22:21:17 +10:00
David Serfozo dc5bfdf636 Merge pull request #2 from amaitland/feature/ipc
IPC Changes
2015-06-29 10:41:46 +02:00
amaitland 81a2202753 Throw exception if browser Id's don't match
Use the provided browser object rather than get the wrapped one - should be the same
2015-06-29 15:35:30 +10:00
amaitland 7090ac9cda For now simplify message handing - remove delegates
Will look at implementing a managed class to handle/route messages later
2015-06-29 15:24:40 +10:00
amaitland ddd7ec1687 Cleanup usings 2015-06-29 14:14:12 +10:00
amaitland 02ddbd702b Change GetWrapped to Browser - consistent with other code e.g. cefframewrapper 2015-06-29 14:08:24 +10:00
amaitland 192f6e7783 Make FindBrowserWrapper public - preferable to using friend which 2015-06-29 14:04:08 +10:00
amaitland 2129c1907e Remove IBrowserAdapter from Frame and Browser wrappers - now directly cast CefClient to ClientAdapter so can execute js 2015-06-29 14:03:10 +10:00
amaitland 819dfd54f9 Move WcfEnabled option into CefSharpSettings class
Reduce code duplication - move EvaluateScriptAsync in WebBrowserExtensions
2015-06-29 13:20:47 +10:00
amaitland 833db43a1d FrameId is actually a 64bit int 2015-06-29 13:13:06 +10:00
amaitland 53221506f2 Remove redundant AddProcessMessageDelegate method from ClientAdapter 2015-06-29 12:33:42 +10:00
amaitland ccbc97ffc4 Minor code formatting 2015-06-29 12:03:01 +10:00
amaitland a40590405a Remove AddProcessMessageDelegate method from CefAppUnmanagedWrapper - not required 2015-06-29 12:01:41 +10:00
amaitland af39be37bb Remove FindBrowserWrapper overload - not really required 2015-06-29 12:00:33 +10:00
amaitland d21808b582 Rename variable to be more .net like 2015-06-29 11:58:42 +10:00
amaitland 0a220f2f96 Inline most of the methods in EvaluateScriptDelegate - much easier to step through now (with the CefRefPtrs, it's a lot harder to step into a function than normal) 2015-06-29 11:57:16 +10:00
amaitland f8954dcffe Rename messaging keys to include Request/Response suffix
Would be nice to move them into a class so they're not just out there on their own - whilst it's valid c++, it's not very .net
2015-06-29 11:49:12 +10:00
amaitland 03a893bdac Inline some of the EvaluateScriptDoneDelegate methods - as they're not used in multiple places it's easier to debug this way 2015-06-29 11:42:25 +10:00
amaitland 6d28f97a14 Prefer using statements directly after inclues - they get a little lost if we put them further down 2015-06-29 11:36:29 +10:00
amaitland d188382d20 Move PendingTaskRepository into matching namespace (resharper cleanup) - there is no messaging folder 2015-06-29 11:34:43 +10:00
amaitland b9e3100994 Simplify PendingTaskRepository TaskCompletionSource creation - use KeyValuePair 2015-06-29 11:32:16 +10:00
David Serfozo 93a61c1442 removed unneeded eval script related methods 2015-06-27 19:01:52 +02:00
David Serfozo 762d94942a added jscallback support for new evaluatescript implementation 2015-06-27 19:01:41 +02:00
David Serfozo cc8a07c21f added evaluatescriptasync message handlers and rerouted evalscript to cef ipc 2015-06-27 19:01:21 +02:00
David Serfozo 7588259964 added process message handlers and code to call them on both sides 2015-06-27 17:20:09 +02:00
David Serfozo bf33f0bc7c V8 serialization utils added 2015-06-27 16:52:08 +02:00
amaitland b92cdfd958 Add additional comment and revise CefExample comment 2015-06-25 11:15:57 +10:00
amaitland ff695dbf6d Only close _browserProcessServiceHost if Wcf::Enabled
(Had circular reference problem when trying to use Wcf::Enabled in ManagedCefBrowserAdapter.h class so for now just use a local variable)
2015-06-25 11:12:53 +10:00
amaitland 898668aab2 Move wcfEnabled check from CefRenderProcess out into main program - launch the generic CefSubProcess instance if WCF is disabled 2015-06-25 10:45:28 +10:00
amaitland 3487e21335 Prefer using statements over partly qualified namespace for class reference 2015-06-25 10:44:03 +10:00
amaitland aa63727712 Untabify ManagedCefBrowserAdapter 2015-06-25 10:41:37 +10:00
amaitland 766da920ac Add license disclaimer to new CefSharpArguments class (also some browsersubprocess classes) 2015-06-25 10:37:56 +10:00
amaitland 2acc334570 Remove unused constructor from ResourceHandlerWrapper 2015-06-25 10:34:22 +10:00
Alex Maitland 0a197a7701 Merge pull request #1094 from arsher/switchablewcf
Add Ability to Disable WCF
2015-06-25 10:33:56 +10:00
David Serfozo b1c7a2b791 CefWcfRenderProcess removed;;examples updated;;added exceptions 2015-06-24 21:38:51 +02:00
amaitland 996cb9a44c Revert to using embedded home page - added .html extension so the mimeType mapping picks up the correct type.
Fix the StatusCode to 200 to represent success (minor type fix as was 300 before)
2015-06-24 17:19:57 +10:00
David Serfozo 4d62f6ad8e wcf made switchable 2015-06-20 19:50:48 +02:00
amaitland 34d5167ec3 Remove old render process code that showed a message box for purpose of attaching the debugger - was commented out
Preferred method is to use the --renderer-startup-dialog command line flag
https://github.com/cefsharp/CefSharp/blob/master/CefSharp.Example/CefExample.cs#L35
2015-06-20 22:24:46 +10:00
Alex Maitland 134aac271a Merge pull request #1079 from amaitland/continued/43
Continued Work on 43
2015-06-19 09:04:20 +10:00
rassilon 1a62db2446 Allow the browser/frame instances to be active (i.e. non-disposed) until ResourceHandlerWrapper has completed processing for ResourceHandlers and Schemes. 2015-06-18 08:27:53 -04:00
rassilon 1912ee2e5a Fix build issue from prev. merge. 2015-06-18 07:59:39 -04:00
rassilon 1d2454b0bc Merge remote-tracking branch 'origin/master' into continued/43
Conflicts:
	CefSharp.Core/Internals/CefRequestCallbackWrapper.h
	CefSharp.Core/ResourceHandlerWrapper.h
2015-06-18 07:56:59 -04:00
Bill Tutt e334de4e39 Merge pull request #1077 from rassilon/ReduceObjectsBeingFinalized
Reduce objects being finalized from finalization thread.
2015-06-18 07:54:36 -04:00