Commit Graph

2191 Commits

Author SHA1 Message Date
Per Lundberg 0e983b02f8 Fixed the Include directories, to make the project compile (but not link yet) on Win32, Release configuration (Debug works). We're getting there, slowly but steadily... 2013-10-23 22:46:36 +03:00
Per Lundberg 19f86dfca8 Removed the Debug x64 target, since it shouldn't have been added in the first place... 2013-10-23 22:43:47 +03:00
rastating 07561bcfb0 Fixed process not exiting in Windows XP
Added a handler assignment on the first call to CefSharp::Initialize
which will ensure CEF is shutdown properly should the calling program
not manually call the shutdown method before the process exits.

This bug only seems to affect Windows XP, however I have tested on both
Windows XP and Windows 7 and with this change neither have any ghost
processes left over after the program calling CefSharp exits.

This commit fixes #80
2013-10-23 20:14:41 +01:00
Per Lundberg 7b74e21262 Important change - we need to clear the _callback if we receive a Cancel() call. I think there must be some better way to get this done, let's see if I can figure it out... 2013-10-09 22:18:20 +03:00
Per Lundberg c92d3e394f Added support for "custom schemes", albeit a bit broken at the moment because of assertions failing... 2013-10-01 21:25:07 +03:00
Per Lundberg e692f1dbec SchemeHandler.cpp is no more. 2013-09-25 09:02:58 +02:00
Per Lundberg 5663ea8fd2 Forward-ported the changes to make scheme handling async instead of synchronous, from the CefSharp1 branch. 2013-09-25 07:47:53 +02:00
Per Lundberg 8d49c6b5e4 Made Cef.Shutdown() a bit smarter (only shut down once…) and added missing XML documentation for the method at the same time. 2013-09-24 21:59:36 +02:00
Per Lundberg 240e2fdaec Added some [DebuggerStepThrough] for methods which you normally don't debug. 2013-09-24 09:59:54 +02:00
Per Lundberg d8ff9501b5 Added a Reload command and an accompanying button in the Wpf.Example. 2013-09-24 09:58:34 +02:00
Per Lundberg 346c8d53b4 This is now CefSharp 3.29.0.0, coming up eventually (probably not as a "stable" release until some more month(s) realistically speaking…). 2013-09-23 21:17:48 +02:00
Per Lundberg 805e20e4c1 Modified to be compilable for x64 (also, in addition to x86 which was already supported). 2013-09-23 21:14:55 +02:00
Per Lundberg 0df64691e5 Forward-ported the fixes for #161 to CefSharp 3. 2013-09-18 21:57:51 +03:00
Per Lundberg 632f0161f1 #159: Changed the IJavascriptProxy.EvaluateScript() method signature a bit, to try and get it working with the cross-process scenario which is a reality w/ CEF3. 2013-09-02 22:56:06 +03:00
Per Lundberg d5d3c1eccc Started working on #159. We now have a dummy (WCF) service in the subprocess, which we are able to call from the main process. The next step is to try and make it execute Javascript in the proper CefFrame. Might not be so incredibly simple, but we'll have to give it a try and see. 2013-08-28 23:01:46 +03:00
Per Lundberg 450e3df499 #138: Added a new BrowserSubprocessPath property, to be able to support the "minimal subprocess" approach suggested by the CEF FAQ. 2013-08-22 22:55:33 +03:00
Per Lundberg 51034021a2 Added (quite significant) TODO. 2013-08-05 23:19:10 +03:00
Per Lundberg c69821a1bf Added EvaluateScript() also, which fails because of the architectural changes in CEF. I have some ideas about how to approach this, but I believe we should fix #138 first. 2013-08-05 23:19:00 +03:00
Per Lundberg bddd72b0ad WaitForSingleObject() takes a DWORD as a parameter, so we might as well. 2013-08-05 23:02:08 +03:00
Per Lundberg 16750c3481 Fixed a simple ExecuteScript method in the IWebBrowser interface. 2013-08-05 22:56:04 +03:00
Per Lundberg e0fb9b1868 Added back the ScriptCore stuff. This is now based on the CEF1 way of doing things, which is clearly not optimal for use with CEF3. Is it even permissible? Time to find out... 2013-08-05 22:39:57 +03:00
Per Lundberg 2af420ff28 Methods must be public to be callable from the outside... 2013-08-05 22:39:17 +03:00
Per Lundberg ac93411a51 …as well as in the actual class definition. 2013-08-05 11:57:48 +03:00
Per Lundberg bb2014c79c Use plural form here also. 2013-08-05 11:57:35 +03:00
Per Lundberg 3e3fa08c3a Started working on the Javascript integration. TypeUtil now compiles, with quite little work. 2013-08-05 11:54:45 +03:00
Per Lundberg 6ae41303df Added standard copyright header. 2013-08-05 11:50:08 +03:00
Per Lundberg e35a672961 Got rid of the (defunct and partially commented out) Popup code. We didn't have full OSR popup handling anyway; what might be worthwhile is perhaps trying to detect popup windows being opened so you can open them in a separate tab or similar. There has been some discussion about our current popup handling so perhaps someone wants to step up and work on it eventually. 2013-08-03 23:05:29 +03:00
Per Lundberg 43238ca095 RegisterJsObject should be in IWebBrowser, so we can more easily utilize it from unit tests. 2013-08-03 22:58:30 +03:00
Per Lundberg 10799b3ab5 One more try… Closes #140. 2013-08-03 22:31:56 +03:00
Per Lundberg 07fdc95232 Changed OnLoadError to use a CefErrorCode as the error code + implemented the CefErrorCode enum + added the LoadHtml() method into the IWebBrowser interface again, and implemented it in the WebView. 2013-08-03 09:52:45 +03:00
Per Lundberg 908e832b55 Refactored the ILoadHandler to be an event handler (LoadError) in IWebBrowser instead of a separate interface you have to implement (it only contained one method anyway, so a bit overkill). 2013-08-02 13:19:25 +03:00
Per Lundberg 3b7f88c28f Fixed the IsLoading to be a (publicly documented) dependency property, and made it be updated more correctly. It turned out we should override OnLoadingStateChanged() also, so that we can properly detect isLoading = false, since OnLoadEnd is seemingly not always reliably called by CEF... 2013-08-01 22:31:38 +03:00
Per Lundberg d9df537b88 Implemented a basic ContextMenu, with Back, Forward and View Source available for now. 2013-08-01 15:00:03 +03:00
Per Lundberg 5a5eae380a Changed the way we propagate the TooltipText to the browser control(s) to use a method instead of a property (which works better with WPF) + dropped it from BrowserCore. I suspect BrowserCore might be dropped in its entirety in the future; it adds a little bit of value but works poorly with "the WPF way". 2013-08-01 10:02:15 +03:00
Per Lundberg 8e4fea977e Let's add the LoadCompleted event to the public IWebBrowser API also, and document it at the same time. 2013-08-01 09:36:28 +03:00
Per Lundberg e977348ea9 Added XML documentation here also. 2013-08-01 09:29:59 +03:00
Per Lundberg f5d13ce69b Moved the ConsoleMessage out to the (public) IWebBrowser interface, and documented it at the same time. 2013-08-01 09:29:42 +03:00
Per Lundberg 26960ba908 Tabs are, as we all know, inherently evil. :-) 2013-08-01 09:23:03 +03:00
Per Lundberg 3195ddb64c Use the Set* method pattern (like we already have with SetAddress), so we can do proper thread marshalling as needed. 2013-07-31 08:49:53 +03:00
Per Lundberg fec6d82fc6 Remove the lParam parameter in SendKeyEvent(), since we didn't use it. Unused parameters are evil and should be removed asap, with no mercy. 2013-07-30 22:50:30 +03:00
Per Lundberg c7c5e07789 Added convenience mehtod for getting the MainFrame of the CefBrowser more easily. 2013-07-30 11:09:22 +03:00
Per Lundberg da7064b5d9 Got rid of Back(), Forward() and CanGoBack/CanGoForward in this interface. Will be implemented slightly differently instead. 2013-07-30 11:09:04 +03:00
Per Lundberg 4d2c795127 Exposed the GoBack and GoForward methods, to allow basic use of the browser history. 2013-07-30 11:08:34 +03:00
Per Lundberg f363715d0f Added InternalsVisibleTo so we can make stuff internal (a.k.a private) which is only shared between the different CefSharp assemblies, and not indended for public prying... 2013-07-30 10:44:56 +03:00
Per Lundberg 4245abdee4 Should also be private, i.e. internal. 2013-07-30 08:29:44 +03:00
Per Lundberg 2cf653d2ed More IWebBrowserInternal changes. 2013-07-30 08:28:44 +03:00
Per Lundberg ed30f86375 Started moving much of the stuff over from IWebBrowser.h over to IWebBrowserInternal. The idea is to try and make IWebBrowser more of a clean-room implementation, perhaps also more adapted to WPF (if possible). 2013-07-30 08:26:21 +03:00
Per Lundberg 9ef645613e Updated IRenderWebBrowser.h reference. 2013-07-30 08:25:05 +03:00
Per Lundberg 4add4f50e6 Let's make this one internal now, since it's not really a part of our public API. 2013-07-30 08:23:40 +03:00
Per Lundberg f3c7c6b849 Added a LoadUrl() method, for loading a new URL in the existing CefBrowser. 2013-07-30 08:12:28 +03:00