Commit Graph

  • 709fa1237f Whitespace? Per Lundberg 2013-07-24 10:04:15 +03:00
  • e974c3ed7f …and use more opacity. Per Lundberg 2013-07-24 10:03:55 +03:00
  • ba0c078abc Make the window a bit bigger by default. Per Lundberg 2013-07-24 10:03:29 +03:00
  • 1aa2627495 Use the VS hosting process. Per Lundberg 2013-07-24 10:03:16 +03:00
  • 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... Per Lundberg 2013-07-24 10:03:02 +03:00
  • 002389ff0f Started working on the Dispose() stuff. Very much unfinished yet. Per Lundberg 2013-07-24 09:54:32 +03:00
  • 2c687560c3 Propagate the mouse events over to CEF. Per Lundberg 2013-07-24 09:54:15 +03:00
  • e478112993 Dropped explicit public. Per Lundberg 2013-07-24 09:37:53 +03:00
  • 5ace4ade2b Fixed SetCursor() to work properly even when called from a background thread. Per Lundberg 2013-07-24 09:15:58 +03:00
  • 8a8f888e8d Missed parts of the resize code (the part that actually detects the resize and informs CEF). Per Lundberg 2013-07-24 09:15:17 +03:00
  • 29bc05fab1 Made the exposure of CefBrowserHost more generic, since we will use it for many other use cases shortly. Per Lundberg 2013-07-23 23:09:12 +03:00
  • 192d72e5f0 Added support for resizing. Doesn't work fully, throws exceptions sometimes, but it's at least a start. Per Lundberg 2013-07-23 22:58:59 +03:00
  • c6fbd4e7e7 Silly bug: ActualWidth and ActualHeight wasn't really distinguished between properly... Per Lundberg 2013-07-23 22:58:04 +03:00
  • 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). Per Lundberg 2013-07-23 22:25:51 +03:00
  • 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. Per Lundberg 2013-07-23 22:19:15 +03:00
  • 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". :) Per Lundberg 2013-07-23 22:17:22 +03:00
  • 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... Per Lundberg 2013-07-23 19:30:53 +03:00
  • f5fbf0cb95 Added some default return values, so we avoid compilation warnings. Per Lundberg 2013-07-23 10:20:56 +03:00
  • 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++. Per Lundberg 2013-07-23 10:19:57 +03:00
  • 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…) Per Lundberg 2013-07-23 00:01:06 +03:00
  • d6268d1703 CefSharp.Wpf has a new GUID and file name etc. Per Lundberg 2013-07-22 23:47:12 +03:00
  • 12ff5be33b Added the BrowserSettings.h file. Per Lundberg 2013-07-22 23:46:49 +03:00
  • 82068d3e5b Added the CreateOffscreenBrowser method, which seems to work fairly OK as of yet. (The browser is created and page loading is seemingly initiated.) Per Lundberg 2013-07-22 23:46:34 +03:00
  • 5385155259 Minor changes. Per Lundberg 2013-07-22 23:45:59 +03:00
  • 68c9725c66 Quite big change: Started refactoring the CefSharp.Wpf project from C++ to C#, making it a bit more maintainable and so forth. It just feels silly to try to maintain a WPF control in C++, IMHO… Very many parts are still missing but it's at least a start. Per Lundberg 2013-07-22 23:45:22 +03:00
  • 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. Per Lundberg 2013-07-22 22:55:44 +03:00
  • 3450e9027e Fixed whitespace use. Per Lundberg 2013-07-22 18:04:53 +03:00
  • 1af24ac5c4 Renamed to .h, since we need to refer to it from inside the project now. Per Lundberg 2013-07-22 14:58:54 +03:00
  • 8be1d42b08 Started converting over to the CEF3 way. Still more work to be done; many parts are for the moment commented out. Per Lundberg 2013-07-22 14:55:34 +03:00
  • db107b30f7 Updated to work better now that some parts are renamed and so forth. Per Lundberg 2013-07-22 13:45:04 +03:00
  • d6c7149774 Include more files & rearrange some of them at the same time. Per Lundberg 2013-07-22 13:44:43 +03:00
  • 26e972f009 Fixes to make the RenderClientAdapterInternal be able to be instantiated, and implemented a very basic managed RenderClientAdapter version. Per Lundberg 2013-07-22 13:44:27 +03:00
  • 43e58bdd4f Moved to the CefSharp.Internals namespace. Per Lundberg 2013-07-22 13:43:22 +03:00
  • 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. Per Lundberg 2013-07-22 13:43:06 +03:00
  • 0b70a0fb27 Renamed OnBeforeMenu to OnBeforeContextMenu. Still WIP though, since we would need a much more sophisticated object model to support this w/ CEF3. Per Lundberg 2013-07-22 13:05:29 +03:00
  • 14695ea3a7 Added copyright header and got rid of explicit public for interface. Per Lundberg 2013-07-22 13:04:42 +03:00
  • ec907b1770 …and to the CefSharp.Internals namespace. Per Lundberg 2013-07-22 11:33:09 +03:00
  • 697404fb39 Moved to Internals folder. Per Lundberg 2013-07-22 11:32:10 +03:00
  • 031a362bc6 Added copyright header. Per Lundberg 2013-07-22 11:31:29 +03:00
  • 1aa40dbbe0 Moved to the proper folder. Per Lundberg 2013-07-22 11:28:06 +03:00
  • d3921e0de3 Let internal parts be internal. Per Lundberg 2013-07-22 11:27:35 +03:00
  • dede307cd6 Updated DownloadHandler stuff. Per Lundberg 2013-07-22 10:52:58 +03:00
  • 5e0171da92 Use a proper Out parameter. Per Lundberg 2013-07-20 20:31:46 +03:00
  • 693b51b54a Updated the DownloadHandler stuff to (hopefully) work with CEF3. :) Per Lundberg 2013-07-20 20:30:33 +03:00
  • 843a663931 Moved the implementation to the header file, in the spirit of C#… :-) Per Lundberg 2013-07-20 20:15:59 +03:00
  • a79380a010 No need to explicitly declare interfaces as public; they already have that by virtue of their nature. Per Lundberg 2013-07-20 20:14:53 +03:00
  • 828d61dd45 Added copyright header. Per Lundberg 2013-07-20 20:13:58 +03:00
  • 39fdb00a24 The IWebBrowser must be forward-declared in CefSharp, not CefSharp.Internals, since that's where the IWebBrowser exists. Per Lundberg 2013-07-20 20:07:58 +03:00
  • af79da52c0 Added the libcef_dll_wrapper libs for VS2012, so we don't just support VS2010. Per Lundberg 2013-07-20 20:04:43 +03:00
  • 36ca067e8b Moved to the Internals folder. Per Lundberg 2013-07-20 20:03:35 +03:00
  • 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. Per Lundberg 2013-07-20 20:01:50 +03:00
  • 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. Per Lundberg 2013-07-20 19:35:09 +03:00
  • 81e6d1da0a No need to refer to the ClientAdapter header here, since we don't depend on its type anyway. Per Lundberg 2013-07-20 18:31:54 +03:00
  • 63de9d52da …and in the Internals folder. Per Lundberg 2013-07-20 18:30:32 +03:00
  • 386196b810 Internal stuff had better be in the CefSharp.Internals namespace. Per Lundberg 2013-07-20 18:29:54 +03:00
  • 9156a29e8b RenderClientAdapter is now RenderClientAdapterInternal. Per Lundberg 2013-07-20 00:25:33 +03:00
  • bcb9acd063 Whitespace etc. Per Lundberg 2013-07-20 00:24:47 +03:00
  • 1a2220e85c Include more files. Per Lundberg 2013-07-20 00:24:34 +03:00
  • 7a42c8b6e1 Started work on the new, public RenderClientAdapter class. Per Lundberg 2013-07-20 00:24:10 +03:00
  • 58a21ebd49 Added copyright blarb. Per Lundberg 2013-07-20 00:20:23 +03:00
  • b8d9305346 Renamed to RenderClientAdapterInternal, since we will have a public one shortly (which can be used safely from managed code). Per Lundberg 2013-07-20 00:16:53 +03:00
  • 422f642635 Moved to the Internals namespace. Per Lundberg 2013-07-20 00:15:30 +03:00
  • 285b72bb65 Moved to the Internals. We will have to keep this as an internal class, and provide a public (managed) type instead. Cannot have both, since we are deriving from an unmanaged base class. Per Lundberg 2013-07-20 00:11:00 +03:00
  • 37b664f3d3 Next one up for CEF3-fixing… RenderClientAdapter. Should be pretty OK now, next step is to make it usable from .NET code (so we don't have to keep the WPF/WinForms controls in C++ any more). Per Lundberg 2013-07-20 00:03:36 +03:00
  • b8280ee335 Once again, added more boilerplates... Per Lundberg 2013-07-19 23:58:47 +03:00
  • 950977f815 Use Uri rather than string for Uri-type values. Per Lundberg 2013-07-19 23:50:22 +03:00
  • ce132f7a56 Fixed typo. Per Lundberg 2013-07-19 23:49:01 +03:00
  • 6ac21f4c3a Updated license; the copyright for this isn't truly only Anthony's, as far as I remember (even though it may be more legally binding that way, than referring to a pseudo non-legally existing entity ;) Anyway, I feel it is better this way. Per Lundberg 2013-07-19 23:19:47 +03:00
  • 616eaf93cd Added boilerplate headers. Per Lundberg 2013-07-19 23:18:30 +03:00
  • f6edbe99b7 Well, let's include a bit more of the .cpp/.h files. I think this list is not yet exhaustive; we probably already use more than what's actually included here. Still don't want to just include "everything" but rather prefer to go through all the files and do necessary refactorings at the same time. Per Lundberg 2013-07-19 15:29:26 +03:00
  • b392976d6f CEF is now Cef, in line with the MS.NET naming conventions. Per Lundberg 2013-07-19 15:28:37 +03:00
  • e620dadeb7 MCefRefPtr is now in Internals. Per Lundberg 2013-07-19 15:28:18 +03:00
  • 0e3bc92758 Added extra overload, so we can call Initialize() without parameters if we don't care about the settings. Per Lundberg 2013-07-19 15:28:04 +03:00
  • 99d440b948 Updated to work w/ changes in StringUtils. Per Lundberg 2013-07-19 15:27:19 +03:00
  • c8f07dd9a3 URIs have their own .NET type, so let's go with that instead of String. Per Lundberg 2013-07-19 15:26:53 +03:00
  • 33a8d4fc8a Moved to the Internals folder & namespace. Per Lundberg 2013-07-19 15:19:06 +03:00
  • 429d338271 Added copyright header. Per Lundberg 2013-07-19 15:17:52 +03:00
  • 020f75aa1a Updated usage, since CookieVisitor.h is now in the Internals subdirectory. Per Lundberg 2013-07-19 14:43:30 +03:00
  • 486c3786dc Let's make the class private (i.e. internal) while we're at it. Per Lundberg 2013-07-19 14:42:45 +03:00
  • 93503b2cfe Moved to the Internals folder, since this class isn't usable from the outside. Per Lundberg 2013-07-19 14:42:03 +03:00
  • 9af257c046 Updated with new file header. Per Lundberg 2013-07-19 14:37:26 +03:00
  • 2d8c0ec5d0 Added dummy CefApp-based class. It's quite likely that we will have to implement more stuff here eventually… :) Per Lundberg 2013-07-19 14:33:02 +03:00
  • dfa4075db4 Fixed to compile now that StringUtils has been refactored. Per Lundberg 2013-07-19 14:31:55 +03:00
  • a6244903a7 Moved to the CefSharp.Internals namespace, where it now should be. Per Lundberg 2013-07-18 22:58:56 +03:00
  • 1a4bca24ca Updated includes. Per Lundberg 2013-07-18 22:58:13 +03:00
  • 1d9d5e008f One file per type (class/interface) makes everything feel much better. Per Lundberg 2013-07-18 22:57:27 +03:00
  • c72ca7dba5 StringUtils are needed here. Per Lundberg 2013-07-18 22:56:41 +03:00
  • 7656faf68f Moved here. Let's try to be really careful now to place ALL internal classes in the Internals subfolder, to make it easier to distinguish between the internal and public parts of the assembly. Per Lundberg 2013-07-18 22:51:00 +03:00
  • ff71a53abd More copyright headers. Per Lundberg 2013-07-18 22:49:08 +03:00
  • 3e19254c8f All of ClientAdapter now compiles, but not links successfully, because of commented out methods. Next step is now to try and get all of these functional with CEF3. Per Lundberg 2013-07-18 22:43:43 +03:00
  • 03f40efc4b Well, this might be an even better way to do it. Per Lundberg 2013-07-18 22:38:44 +03:00
  • db6ad304ab Added (half-stupid) handling of nullptr cases. It would of course be more reasonable to return a nullptr if the result is null, but the problem is that this is a major change (would have to return a pointer to a string instead, which the caller would have to make sure to delete and so forth…), so it's not worth it at the moment. Per Lundberg 2013-07-18 22:32:47 +03:00
  • f612d0e468 Updated to CEF3/Chromium 27. I think we have most of it covered now, as far as the header file goes, except for OnBeforeBrowse and OnResourceResponse. I have no idea what these correspond to with CEF3 so we will have to check if up with Marshall et al. Per Lundberg 2013-07-18 22:14:39 +03:00
  • 8ebf1091e2 Added copyright header. Per Lundberg 2013-07-18 21:14:11 +03:00
  • a14ab9e253 Cosmetic fix: The #pragma once should be first of all... Per Lundberg 2013-07-18 21:12:44 +03:00
  • d8413f0d76 Updated Cef.h with all the contents of the previous CefSharp.h, but updated to work with CEF3/Chromium 27. Also made the Cef.h be automatically included from Stdafx.h. Per Lundberg 2013-07-18 21:12:16 +03:00
  • fa6007f763 We don't need this one any more; all of the implementation is in the .h(eader) file anyway. Per Lundberg 2013-07-18 21:11:14 +03:00
  • 569d2630cb Let's make CefSharp::Internals globally available. This is generally considered bad practice in the C++ camp, but I think it's perfectly acceptable in this use case. Per Lundberg 2013-07-18 15:50:23 +03:00
  • 33d85cfcfa Updates to work with CEF3. Per Lundberg 2013-07-18 15:49:42 +03:00
  • 4a106bb739 Made it more clear that we will hardly ever support a single-threaded message loop. :-) Per Lundberg 2013-07-18 00:44:20 +03:00