Commit Graph

547 Commits

Author SHA1 Message Date
Per Lundberg 42d66e2bb3 Be more consistent with the whitespace + don't use explicit System:: when we don't really have to. 2013-06-05 11:28:11 +03:00
Per Lundberg bfe0450894 Let's make it a bit simpler for the caller, shall we. 2013-06-05 11:28:10 +03:00
Per Lundberg 4377e9bcf0 Whitespace changes. 2013-06-05 11:28:10 +03:00
Per Lundberg 49f4011c44 Revert "Rearranged where the output binaries are kept, in an attempt to avoid having to rebuild because of assembly version mismatches."
This reverts commit ed7476fd0e412ba3c96b721ef41dacb691ba2b33.
2013-06-05 11:28:10 +03:00
Per Lundberg c91c24ebb8 WIP: Added placeholder PropertyAccessor (doesn't really do anything useful at the moment). Next step is to actually get or set the property values from the object we're marshaling. 2013-06-05 11:28:10 +03:00
Per Lundberg b74f3f2b91 Moved the BindingData and BindingHandler into a separate CefSharp::Internals::JavascriptBinding namespace, in an attempt to structure things in a more maintainable way. Also added explicit private (= internal in C# speak) visibility on the classes, so you don't have to think what the visibility actually is. 2013-06-05 11:28:10 +03:00
Per Lundberg fe3c9b5558 WIP: Some cleanups and started working on my attempt to expose C# properties to JavaScript. Let's see if it is feasible... 2013-06-05 11:28:10 +03:00
Per Lundberg 23195ebac9 Whitespace change. 2013-06-05 11:28:10 +03:00
Per Lundberg 9f33333c90 Fixed some silly mistakes. 2013-06-05 11:28:10 +03:00
Per Lundberg 9a66f29fb3 Added our first XML method comments, to improve the IntelliSense experience and general maintainability of the code. 2013-06-05 11:28:10 +03:00
Per Lundberg dc34308fdc Generate XML documentation, since it's quite useful. We don't have any XML comments yet, so it's time to start adding it. 2013-06-05 11:28:10 +03:00
Per Lundberg 2093771d48 Updated includes and usings. 2013-06-05 11:28:10 +03:00
Per Lundberg fcaa679168 Changed to use our own local copy of vcclr.h, because the VS2012/Microsoft-provided one breaks IntelliSense… which is obviously quite bad. 2013-06-05 11:28:09 +03:00
Per Lundberg b3f69a3f99 Refer to the Stdafx.h file using the right casing (the file is actually called Stdafx.h, not stdafx.h). 2013-06-05 11:28:09 +03:00
Per Lundberg 7dee449f5f Refactored out the BindingData into a separate header file (according to the "one class per file" paradigm), and moved the setting up of the Javascript methods into a separate helper method. This frees us from one (quite superfluous) comment, which is always a good thing. 2013-06-05 11:28:09 +03:00
Per Lundberg 3e4119d742 Added a couple of properties, and made them (= special methods) be exempt from the methods bound to Javascript. Next set is to to try and bind them as Javascript properties. 2013-06-05 11:28:09 +03:00
Per Lundberg e9e02c1cd3 Rearranged where the output binaries are kept, in an attempt to avoid having to rebuild because of assembly version mismatches. 2013-06-05 11:28:09 +03:00
Per Lundberg 943c0aa375 Updated ignore list again, since we may get a .vshost.exe.config if we are compiling in Debug mode. 2013-06-05 11:28:09 +03:00
Per Lundberg 244a05197f Updated ignore list. This file is copied to the output folder now that we are on .NET 4.0. 2013-06-05 11:28:09 +03:00
Per Lundberg a9c35f843b Uncomment the usage of the WebView now that it works again. 2013-06-05 11:28:09 +03:00
Per Lundberg 0c3115288f WIP code, trying to figure out why we get a weird TypeLoadException... 2013-06-05 11:28:08 +03:00
Per Lundberg 2265da1bc8 Compile for x86. 2013-06-05 11:24:46 +03:00
Per Lundberg 6072ebb997 Updated all C# projects to target framework version 4.0. We could actually target 3.5 even though we're using VS2012, but that makes the build process require VS2008 SP1 (according to http://stackoverflow.com/questions/2921702/change-c-cli-project-to-another-framework-than-4-0-with-vs2010) so it might not make so much sense anyway. 2013-06-05 11:23:06 +03:00
Per Lundberg 6e02126274 Converted the project files also from VS2008/vcproj format to VS2012/vcxproj format. 2013-06-05 11:23:05 +03:00
Per Lundberg 7fe7d10e9d Converted from VS2008 to VS2012 format. 2013-06-05 11:13:41 +03:00
Per Lundberg aa8cb9d776 Updated ignore list. 2013-06-05 11:13:41 +03:00
Per Lundberg 10a9509228 Whitespace? I suspect this is a CRLF vs LF style commit... Couldn't make git accept that the files are unmodified whatsoever. 2013-06-05 11:12:19 +03:00
perlun 199641d323 Merge pull request #2 from mwisnicki/patch/vs2012-merged
Undo VS2010/VS2012 project split and use conditional elements when neede...
2013-05-28 11:57:33 -07:00
Marcin Wisnicki 67a024e0a3 Use conditional elements to support VS2010. 2013-05-28 13:41:23 +02:00
Marcin Wisnicki f1eb60fd44 Undo VS2010/VS2012 project split.
Remove redundant VS2010 solution. VS2012 sln works fine in VS2010sp1.
2013-05-28 12:11:05 +02:00
Per Lundberg 89fdc7df7f Use separate .csproj files for VS2012 also. 2013-05-17 21:23:34 +03:00
Per Lundberg 5df6deb460 Rebuilt to work with VS2012. (Oddly enough, the versions I had which I *knew* I've used with VS2012 didn't work now?!? Crazy. Oh well…) 2013-05-17 21:23:15 +03:00
Per Lundberg 75e488f5b1 Added script for cleaning the working directory to make it easier to switch between VS2010 and VS2012 (sorry, Mac/Unix only for the moment. :) 2013-05-17 21:06:11 +03:00
Per Lundberg 09d228c9ba Shouldn't have been version-controlled in the first place. 2013-05-17 21:04:34 +03:00
Per Lundberg 84cc85018a Unfortunate it is, but… We have to make separate .csproj files also, since they refer to the .vcxproj files in a way that makes it hard to use the same .csproj files from both the VS2010 and the VS2012 solutions. 2013-05-17 21:04:06 +03:00
Per Lundberg 4c07497133 Removed junk files which should never have been committed in the first place. 2013-05-17 18:20:23 +02:00
Per Lundberg 5ff64096e4 Updated to be able to successfully compile with VS2010. 2013-05-16 08:49:58 +02:00
Per Lundberg daff3feeb3 Updated to be compiled with /MT (which requires disabling C++ compiler warning 4275 to be able to successfully compile). 2013-05-16 08:48:49 +02:00
Per Lundberg 4e060bdcc3 Added vs2010 solution also (which does not build at the moment). 2013-05-15 23:39:03 +03:00
Per Lundberg 13c3bb48ee Renamed the .vcxproj files, to avoid colliding with the VS2010 files which are soon to be added. 2013-05-15 23:17:31 +03:00
Per Lundberg 2ef1cadce4 Renamed .sln file, since we will shortly have two .sln files (for VS2012 and 2010 respectively). 2013-05-15 23:01:35 +03:00
Per Lundberg ec819845c8 Rearranged the .lib files a bit, to make room for VS2010 versions of the files. 2013-05-15 22:57:03 +03:00
Per Lundberg 9c146bdddf Updated the ignore list, to avoid false positives. 2013-05-15 22:43:41 +03:00
Per Lundberg 4e76887ac4 Merge branch 'master' of https://github.com/perlun/CefSharp into vs2012 2013-05-06 12:22:16 +03:00
Per Lundberg 25f538b74b Updated ignore list. This file is copied to the output folder now that we are on .NET 4.0. 2013-05-03 23:01:01 +03:00
Per Lundberg a90b103a07 Uncomment the usage of the WebView now that it works again. 2013-05-01 23:28:03 +03:00
Per Lundberg 38afc692f6 This one is bothering me a bit more, since I'm mixing references and void* in a slightly funky way… Hard to test/verify since I couldn't manage to trigger the SetPopupSizeAndPosition to be called. :) 2013-05-01 23:27:47 +03:00
Per Lundberg 8452df8b39 Changed some of the parameter types which are unusable in VS2012/.NET 4.0 mode (the C++ compiler creates references to internal structs which are unusable from CLR code, making the type loader throw a TypeLoadException when trying to use the WebView). 2013-05-01 23:24:39 +03:00
Per Lundberg bf5894af52 WIP code, trying to figure out why we get a weird TypeLoadException... 2013-05-01 20:36:54 +03:00
Per Lundberg a7e698f3c6 Reindented the file, since it was a bit messy. 2013-05-01 20:36:08 +03:00