Commit Graph

3284 Commits

Author SHA1 Message Date
Alex Maitland f5bd2fd2c4 Merge pull request #1100 from amaitland/cleanup/throwexceptions
Throw Exceptions rather than Fail quietly
2015-07-07 10:34:14 +10:00
amaitland 0188329d10 Untabify 2015-07-07 10:26:45 +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 bbe267b44c Throw exception if IsBrowserInitialized when trying to call RegisterJsObject 2015-07-06 12:16:58 +10:00
Alex Maitland 938877aaf3 Merge pull request #1105 from amaitland/enhancement/releasemodemessage
Display Release Mode Message Box In Examples
2015-07-06 12:04:01 +10:00
amaitland 34b9ec3d1c Add Message Box into WinForms and WPF examples to alert users they need to compile in Release mode when running outside of Visual Studio 2015-07-03 12:44:34 +10:00
amaitland cf10fdf9dc Add ThrowExceptionIfBrowserNotInitialized to WinForms GetBrowser
Haven't done WPF yet as it's IsBrowserInitialized implementation is a DependencyProperty which will likely cause problems if run on a CEF thread
2015-07-01 19:58:54 +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 93e99dadfc Apply changes to the WinForms control so exception throw
Will refactor a few more methods into extensions so it's not really a problem
2015-07-01 19:27:04 +10:00
amaitland 091339de25 OffScreen control - update to throw exception if Browser has not been initialized
It's quite common for users to attempt to execute a browser function before it's initialized and for it to silently fail if it's not been initialized
2015-07-01 19:24:49 +10:00
Alex Maitland 9c456b32ce Merge pull request #1099 from amaitland/feature/cefwindowinfo
Add CefWindowInfoWrapper
2015-07-01 19:05:25 +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 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