Commit Graph

881 Commits

Author SHA1 Message Date
Per Lundberg 22fac75268 #209. Let’s make it a bit more apparent that we are doing stuff asynchronously. 2013-11-08 00:13:38 +01:00
Per Lundberg 161a449acc CefBrowserWrapper is a bad name, since it will shortly be used by something entirely different. :) So let's rename that one to ManagedCefBrowserAdapter, which also more accurately describes its purpose. 2013-10-30 23:11:15 +02: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
Per Lundberg 362c6fd3e3 Harmonized the targets so that all projects compile for either x64 or x86. No "AnyCPU" projects for the time being. 2013-10-23 22:38:03 +03:00
Per Lundberg ac57adfdda This one is a bit stupid… I can't understand why we were not already doing this? :) It left dead processes dangling... 2013-09-24 22:00:35 +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 e5f951ae4a Changed to support x64. (and for the time being, unfortunately *only* x64…) A proper Win32 target should also be added asap. 2013-09-23 21:40:46 +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 0df64691e5 Forward-ported the fixes for #161 to CefSharp 3. 2013-09-18 21:57:51 +03:00
Per Lundberg b967a1457b Updated because of changed whitespace settings in the IDE. 2013-09-18 21:46:09 +03:00
Per Lundberg cfaba364cb #157: Made it possible to override BrowserSettings, and added an example of how it can be done. 2013-08-26 22:37:41 +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 cc34c0604a Implemented this new ExecuteScript() method. 2013-08-05 22:56:21 +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 a88537f4c4 Fixed the WebBrowser to receive focus once page loading is complete, so that e.g. Google works in the expected way (you can start typing a search string immediately, without having to click the search field). 2013-08-03 10:13:18 +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 8b33581cd0 Fixed the support for tooltips to work again. 2013-08-01 10:07:05 +03:00
Per Lundberg 39a363d432 Changed the OnAddressChanged to not be static, which makes the method a lot simpler. 2013-08-01 09:59:38 +03:00
Per Lundberg 43b835cc08 Added the TItle here also, for documentary purposes. We should consider creating online documentation from our classes when their level of information is of a more decent level. 2013-07-31 08:58:48 +03:00
Per Lundberg 05877dbab0 Changed TItle to be a DP and implemented the SetTitle method. 2013-07-31 08:57:06 +03:00
Per Lundberg 6c3a7d0304 Let's make this property be available also, so we can document it properly. 2013-07-31 08:42:35 +03:00
Per Lundberg f0c8f71ff3 Added XML comments. 2013-07-31 08:40:51 +03:00
Per Lundberg 580b8bd83c Fixed a bug which has been bothering me a bit in the CEF1-based branch: Alt-F4 shouldn't be marked as Handled, since that makes it impossible to shut down the app by pressing Alt-F4... 2013-07-30 23:05:31 +03:00
Per Lundberg 7da4747640 Fixed OnPrevKey* handling, so that the arrow keys and Tab work as they should, within the web browser control. 2013-07-30 22:51:29 +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 a33f3a1b89 Added new IWpfWebBrowser interface where we have the BackCommand and ForwardCommand. The name of this interface is certainly not perfect or elegant; we'll see if we can find a better name... 2013-07-30 11:10:27 +03:00
Per Lundberg a41dd59c56 This project should be signed also, so that it can be used from strong-named projects. 2013-07-30 10:36:05 +03:00
Per Lundberg d8d50bbe88 Made it possible to navigate to a new URL in the WebView, and started using this feature in the WPF example. 2013-07-30 08:13:04 +03:00
Per Lundberg 1d06025894 Further fix for #140; it didn't work correctly if you would e.g. press Shift-F5 in Visual Studio to stop the process. Hooking Application.Current.Exit is better in this regard than handling WM_CLOSE. 2013-07-29 09:20:59 +03:00
Per Lundberg 5bcfc51414 Improved the reliability of the code to better handle cases when things happen "out of order", or at least in another order than we are expecting. (which is often the case when using data binding etc) 2013-07-28 22:47:50 +03:00
Per Lundberg b2d214f9e1 Started working on the DevTools stuff, which is seemingly non-trivial since we can no longer just call a method but need to open up the devtools URL ourselves. 2013-07-28 22:05:38 +03:00
Per Lundberg 246d3edc94 Made the OnLostFocus a bit safer when shutting down the app and cefBrowserWrapper may be null. 2013-07-28 22:04:33 +03:00
Per Lundberg b2418b00b1 RenderClientAdapter is now CefBrowserWrapper, and RenderClientAdapterInternal has been freed of the quite pointless "Internal" suffix. 2013-07-27 19:23:54 +03:00
Per Lundberg 745c2d9bd5 Hopefully fixes #146 for good. 2013-07-27 13:46:31 +03:00
Per Lundberg 8849f41e38 Ooops. Scrapped some dead code. I hate dead code. I eat it for breakfast. Even when I'm on vacation. 2013-07-26 22:54:25 +03:00
Per Lundberg d19db2f631 Let's not pretend to play the IDisposable game. It's not really supported for WPF controls anyway. 2013-07-26 22:52:27 +03:00
Per Lundberg 65085d6221 Added code to handle window close in a better way. This got a bit awkward since we have to run some code reasonably early; earlier than we are able with e.g. Dispatcher.ShutdownStarted and similar… We probably have to have some Unloaded() code nonetheless, to not leak so incredibly much memory. ;-) But that have to be fixed a bit later. Closes: #140. 2013-07-26 22:51:45 +03:00
Per Lundberg 005b81d8aa Fixed keyboard input support. Closes #143. 2013-07-26 14:11:23 +03:00
Per Lundberg 531bda22c6 Added back the focus handling (#3). 2013-07-24 22:33:02 +03:00
Per Lundberg 10b6b75d3a Trivial cleanup. 2013-07-24 22:25:52 +03:00
Per Lundberg 2faab36711 Closes #6. 2013-07-24 22:24:01 +03:00
Per Lundberg 3e778a0803 Disabled stuff which isn't working properly at the moment, and made the URL textbox at least *display* the current URL being browsed to... 2013-07-24 10:03:02 +03:00
Per Lundberg 002389ff0f Started working on the Dispose() stuff. Very much unfinished yet. 2013-07-24 09:54:32 +03:00
Per Lundberg 2c687560c3 Propagate the mouse events over to CEF. 2013-07-24 09:54:15 +03:00
Per Lundberg 5ace4ade2b Fixed SetCursor() to work properly even when called from a background thread. 2013-07-24 09:15:58 +03:00
Per Lundberg 8a8f888e8d Missed parts of the resize code (the part that actually detects the resize and informs CEF). 2013-07-24 09:15:17 +03:00
Per Lundberg c6fbd4e7e7 Silly bug: ActualWidth and ActualHeight wasn't really distinguished between properly... 2013-07-23 22:58:04 +03:00