mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
Cherry picked changes from https://github.com/cefsharp/CefSharp/pull/972
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:
@@ -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()
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user