Commit Graph

2231 Commits

Author SHA1 Message Date
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
Per Lundberg e3685e4305 Attempted improvement on #140. 2013-07-27 13:44:16 +03:00
Per Lundberg 10a733059b Tried to fix #146, but we're not really there yet unfortunately... 2013-07-27 10:27:12 +03:00
Per Lundberg 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. 2013-07-26 23:01:35 +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 28bc0414e2 Fixed the order of these. 2013-07-26 22:11:41 +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 2faab36711 Closes #6. 2013-07-24 22:24:01 +03:00
Per Lundberg 2c687560c3 Propagate the mouse events over to CEF. 2013-07-24 09:54:15 +03:00
Per Lundberg e478112993 Dropped explicit public. 2013-07-24 09:37:53 +03:00
Per Lundberg 29bc05fab1 Made the exposure of CefBrowserHost more generic, since we will use it for many other use cases shortly. 2013-07-23 23:09:12 +03:00
Per Lundberg 192d72e5f0 Added support for resizing. Doesn't work fully, throws exceptions sometimes, but it's at least a start. 2013-07-23 22:58:59 +03:00
Per Lundberg 3d4a1f3bc4 Let's scrap these also, at least for the time being. Supporting them with CEF3 is semi-problematic, so let's remove them and then we can add them back if they are really needed (and we manage to figure out how to support it with CEF3). 2013-07-23 22:25:51 +03:00
Per Lundberg 7a30bd5b7e Let IRenderWebBrowser expose its width and height to the RenderClientAdapterInternal class, so we can let Chromium render in a bitmap of the right size. 2013-07-23 22:19:15 +03:00
Per Lundberg 2fe11224de Got rid of ContentsWidth and ContentsHeight, which seems hard (or at least non-obvious) to support w/ CEF3 and I don't really see why we need it in the first place. "Less software". :) 2013-07-23 22:17:22 +03:00
Per Lundberg c87e218f90 Started working on getting the actual painting to work. It now works, but only in a fixed-size region. :) Need to discuss a bit with the CEF guys on how to do this properly I think... 2013-07-23 19:30:53 +03:00
Per Lundberg f5fbf0cb95 Added some default return values, so we avoid compilation warnings. 2013-07-23 10:20:56 +03:00
Per Lundberg e569c4ef2b Again, moved the implementation to the header file. I think it would be OK to do this will all classes; it simplifies refactoring and decreases the logical gap between C# and C++. 2013-07-23 10:19:57 +03:00
Per Lundberg 646d79533d Added phony, very stupid implementation for now. Eventually we will have to do something much more fanciful, by querying the IRenderWebBrowser how big the view rectangle should be. (We also need to figure out how to handle resizes properly…) 2013-07-23 00:01:06 +03:00
Per Lundberg 12ff5be33b Added the BrowserSettings.h file. 2013-07-22 23:46:49 +03:00
Per Lundberg 82068d3e5b Added the CreateOffscreenBrowser method, which seems to work fairly OK as of yet. (The browser is created and page loading is seemingly initiated.) 2013-07-22 23:46:34 +03:00
Per Lundberg 5385155259 Minor changes. 2013-07-22 23:45:59 +03:00
Per Lundberg 4c4114caa1 Adjustments to the Uri vs string debacle. It may not be possible to use Uri all throughout, and we should probably make it possible to use either form (string or Uri) in the method overloads. 2013-07-22 22:55:44 +03:00
Per Lundberg 3450e9027e Fixed whitespace use. 2013-07-22 18:04:53 +03:00
Per Lundberg 1af24ac5c4 Renamed to .h, since we need to refer to it from inside the project now. 2013-07-22 14:59:28 +03:00
Per Lundberg 8be1d42b08 Started converting over to the CEF3 way. Still more work to be done; many parts are for the moment commented out. 2013-07-22 14:55:34 +03:00
Per Lundberg d6c7149774 Include more files & rearrange some of them at the same time. 2013-07-22 13:44:43 +03:00
Per Lundberg 26e972f009 Fixes to make the RenderClientAdapterInternal be able to be instantiated, and implemented a very basic managed RenderClientAdapter version. 2013-07-22 13:44:27 +03:00
Per Lundberg 43e58bdd4f Moved to the CefSharp.Internals namespace. 2013-07-22 13:43:22 +03:00
Per Lundberg b2781ae7ce Use IntPtr for methods being exposed to managed code, to avoid having to use the unsafe keyword on the CLR side. Makes it cleaner this way IMO. 2013-07-22 13:43:06 +03:00
Per Lundberg 0b70a0fb27 Renamed OnBeforeMenu to OnBeforeContextMenu. Still WIP though, since we would need a much more sophisticated object model to support this w/ CEF3. 2013-07-22 13:05:29 +03:00
Per Lundberg 14695ea3a7 Added copyright header and got rid of explicit public for interface. 2013-07-22 13:04:42 +03:00
Per Lundberg ec907b1770 …and to the CefSharp.Internals namespace. 2013-07-22 11:33:09 +03:00
Per Lundberg 697404fb39 Moved to Internals folder. 2013-07-22 11:32:10 +03:00
Per Lundberg 031a362bc6 Added copyright header. 2013-07-22 11:31:29 +03:00
Per Lundberg 1aa40dbbe0 Moved to the proper folder. 2013-07-22 11:28:06 +03:00
Per Lundberg d3921e0de3 Let internal parts be internal. 2013-07-22 11:27:35 +03:00
Per Lundberg dede307cd6 Updated DownloadHandler stuff. 2013-07-22 10:52:58 +03:00
Per Lundberg 5e0171da92 Use a proper Out parameter. 2013-07-20 20:31:46 +03:00
Per Lundberg 693b51b54a Updated the DownloadHandler stuff to (hopefully) work with CEF3. :) 2013-07-20 20:30:33 +03:00
Per Lundberg 843a663931 Moved the implementation to the header file, in the spirit of C#… :-) 2013-07-20 20:15:59 +03:00
Per Lundberg a79380a010 No need to explicitly declare interfaces as public; they already have that by virtue of their nature. 2013-07-20 20:14:53 +03:00
Per Lundberg 828d61dd45 Added copyright header. 2013-07-20 20:13:58 +03:00
Per Lundberg 39fdb00a24 The IWebBrowser must be forward-declared in CefSharp, not CefSharp.Internals, since that's where the IWebBrowser exists. 2013-07-20 20:07:58 +03:00
Per Lundberg 36ca067e8b Moved to the Internals folder. 2013-07-20 20:03:35 +03:00
Per Lundberg 1ea9889ac4 Added copyright header + started preparing for internalizing the class, which it was already in practice but let's make it more explicit, shall we. 2013-07-20 20:01:50 +03:00
Per Lundberg 080e4a003a Apparently, we cannot import namespaces in a header file (it won't be imported in the .cpp/.h files including it), so we might as well skip it. 2013-07-20 19:35:09 +03:00
Per Lundberg 81e6d1da0a No need to refer to the ClientAdapter header here, since we don't depend on its type anyway. 2013-07-20 18:31:54 +03:00