Commit Graph

677 Commits

Author SHA1 Message Date
Per Lundberg 733f81bb39 Added case mangling for properties also, so we are internally consistent. 2013-06-05 14:28:19 +03:00
Per Lundberg cbb44b99b4 Fixed an obvious misspelling. 2013-06-05 14:28:01 +03:00
Per Lundberg 608af903c6 Added test case for the method casing & updated existing tests (since the method names are now camelCased). 2013-06-05 14:15:37 +03:00
Per Lundberg f3b6c5ed26 Implemented method-name mapping so that MyMethod() in CLR/.NET becomes myMethod() in Javascript, which is how you would expect it to work. 2013-06-05 14:15:18 +03:00
Per Lundberg 56e074fa2d Merge branch 'vs2012-with_properties' into vs2012-javascript-method-casing 2013-06-05 12:24:25 +03:00
Per Lundberg 6e7914db4d Need to refer to this using a more fully qualified path. 2013-06-05 12:24:03 +03:00
Per Lundberg 43ab9c102c Need to add the ProjectDir to the list of includes since we are now using subdirectories. 2013-06-05 12:21:18 +03:00
Per Lundberg 80d07df062 The PropertyAccessor should also be in the subdir. 2013-06-05 12:20:51 +03:00
Per Lundberg 3bb0139d88 Merge branch 'vs2012-with_properties' into vs2012-javascript-method-casing 2013-06-05 12:14:36 +03:00
Per Lundberg 33c82d6640 One more thing that seems to have gone MIA during the rebase. These should be in a separate subfolder to try and structure things more clearly. 2013-06-05 12:14:09 +03:00
Per Lundberg 2ca97463ba WIP commit since we are about to switch branches back and forth. 2013-06-05 12:10:25 +03:00
Per Lundberg f79ee06bd9 Renamed the wrappedObject to javascriptWrapper, since this is actually NOT the wrapped object but rather a wrapper around it. :) 2013-06-05 12:06:07 +03:00
Per Lundberg 71eb9d90d4 Apparently, I managed to mess up the rebase a bit. Luckily VS2012 fixed it all for me. :) 2013-06-05 11:33:12 +03:00
Per Lundberg a9d5dd770b Removed comment which isn't relevant any more (we do handle r/o properties correctly). 2013-06-05 11:28:11 +03:00
Per Lundberg a10789749d Whitespace fixes. (My bad; C++ settings for VS2012 was incorrectly set to use tabs instead of spaces, leading to some noise in the diff.) 2013-06-05 11:28:11 +03:00
Per Lundberg 73b86797c5 Added listing of the properties bound. 2013-06-05 11:28:11 +03:00
Per Lundberg 36bf863329 Added support for property setting. 2013-06-05 11:28:11 +03:00
Per Lundberg 35dfcebe1a Let's make this internal instead. 2013-06-05 11:28:11 +03:00
Per Lundberg f5b2ce92d3 Implemented exception handling if the property cannot be read. Not 100% sure about this one, but in some way it feels best to propagate a CLR exception into the exception output variable. 2013-06-05 11:28:11 +03:00
Per Lundberg 11092e383c Added unconvertible property, just to be able to test it. 2013-06-05 11:28:11 +03:00
Per Lundberg 62917949c4 Fixed the exception message to make more sense. 2013-06-05 11:28:11 +03:00
Per Lundberg 0cea4a1bbb Implemented support for properties in the Javascript. Fully functional when it comes to getting values; setting values will follow. 2013-06-05 11:28:11 +03:00
Per Lundberg d1dbb9dbf6 BindingData is now called UnmanagedWrapper, which better describes its "raison d'être". 2013-06-05 11:28:11 +03:00
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