Commit Graph

528 Commits

Author SHA1 Message Date
Per Lundberg 2d8c0ec5d0 Added dummy CefApp-based class. It's quite likely that we will have to implement more stuff here eventually… :) 2013-07-19 14:33:02 +03:00
Per Lundberg dfa4075db4 Fixed to compile now that StringUtils has been refactored. 2013-07-19 14:31:55 +03:00
Per Lundberg a6244903a7 Moved to the CefSharp.Internals namespace, where it now should be. 2013-07-18 22:58:56 +03:00
Per Lundberg 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. 2013-07-18 22:51:00 +03:00
Per Lundberg 03f40efc4b Well, this might be an even better way to do it. 2013-07-18 22:38:44 +03:00
Per Lundberg 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. 2013-07-18 22:32:47 +03:00
Per Lundberg 2f297321ef Added copyright headers. 2013-07-18 00:44:00 +03:00
Per Lundberg 0c2895520b "StringUtils" makes more sense than "StringUtil", since the class is actually a collection of utilit*ies* rather than a single utility, arguably. 2013-07-17 22:05:27 +03:00
Per Lundberg bdedfa7bbb We can actually drop the "String" suffix here, since none of the other methods have it and it can reasonably easily be deduced now by the class name prefix, which will be used every time the method is being called anyway. 2013-07-17 21:19:16 +03:00
Per Lundberg 8280a21790 Let's rename this after all. "AssignFromString" isn't really a descriptive enough name. 2013-07-17 21:15:38 +03:00
Per Lundberg 13c876327c Moved the StringUtil methods into the Internals folder & namespace (since that's where they really belong), and moved them into a class proper + fixed their naming to be true CamelCase, not camelCase. This is C++, not Java. :P 2013-07-17 21:13:52 +03:00
Per Lundberg ea609795c8 Started doing some light refactorings here to make the code a bit more maintainable: Smaller, more concise methods. The FindBestMethod() is up next. 2013-07-13 00:16:47 +03:00
Per Lundberg 3ccc5444d7 Rearranged the class so that Bind() and Execute() is placed earlier in the file, since this is the most public part of the class. 2013-07-12 23:31:46 +03:00
Per Lundberg 86155517a9 Minor cleanups. I like the Uncle Bob style; try to make the code so clear that hardly any comments are really needful… More drastic changes coming up in a little while. 2013-07-12 22:44:47 +03:00
Corey 5e9576343f Fix HashSet support on VS2012
Added project reference to `System.Core` assembly.
2013-07-10 10:25:01 +10:00
Corey 685685bc35 Reverting to Dictionary for method names due to problems with VS2012 configuration. 2013-07-08 11:01:14 +10:00
Corey ca17ff1d97 Missed code change in prior commit + update
`methodNames->Keys` should be simply `methodNames`.
Updated to fix some code issues identified by perlun.
2013-07-03 10:10:47 +10:00
Corey 88b8dcd066 Binding Updates: More flexible argument matching
Reimplemented BindingHandler::FindBestMethod to support a range of options including C#-style param arrays and optional parameters with default values.
Changed method name scanning to use HashSet instead of Dictionary to simplify duplicate name handling.
2013-07-02 13:24:03 +10:00
Per Lundberg 18e5f45716 Updated comment. 2013-07-01 22:26:33 +03:00
Per Lundberg 8fbdef4936 Whitespace fixes (was some incorrect tabs). Also removed a comment which isn't really needed; the code is clear enough in itself. 2013-07-01 22:18:17 +03:00
Corey 36f5a58c8f Add support for parameters of type 'Object' accepting any type of value.
Fix object binding to allow multiple methods with same name.
2013-07-01 16:57:55 +10:00
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 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 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