Remove empty set from BoundObject example
Untabify BrowserProcessResponse
Make CamelCaseJavascriptNames (consistency, class should probably be made internal as a whole)
make JavascriptObjectRepository.CreateJavascriptObject private
Remove redundant using
This commit is contained in:
amaitland
2015-04-25 11:45:43 +10:00
parent fa43ec9997
commit f12643ea47
4 changed files with 15 additions and 23 deletions
+1 -5
View File
@@ -14,25 +14,21 @@ namespace CefSharp.Example
public uint[] MyUintArray
{
get { return new uint[] { 7, 8 }; }
set { }
}
public int[] MyIntArray
{
get { return new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }; }
set { }
get { return new [] { 1, 2, 3, 4, 5, 6, 7, 8 }; }
}
public Array MyArray
{
get { return new short[] { 1, 2, 3 }; }
set { }
}
public byte[] MyBytes
{
get { return new byte[] { 3, 4, 5 }; }
set { }
}
public BoundObject()
+12 -15
View File
@@ -2,14 +2,11 @@
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace CefSharp.Internals
{
[DataContract]
[DataContract]
[KnownType(typeof(bool[]))]
[KnownType(typeof(byte[]))]
[KnownType(typeof(short[]))]
@@ -21,15 +18,15 @@ namespace CefSharp.Internals
[KnownType(typeof(float[]))]
[KnownType(typeof(double[]))]
[KnownType(typeof(string[]))]
public class BrowserProcessResponse
{
[DataMember]
public string Message { get; set; }
[DataMember]
public bool Success { get; set; }
[DataMember]
public object Result { get; set; }
}
public class BrowserProcessResponse
{
[DataMember]
public string Message { get; set; }
[DataMember]
public bool Success { get; set; }
[DataMember]
public object Result { get; set; }
}
}
+1 -2
View File
@@ -2,7 +2,6 @@
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
@@ -26,7 +25,7 @@ namespace CefSharp.Internals
/// <summary>
/// Indicate if JavascriptName is camel case or not
/// </summary>
internal bool CamelCaseJavascriptNames { get; set; }
public bool CamelCaseJavascriptNames { get; set; }
/// <summary>
/// Gets the methods of the <see cref="JavascriptObject" />.
@@ -22,7 +22,7 @@ namespace CefSharp.Internals
RootObject = new JavascriptRootObject();
}
internal JavascriptObject CreateJavascriptObject(bool camelCaseJavascriptNames)
private JavascriptObject CreateJavascriptObject(bool camelCaseJavascriptNames)
{
long id;
lock (Lock)