Commit Graph

811 Commits

Author SHA1 Message Date
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
Per Lundberg 106f433597 Implemented the Back and Forward functionality. 2013-07-30 11:10:53 +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 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 dff09773ef Disabled most of the stuff here for now, since we are doing some quite major refactorings. 2013-07-30 10:47:52 +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 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 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 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 f3c7c6b849 Added a LoadUrl() method, for loading a new URL in the existing CefBrowser. 2013-07-30 08:12:28 +03:00
Per Lundberg 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). 2013-07-29 09:47:51 +03:00
Per Lundberg c88774a581 Duh… "Thou shalt not copy and paste code blindly from the internets". Obviously, it was a bit broken this time. :) 2013-07-29 09:33:24 +03:00
Per Lundberg 27d51ae238 Bug fix for SendKeyEvent. Should always return something. 2013-07-29 09:21:20 +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 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. 2013-07-28 22:46:39 +03:00
Per Lundberg 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. 2013-07-28 22:45:28 +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 ac9d1cfeb0 Added the RemoteDebuggingPort, which is needed to get the DevTools working w/ CEF3. 2013-07-27 21:40:15 +03:00
Per Lundberg 85f2778d63 Sorted the properties alphabetically, to make it more maintainable. 2013-07-27 21:36:34 +03:00
Per Lundberg 33dc7460d3 Renamed the class also, since "Settings" isn't really clear enough IMHO. 2013-07-27 21:33:47 +03:00
Per Lundberg 0701d40264 Settings.h is now CefSettings.h 2013-07-27 21:27:25 +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 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. 2013-07-27 19:15:44 +03:00
Per Lundberg 3df09291a2 InvokeRender isn't used any more, now that #146 is (hopefully) resolved. 2013-07-27 19:05:00 +03:00
Per Lundberg acc09dda55 This one should also be included (it was already referred to). 2013-07-27 19:02:49 +03:00
Per Lundberg 745c2d9bd5 Hopefully fixes #146 for good. 2013-07-27 13:46:31 +03:00