mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
Let's go with the name "Javascript" everywhere, instead of JavaScript. The latter is arguably more "correct", but the former is also quite widespread and you could very well claim that "Javascript" is a such a common name that it can be normalized to follow normal "name rules", i.e. capitalize first letter only...
This commit is contained in:
@@ -87,9 +87,9 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Internals\BitmapInfo.cs" />
|
||||
<Compile Include="Internals\JavaScriptMemberDescription.cs" />
|
||||
<Compile Include="Internals\JavaScriptObject.cs" />
|
||||
<Compile Include="Internals\JavaScriptMember.cs" />
|
||||
<Compile Include="Internals\JavascriptMemberDescription.cs" />
|
||||
<Compile Include="Internals\JavascriptObject.cs" />
|
||||
<Compile Include="Internals\JavascriptMember.cs" />
|
||||
<Compile Include="Internals\ManagedCefApp.cs" />
|
||||
<Compile Include="CefCustomScheme.cs" />
|
||||
<Compile Include="CefErrorCode.cs" />
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
namespace CefSharp.Internals
|
||||
{
|
||||
[DataContract]
|
||||
public class JavaScriptMember
|
||||
public class JavascriptMember
|
||||
{
|
||||
public JavaScriptMemberDescription Description { get; set; }
|
||||
public JavascriptMemberDescription Description { get; set; }
|
||||
|
||||
[DataMember]
|
||||
public long DescriptionId { get; set; }
|
||||
|
||||
[DataMember]
|
||||
public JavaScriptObject Value { get; set; }
|
||||
public JavascriptObject Value { get; set; }
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -4,10 +4,10 @@ using System.Runtime.Serialization;
|
||||
namespace CefSharp.Internals
|
||||
{
|
||||
[DataContract]
|
||||
public class JavaScriptMemberDescription
|
||||
public abstract class JavascriptMemberDescription
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="JavaScriptMemberDescription" /> for BrowserProcess to RenderProcess communication
|
||||
/// Identifies the <see cref="JavascriptMemberDescription" /> for BrowserProcess to RenderProcess communication
|
||||
/// </summary>
|
||||
[DataMember]
|
||||
public long Id { get; set; }
|
||||
@@ -5,13 +5,13 @@ using System.Runtime.Serialization;
|
||||
namespace CefSharp.Internals
|
||||
{
|
||||
[DataContract]
|
||||
public class JavaScriptObject //: DynamicObject maybe later
|
||||
public class JavascriptObject //: DynamicObject maybe later
|
||||
{
|
||||
private static long nextId = 0;
|
||||
private static readonly object Lock = new object();
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="JavaScriptObject" /> for BrowserProcess to RenderProcess communication
|
||||
/// Identifies the <see cref="JavascriptObject" /> for BrowserProcess to RenderProcess communication
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The identifier.
|
||||
@@ -20,22 +20,22 @@ namespace CefSharp.Internals
|
||||
public long Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the members of the <see cref="JavaScriptObject" />.
|
||||
/// Gets the members of the <see cref="JavascriptObject" />.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The members.
|
||||
/// </value>
|
||||
[DataMember]
|
||||
public List<JavaScriptMember> Members { get; private set; }
|
||||
public List<JavascriptMember> Members { get; private set; }
|
||||
|
||||
public JavaScriptObject()
|
||||
public JavascriptObject()
|
||||
{
|
||||
lock (Lock)
|
||||
{
|
||||
Id = ++nextId;
|
||||
}
|
||||
|
||||
Members = new List<JavaScriptMember>();
|
||||
Members = new List<JavascriptMember>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user