Commit Graph

754 Commits

Author SHA1 Message Date
amaitland df29944016 Implement SendMouseMoveEvent in IBrowserHost
Can now be used by offscreen
2015-07-06 12:47:29 +10:00
amaitland 5c27b7befa Set toolTip to null after mouse leaves 2015-07-06 12:42:50 +10:00
amaitland 98d186c33c Move OnMouseButton into IBrowserHost (rename to SendMouseClickEvent) 2015-07-06 12:39:33 +10:00
amaitland fbe8ccd61c Move Invalidate method from ManagedCefBrowserAdapter into CefBrowserHostWrapper - now can be used in OffScreen 2015-07-06 12:25:09 +10:00
amaitland df94d54a61 Remove duplicate GetMainFrame and GetFocusedFrame methods - turned them into extensions 2015-07-01 19:49:27 +10:00
amaitland f239503bb3 Move SendMouseWheelEvent to IBrowserHost 2015-07-01 19:38:14 +10:00
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 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
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 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 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 b9e3100994 Simplify PendingTaskRepository TaskCompletionSource creation - use KeyValuePair 2015-06-29 11:32:16 +10: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 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 2acc334570 Remove unused constructor from ResourceHandlerWrapper 2015-06-25 10:34:22 +10:00
David Serfozo b1c7a2b791 CefWcfRenderProcess removed;;examples updated;;added exceptions 2015-06-24 21:38:51 +02:00
David Serfozo 4d62f6ad8e wcf made switchable 2015-06-20 19:50:48 +02: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
rassilon afb8aae4eb Fix things that break VS2012. 2015-06-17 19:13:42 -04:00
rassilon 82dca3b481 Merge remote-tracking branch 'rassilon_fork/ReduceObjectsBeingFinalized' into continued/43
Conflicts:
	CefSharp.Core/Internals/CefJSDialogCallbackWrapper.h
	CefSharp.Core/Internals/CefRequestCallbackWrapper.h
	CefSharp.Core/ResourceHandlerWrapper.h
2015-06-17 18:42:57 -04:00
rassilon 8ec01da230 Use GetBrowserWrapper everywhere except popup creation/closing for all of ClientAdapter.cpp.
This means that none of the callbacks need to own disposing the IBrowser^ instance.
2015-06-17 18:14:07 -04:00
amaitland 864f9ea7a2 Rename GetResponseHeaders to GetResponse 2015-06-15 23:07:02 +10:00
amaitland fc23de42a2 Seems that Delegating Constructors are a VC++ 2013 feature and won't work in 2012
https://msdn.microsoft.com/en-au/library/dn387583.aspx
2015-06-15 22:41:18 +10:00
amaitland 4f1caf2410 Change to use IRequest instead (use interfaces for classes where possible) 2015-06-15 22:27:07 +10:00
amaitland c057c256c5 Cleanup - pass in CefRefPtr variables by reference (Should avoid an unnecessary call to AddRef) 2015-06-15 22:22:27 +10:00
amaitland a31064a7f5 Change IResponse to public 2015-06-15 22:07:38 +10:00
amaitland 018598171a Add first draft of CefResponseWrapper 2015-06-15 21:20:02 +10:00
amaitland afbed86524 First draft of what is hopefully the final rewrite of ResourceHandler/SchemeHandler
This will built but won't run as CefResponseWrapper has not yet been implemented.
2015-06-15 21:03:25 +10:00
amaitland c445a508ea Allow for ISchemeHandlerFactory.Create to return null (allow for default behaviour)
Updated ISchemeHandlerFactory xml doc

As both current use cases for ResourceHandlerWrapper can potentially return null rather than handle the resource change CefRequestWrapper to be disposed of automatically and use the CefRequest provided by ResourceHandlerWrapper::ProcessRequest
2015-06-15 20:00:32 +10:00
amaitland 35d31bd533 Only set ResourceHandlerWrapper values if we plan to continue, if we Cancel they would be ignored 2015-06-15 19:03:35 +10:00
amaitland 63cc978ce6 Change CefRequestWrapper to use the IRequest interface instead 2015-06-15 18:46:34 +10:00
amaitland 4b245f1ab9 Revert "Be paranoid about _requestWrapper being disposed properly in ResourceHandlerWrapper."
This reverts commit 4f7302086b.
2015-06-15 18:45:12 +10:00
rassilon 4f7302086b Be paranoid about _requestWrapper being disposed properly in ResourceHandlerWrapper. 2015-06-13 10:45:36 -04:00
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