Commit Graph

6294 Commits

Author SHA1 Message Date
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 cc34c0604a Implemented this new ExecuteScript() method. 2013-08-05 22:56:21 +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 e1644a55a1 Merge commit '0b1cfb854202a004cda46ff6d3feacbb75a80f9b' into cef3_2nd_attempt 2013-08-05 11:50:55 +03:00
Per Lundberg 6ae41303df Added standard copyright header. 2013-08-05 11:50:08 +03:00
Per Lundberg 0b1cfb8542 Moved the ChangeLog contents here instead: https://github.com/cefsharp/CefSharp/wiki/ChangeLog 2013-08-05 11:42:28 +03:00
Per Lundberg b1e37c459d Commented out for now, so the project compiles. v3.27.0-a0 2013-08-03 23:45:32 +03:00
Per Lundberg ea18663cc8 …and centering the window also looks a bit nicer. 2013-08-03 23:40:19 +03:00
Per Lundberg ecc829ab31 KISS. 2013-08-03 23:39:24 +03:00
Per Lundberg 244afea29f Changed from a GroupBox to Expander for WPF tweak stuff, which is really only useful when you want to play around... 2013-08-03 23:38:00 +03:00
Per Lundberg abe09f0d5c Ugly workaround for the recently discovered bug w/ #140. We must detect the case when we are the rendering process, so we shutdown once CEF is done. :) Obviously, we should fix #138 and I started looking into it but it seemed non-trivial so it will have to wait a little bit further until we do it. 2013-08-03 23:33:59 +03:00
Per Lundberg db73c33b93 WinForms references, which should definitely not be here. 2013-08-03 23:32:04 +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 99d9e9074c We kill this one also for the time being, but in a slightly more drastic way… Might get re-added later if we feel like it. I don't think the WPF control is the CefSharp that needs unit testning most urgently anyway. :) 2013-08-03 22:31:42 +03:00
Per Lundberg c3c2dc1269 Let's kill these for a little while. We will add them back if/when we decide to fix the WinForms control for CEF3, issue #139. For the time being, it makes it easier for everyone (who wants to test out the WPF stuff) if they're gone. We should also refactor the WinForms control to C# if/when we fix it. 2013-08-03 22:14:20 +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 27e5126bee Implemented a simple LoadError handler. 2013-08-03 09:52:59 +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 dbff9c370f Added a nice little StatusBar, with working IsLoading progress indication! Also display the console message in this bar. 2013-08-02 09:43:14 +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 80850d364c Fixed horrible speling error. 2013-08-01 10:49:27 +03:00
Per Lundberg 8c37f8b18f Updated to not scare people... 2013-08-01 10:47:36 +03:00
Per Lundberg e3422841db Updated README page. 2013-08-01 10:42:17 +03:00
Per Lundberg 8b33581cd0 Fixed the support for tooltips to work again. 2013-08-01 10:07:05 +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 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 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 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 a2aeffb623 Handle the IWpfWebBrowser.Title property and use it to update the title of the MainWindow. 2013-07-31 08:57:46 +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 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 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 15bb067173 Fixed up the watermark opacity to look much, much cooler. 2013-07-30 23:33:52 +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 75d1fef4e1 Select the text in the textbox once it gets focus, for a more user-friendly browsing experience. 2013-07-30 22:38:31 +03:00