Commit Graph

  • 4fec4ed39b Merge pull request #152 from dabide/master Per Lundberg 2013-08-09 01:13:33 -07:00
  • 559e654689 Added signing to CefSharp.WinForms and CefSharp.Wpf David A. Sjøen 2013-08-09 09:50:29 +02:00
  • d04d294cde Added some disabled debug code. Per Lundberg 2013-08-05 23:20:08 +03:00
  • 51034021a2 Added (quite significant) TODO. Per Lundberg 2013-08-05 23:19:10 +03:00
  • 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. Per Lundberg 2013-08-05 23:19:00 +03:00
  • bddd72b0ad WaitForSingleObject() takes a DWORD as a parameter, so we might as well. Per Lundberg 2013-08-05 23:02:08 +03:00
  • cc34c0604a Implemented this new ExecuteScript() method. Per Lundberg 2013-08-05 22:56:21 +03:00
  • 16750c3481 Fixed a simple ExecuteScript method in the IWebBrowser interface. Per Lundberg 2013-08-05 22:56:04 +03:00
  • 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... Per Lundberg 2013-08-05 22:39:57 +03:00
  • 2af420ff28 Methods must be public to be callable from the outside... Per Lundberg 2013-08-05 22:39:17 +03:00
  • ac93411a51 …as well as in the actual class definition. Per Lundberg 2013-08-05 11:57:48 +03:00
  • bb2014c79c Use plural form here also. Per Lundberg 2013-08-05 11:55:41 +03:00
  • 3e3fa08c3a Started working on the Javascript integration. TypeUtil now compiles, with quite little work. Per Lundberg 2013-08-05 11:54:45 +03:00
  • e1644a55a1 Merge commit '0b1cfb854202a004cda46ff6d3feacbb75a80f9b' into cef3_2nd_attempt Per Lundberg 2013-08-05 11:50:55 +03:00
  • 6ae41303df Added standard copyright header. Per Lundberg 2013-08-05 11:50:08 +03:00
  • 0b1cfb8542 Moved the ChangeLog contents here instead: https://github.com/cefsharp/CefSharp/wiki/ChangeLog Per Lundberg 2013-08-05 11:42:28 +03:00
  • b1e37c459d Commented out for now, so the project compiles. v3.27.0-a0 Per Lundberg 2013-08-03 23:45:32 +03:00
  • ea18663cc8 …and centering the window also looks a bit nicer. Per Lundberg 2013-08-03 23:40:19 +03:00
  • ecc829ab31 KISS. Per Lundberg 2013-08-03 23:39:24 +03:00
  • 244afea29f Changed from a GroupBox to Expander for WPF tweak stuff, which is really only useful when you want to play around... Per Lundberg 2013-08-03 23:38:00 +03:00
  • 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. Per Lundberg 2013-08-03 23:33:59 +03:00
  • db73c33b93 WinForms references, which should definitely not be here. Per Lundberg 2013-08-03 23:32:04 +03:00
  • 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. Per Lundberg 2013-08-03 23:05:29 +03:00
  • 43238ca095 RegisterJsObject should be in IWebBrowser, so we can more easily utilize it from unit tests. Per Lundberg 2013-08-03 22:37:04 +03:00
  • 10799b3ab5 One more try… Closes #140. Per Lundberg 2013-08-03 22:31:56 +03:00
  • 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. :) Per Lundberg 2013-08-03 22:31:42 +03:00
  • 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. Per Lundberg 2013-08-03 22:14:20 +03:00
  • 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). Per Lundberg 2013-08-03 10:13:18 +03:00
  • 27e5126bee Implemented a simple LoadError handler. Per Lundberg 2013-08-03 09:52:59 +03:00
  • 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. Per Lundberg 2013-08-03 09:52:45 +03:00
  • 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). Per Lundberg 2013-08-02 13:19:25 +03:00
  • dbff9c370f Added a nice little StatusBar, with working IsLoading progress indication! Also display the console message in this bar. Per Lundberg 2013-08-02 09:43:14 +03:00
  • 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... Per Lundberg 2013-08-01 22:31:38 +03:00
  • d9df537b88 Implemented a basic ContextMenu, with Back, Forward and View Source available for now. Per Lundberg 2013-08-01 15:00:03 +03:00
  • 80850d364c Fixed horrible speling error. Per Lundberg 2013-08-01 10:49:27 +03:00
  • 8c37f8b18f Updated to not scare people... Per Lundberg 2013-08-01 10:47:36 +03:00
  • e3422841db Updated README page. Per Lundberg 2013-08-01 10:42:17 +03:00
  • 8b33581cd0 Fixed the support for tooltips to work again. Per Lundberg 2013-08-01 10:07:05 +03:00
  • 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". Per Lundberg 2013-08-01 10:02:15 +03:00
  • 39a363d432 Changed the OnAddressChanged to not be static, which makes the method a lot simpler. Per Lundberg 2013-08-01 09:59:38 +03:00
  • 8e4fea977e Let's add the LoadCompleted event to the public IWebBrowser API also, and document it at the same time. Per Lundberg 2013-08-01 09:36:28 +03:00
  • e977348ea9 Added XML documentation here also. Per Lundberg 2013-08-01 09:29:59 +03:00
  • f5d13ce69b Moved the ConsoleMessage out to the (public) IWebBrowser interface, and documented it at the same time. Per Lundberg 2013-08-01 09:29:42 +03:00
  • 26960ba908 Tabs are, as we all know, inherently evil. :-) Per Lundberg 2013-08-01 09:22:17 +03:00
  • 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. Per Lundberg 2013-07-31 08:58:48 +03:00
  • a2aeffb623 Handle the IWpfWebBrowser.Title property and use it to update the title of the MainWindow. Per Lundberg 2013-07-31 08:57:46 +03:00
  • 05877dbab0 Changed TItle to be a DP and implemented the SetTitle method. Per Lundberg 2013-07-31 08:57:06 +03:00
  • 3195ddb64c Use the Set* method pattern (like we already have with SetAddress), so we can do proper thread marshalling as needed. Per Lundberg 2013-07-31 08:49:53 +03:00
  • 6c3a7d0304 Let's make this property be available also, so we can document it properly. Per Lundberg 2013-07-31 08:42:35 +03:00
  • f0c8f71ff3 Added XML comments. Per Lundberg 2013-07-31 08:40:51 +03:00
  • 15bb067173 Fixed up the watermark opacity to look much, much cooler. Per Lundberg 2013-07-30 23:33:52 +03:00
  • 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... Per Lundberg 2013-07-30 23:05:31 +03:00
  • 7da4747640 Fixed OnPrevKey* handling, so that the arrow keys and Tab work as they should, within the web browser control. Per Lundberg 2013-07-30 22:51:29 +03:00
  • 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. Per Lundberg 2013-07-30 22:50:30 +03:00
  • 75d1fef4e1 Select the text in the textbox once it gets focus, for a more user-friendly browsing experience. Per Lundberg 2013-07-30 22:38:31 +03:00
  • 106f433597 Implemented the Back and Forward functionality. Per Lundberg 2013-07-30 11:10:53 +03:00
  • 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... Per Lundberg 2013-07-30 11:10:27 +03:00
  • c7c5e07789 Added convenience mehtod for getting the MainFrame of the CefBrowser more easily. Per Lundberg 2013-07-30 11:09:22 +03:00
  • da7064b5d9 Got rid of Back(), Forward() and CanGoBack/CanGoForward in this interface. Will be implemented slightly differently instead. Per Lundberg 2013-07-30 11:09:04 +03:00
  • 4d2c795127 Exposed the GoBack and GoForward methods, to allow basic use of the browser history. Per Lundberg 2013-07-30 11:08:34 +03:00
  • dff09773ef Disabled most of the stuff here for now, since we are doing some quite major refactorings. Per Lundberg 2013-07-30 10:47:05 +03:00
  • 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... Per Lundberg 2013-07-30 10:44:56 +03:00
  • a41dd59c56 This project should be signed also, so that it can be used from strong-named projects. Per Lundberg 2013-07-30 10:36:05 +03:00
  • 4245abdee4 Should also be private, i.e. internal. Per Lundberg 2013-07-30 08:29:44 +03:00
  • 2cf653d2ed More IWebBrowserInternal changes. Per Lundberg 2013-07-30 08:27:59 +03:00
  • 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). Per Lundberg 2013-07-30 08:26:21 +03:00
  • 9ef645613e Updated IRenderWebBrowser.h reference. Per Lundberg 2013-07-30 08:25:05 +03:00
  • 4add4f50e6 Let's make this one internal now, since it's not really a part of our public API. Per Lundberg 2013-07-30 08:23:40 +03:00
  • d8d50bbe88 Made it possible to navigate to a new URL in the WebView, and started using this feature in the WPF example. Per Lundberg 2013-07-30 08:13:04 +03:00
  • f3c7c6b849 Added a LoadUrl() method, for loading a new URL in the existing CefBrowser. Per Lundberg 2013-07-30 08:12:28 +03:00
  • cfcd3e4c8a I give up with this one. It makes more sense to have this as a string after all, so then we might as well use the previous name (Address). The "SetAddress" method is internal and shouldn't really be used from the outside. We might be closing in to the point where we should split IWebBrowser into two parts - IWebBrowser (which is exposed to external consumers) and IWebBrowserInternal (an internal interface mostly needed between CefSharp and CefSharp.Wpf/CefSharp.WinForms). Per Lundberg 2013-07-29 09:36:34 +03:00
  • c88774a581 Duh… "Thou shalt not copy and paste code blindly from the internets". Obviously, it was a bit broken this time. :) Per Lundberg 2013-07-29 09:33:24 +03:00
  • 27d51ae238 Bug fix for SendKeyEvent. Should always return something. Per Lundberg 2013-07-29 09:21:20 +03:00
  • 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. Per Lundberg 2013-07-29 09:20:59 +03:00
  • 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) Per Lundberg 2013-07-28 22:47:50 +03:00
  • 3dcae11505 Need to set the RemoteDebuggingPort when initializing CEF, to be able to use the devtools. This code will have to be slightly refactored if/when we skip the Presenter approach entirely for the WPF example. Per Lundberg 2013-07-28 22:46:39 +03:00
  • 73787825fb Let's try to do things in a more MVVM-orthodox way. This is one of the first steps on a quite long journey I believe… The previous CefSharp.Wpf.Example was (in my opinion) slightly badly designed in that it too much tried to "reuse" code between the WPF and WinForms examples. Now, this is good from a CefSharp maintainability standpoint, but it really means that you will "dumb down" the WPF one in a way that feels very unnatural to me. WPF is WPF and should be done in a certain way (to take advantage of the platform), and WinForms is an entirely different beast. So, I feel that it is very much OK if these sample apps diverge much more, so that we demonstrate CefSharp usage in a more realistic, close-to-real-life way than has been the case before. Per Lundberg 2013-07-28 22:45:28 +03:00
  • 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. Per Lundberg 2013-07-28 22:05:38 +03:00
  • 246d3edc94 Made the OnLostFocus a bit safer when shutting down the app and cefBrowserWrapper may be null. Per Lundberg 2013-07-28 22:04:33 +03:00
  • ac9d1cfeb0 Added the RemoteDebuggingPort, which is needed to get the DevTools working w/ CEF3. Per Lundberg 2013-07-27 21:40:15 +03:00
  • 85f2778d63 Sorted the properties alphabetically, to make it more maintainable. Per Lundberg 2013-07-27 21:36:34 +03:00
  • 33dc7460d3 Renamed the class also, since "Settings" isn't really clear enough IMHO. Per Lundberg 2013-07-27 21:33:47 +03:00
  • 0701d40264 Settings.h is now CefSettings.h Per Lundberg 2013-07-27 21:27:25 +03:00
  • b2418b00b1 RenderClientAdapter is now CefBrowserWrapper, and RenderClientAdapterInternal has been freed of the quite pointless "Internal" suffix. Per Lundberg 2013-07-27 19:22:21 +03:00
  • fb620a2da4 Don't explicitly delete the object since it's being refcounted, which means that the destructor runs twice if we delete it manually. Hopefully closes #140. Per Lundberg 2013-07-27 19:15:44 +03:00
  • 3df09291a2 InvokeRender isn't used any more, now that #146 is (hopefully) resolved. Per Lundberg 2013-07-27 19:05:00 +03:00
  • acc09dda55 This one should also be included (it was already referred to). Per Lundberg 2013-07-27 19:02:49 +03:00
  • 745c2d9bd5 Hopefully fixes #146 for good. Per Lundberg 2013-07-27 13:46:31 +03:00
  • e3685e4305 Attempted improvement on #140. Per Lundberg 2013-07-27 13:44:16 +03:00
  • 10a733059b Tried to fix #146, but we're not really there yet unfortunately... Per Lundberg 2013-07-27 10:27:12 +03:00
  • bd3f2a8cf0 Let's be kind and dispose stuff that is actually disposable. Per Lundberg 2013-07-26 23:24:17 +03:00
  • b705105ad8 Second part of IDisposable scrapping. We didn't really use the Disposable pattern for anything else than forcing our implementors to implement it, it seems. Per Lundberg 2013-07-26 23:01:35 +03:00
  • 8849f41e38 Ooops. Scrapped some dead code. I hate dead code. I eat it for breakfast. Even when I'm on vacation. Per Lundberg 2013-07-26 22:54:25 +03:00
  • d19db2f631 Let's not pretend to play the IDisposable game. It's not really supported for WPF controls anyway. Per Lundberg 2013-07-26 22:52:27 +03:00
  • 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. Per Lundberg 2013-07-26 22:51:45 +03:00
  • 28bc0414e2 Fixed the order of these. Per Lundberg 2013-07-26 22:11:41 +03:00
  • 005b81d8aa Fixed keyboard input support. Closes #143. Per Lundberg 2013-07-26 14:11:23 +03:00
  • 531bda22c6 Added back the focus handling (#3). Per Lundberg 2013-07-24 22:33:02 +03:00
  • 10b6b75d3a Trivial cleanup. Per Lundberg 2013-07-24 22:25:52 +03:00
  • 2faab36711 Closes #6. Per Lundberg 2013-07-24 22:24:01 +03:00