Commit Graph

51 Commits

Author SHA1 Message Date
amaitland 9a0d7688a0 Merge branch 'cef/2272' 2015-07-28 17:17:12 +10:00
amaitland d843e96407 Merge branch 'cef/2272' of https://github.com/jamespearce2006/CefSharp into cef/2272 2015-07-28 15:59:30 +10:00
amaitland 0c031a1a3b Split RequestContext out from BrowserSettings 2015-07-22 13:51:16 +10:00
Tommaso Ercole a3e869b542 Add basic CefRequestContext wrapper 2015-07-21 23:51:49 +10:00
David Serfozo 798d90ade2 constructors/destructors moved to .h;;little changes to make code more consistent 2015-07-08 18:29:46 +02:00
David Serfozo 7c9a449158 added new IJavascriptCallback implementation into the pipeline 2015-07-07 19:30:43 +02:00
amaitland 3ab612a44a Rename Oninitialized to OnAfterBrowserCreated (more closely matches the underlying CEF API) 2015-07-07 16:48:45 +10:00
Alex Maitland ff6d53ecff Merge pull request #1102 from amaitland/cleanup/browsersettings
BrowserSettings map to Enabled/Disabled/Default Enum
2015-07-07 10:37:07 +10:00
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 92a325b77e Change Nullable types from ref to value (as nullable is a struct).
Decompiled code showed `ValueType` before and how shows the correct type
2015-07-01 22:42:24 +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 958a6264a3 Remove LoadUrl code from ManagedCefBrowserAdapter - remove more duplication 2015-07-01 12:29:37 +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
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
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 aa63727712 Untabify ManagedCefBrowserAdapter 2015-06-25 10:41:37 +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 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
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
amaitland a43090f04a Inline Close and CloseAllPopups code - use new wrapper class to close the main browser instance
Might need a quick review
2015-06-11 11:34:56 +10:00
amaitland d394124b3a Move public facing CefBrowserHost methods into extension methods that use the IBrowserHost wrapper 2015-05-29 11:23:25 +10:00
amaitland 6a7f4dca5e Reuse a single reference to the IBrowser instance - keeping a copy of the wrapper means we can Dispose and release the resources.
Even if the user still has a reference it shouldn't interfere with `CEF`
2015-05-28 20:34:34 +10:00
amaitland 67d57c96a0 Move Stop/Back/Forward methods into WebBrowserExtensions 2015-05-28 20:20:32 +10:00
amaitland c0e79c20b0 Add GetBrowser methods to get direct access to the underlying CefBrowser instance 2015-05-28 20:08:56 +10:00
amaitland 1ce10ea53f Move LoadHtml (LoadString) to extension 2015-05-21 20:25:02 +10:00
amaitland 1a1fcb9f2e Make the next set of frame related methods into extension methods 2015-05-21 19:12:14 +10:00
amaitland 024a80396e Move the first set of frame related method (Cut/Copy/Paste, etc) into a set of Extension methods 2015-05-21 18:49:58 +10:00
amaitland 831e2e6ffd Switch the nullptr checks around...pedantic I know :) 2015-05-21 18:31:35 +10:00
amaitland 9fb921af80 For GetFocusedFrame and GetMainFrame shouldn't need to check the result, their should always be a frame if the CefBrowser instance != null 2015-05-21 18:29:48 +10:00
amaitland b6df5c48c1 Change GetFrame methods to return IFrame reference 2015-05-21 18:21:08 +10:00
amaitland d4b4e5fd35 Manually apply merge changes from master to ManagedCefBrowserAdapter as it's now split into .h and .cpp, so can't auto merge changes 2015-05-13 09:32:50 +10:00
jamespearce2006 da9d4df2c8 Cleanup code formatting 2015-05-07 23:40:56 +01:00
jamespearce2006 608d97a0b4 Fixed conflicts 2015-05-07 22:42:19 +01:00
jamespearce2006 ae61994c3d Offscreen popup support 2015-05-07 18:32:14 +01:00
jamespearce2006 8213471364 Testing changes to OnPopup 2015-05-05 17:31:46 +01:00
Bill Tutt 872cb06c71 Part 1 of Wrap CefBrowser. 2015-05-02 23:32:22 -04:00
Bill Tutt 7776438ea0 Remove IBrowserAdapterNative, and add nullptr checks for GetCefBrowser return value. 2015-05-02 04:37:48 -04:00
Bill Tutt e1e58a5da6 Add IFrame interface as the public face of CefFrameWrapper.
IRequestHandler: Pass IFrame instances instead of isMainFrame.
Support EvaluateJavaScriptAsync from a frame.
IBrowserAdapter, IBrowserAdapterNative: Dependency breaking between CefFrameWrapper and ManagedCefBrowserAdapter.
Add IBrowserAdapter.BrowserAdapter to IWebBrowserInternal and implment for all controls.

This builds, but hasn't been tested yet. Thoughts?
2015-05-02 00:01:31 -04:00
Bill Tutt 26ec64e587 Copy/Paste frame APIs from CefBrowser into ManagedCefBrowserAdapter.*
Start stubbing out some implementations in CefFrameWrapper.h

(This doesn't build yet, don't bother trying... )
2015-04-29 01:13:50 -04:00
rassilon cf25cc0518 Merge remote-tracking branch 'origin/master' into cef/2272
Conflicts:
	CefSharp.Core/ManagedCefBrowserAdapter.h
2015-04-23 19:38:41 -04:00
amaitland e23fef14e2 Missed adding this in previous commit - rename IsKeyDown 2015-04-23 09:12:05 +10:00
rassilon 1a31b991ac Move rest of non-simple functions to .cpp file.
Rename private GetZoomLevel to GetZoomLevelOnUI to further indicate what thread it should run on.

Make WPARAM keyboard related functions private:
  isKeyDown and GetCefKeyboardModifiers.
2015-04-22 10:46:07 -04:00
rassilon 701d391c59 Adding .Net enum of CefThreadId (mostly to be able to call .ToString()).
Added license headers on new files.
Remove sync version of GetZoomLevel on ManagedCefBrowserAdapter.
Updated callers to call GetZoomLevelAsync() but in a blocking sync manner.

Added CurrentlyOn/EnsureOn static methods to CefTaskScheduler.
2015-04-22 08:19:36 -04:00