Skip to content

Commit 4782cba

Browse files
committed
DevTools Client - Generated from active browser instance (M84)
1 parent 6c76202 commit 4782cba

File tree

419 files changed

+16550
-1260
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

419 files changed

+16550
-1260
lines changed

CefSharp.Example/DevTools/DevToolsExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static async Task<byte[]> CaptureScreenShotAsPng(this IWebBrowser chromiu
3939

4040
var result = await devToolsClient.ExecuteDevToolsMethodAsync(methodName);
4141

42-
dynamic response = JsonConvert.DeserializeObject<dynamic>(result.ResultAsJsonString);
42+
dynamic response = JsonConvert.DeserializeObject<dynamic>(result.ResponseAsJsonString);
4343

4444
//Success
4545
if (result.Success)

CefSharp.Test/DevTools/DevToolsClientFacts.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using Xunit;
99
using Xunit.Abstractions;
1010

11-
namespace CefSharp.Test.OffScreen
11+
namespace CefSharp.Test.DevTools
1212
{
1313
//NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle
1414
[Collection(CefSharpFixtureCollection.Key)]
@@ -32,7 +32,7 @@ public void CanConvertDevToolsObjectToDictionary()
3232
Width = 1,
3333
Left = 1,
3434
Top = 1,
35-
WindowState = WindowState.Fullscreen.ToString()
35+
WindowState = WindowState.Fullscreen
3636
};
3737

3838
var dict = bounds.ToDictionary();
@@ -41,7 +41,7 @@ public void CanConvertDevToolsObjectToDictionary()
4141
Assert.Equal(bounds.Width, (int)dict["width"]);
4242
Assert.Equal(bounds.Top, (int)dict["top"]);
4343
Assert.Equal(bounds.Left, (int)dict["left"]);
44-
Assert.Equal(bounds.WindowState, (string)dict["windowState"]);
44+
Assert.Equal("fullscreen", (string)dict["windowState"]);
4545
}
4646

4747

CefSharp/CefSharp.csproj

+273-24
Large diffs are not rendered by default.
+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
// Copyright © 2020 The CefSharp Authors. All rights reserved.
2+
//
3+
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4+
namespace CefSharp.DevTools.Accessibility
5+
{
6+
/// <summary>
7+
/// A node in the accessibility tree.
8+
/// </summary>
9+
public class AXNode : CefSharp.DevTools.DevToolsDomainEntityBase
10+
{
11+
/// <summary>
12+
/// Unique identifier for this node.
13+
/// </summary>
14+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))]
15+
public string NodeId
16+
{
17+
get;
18+
set;
19+
}
20+
21+
/// <summary>
22+
/// Whether this node is ignored for accessibility
23+
/// </summary>
24+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("ignored"), IsRequired = (true))]
25+
public bool Ignored
26+
{
27+
get;
28+
set;
29+
}
30+
31+
/// <summary>
32+
/// Collection of reasons why this node is hidden.
33+
/// </summary>
34+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("ignoredReasons"), IsRequired = (false))]
35+
public System.Collections.Generic.IList<CefSharp.DevTools.Accessibility.AXProperty> IgnoredReasons
36+
{
37+
get;
38+
set;
39+
}
40+
41+
/// <summary>
42+
/// This `Node`'s role, whether explicit or implicit.
43+
/// </summary>
44+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("role"), IsRequired = (false))]
45+
public CefSharp.DevTools.Accessibility.AXValue Role
46+
{
47+
get;
48+
set;
49+
}
50+
51+
/// <summary>
52+
/// The accessible name for this `Node`.
53+
/// </summary>
54+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (false))]
55+
public CefSharp.DevTools.Accessibility.AXValue Name
56+
{
57+
get;
58+
set;
59+
}
60+
61+
/// <summary>
62+
/// The accessible description for this `Node`.
63+
/// </summary>
64+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("description"), IsRequired = (false))]
65+
public CefSharp.DevTools.Accessibility.AXValue Description
66+
{
67+
get;
68+
set;
69+
}
70+
71+
/// <summary>
72+
/// The value for this `Node`.
73+
/// </summary>
74+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))]
75+
public CefSharp.DevTools.Accessibility.AXValue Value
76+
{
77+
get;
78+
set;
79+
}
80+
81+
/// <summary>
82+
/// All other properties
83+
/// </summary>
84+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("properties"), IsRequired = (false))]
85+
public System.Collections.Generic.IList<CefSharp.DevTools.Accessibility.AXProperty> Properties
86+
{
87+
get;
88+
set;
89+
}
90+
91+
/// <summary>
92+
/// IDs for each of this node's child nodes.
93+
/// </summary>
94+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("childIds"), IsRequired = (false))]
95+
public string[] ChildIds
96+
{
97+
get;
98+
set;
99+
}
100+
101+
/// <summary>
102+
/// The backend ID for the associated DOM node, if any.
103+
/// </summary>
104+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("backendDOMNodeId"), IsRequired = (false))]
105+
public int? BackendDOMNodeId
106+
{
107+
get;
108+
set;
109+
}
110+
}
111+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Copyright © 2020 The CefSharp Authors. All rights reserved.
2+
//
3+
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4+
namespace CefSharp.DevTools.Accessibility
5+
{
6+
/// <summary>
7+
/// AXProperty
8+
/// </summary>
9+
public class AXProperty : CefSharp.DevTools.DevToolsDomainEntityBase
10+
{
11+
/// <summary>
12+
/// The name of this property.
13+
/// </summary>
14+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))]
15+
public CefSharp.DevTools.Accessibility.AXPropertyName Name
16+
{
17+
get;
18+
set;
19+
}
20+
21+
/// <summary>
22+
/// The value of this property.
23+
/// </summary>
24+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))]
25+
public CefSharp.DevTools.Accessibility.AXValue Value
26+
{
27+
get;
28+
set;
29+
}
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Copyright © 2020 The CefSharp Authors. All rights reserved.
2+
//
3+
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4+
namespace CefSharp.DevTools.Accessibility
5+
{
6+
/// <summary>
7+
/// AXRelatedNode
8+
/// </summary>
9+
public class AXRelatedNode : CefSharp.DevTools.DevToolsDomainEntityBase
10+
{
11+
/// <summary>
12+
/// The BackendNodeId of the related DOM node.
13+
/// </summary>
14+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("backendDOMNodeId"), IsRequired = (true))]
15+
public int BackendDOMNodeId
16+
{
17+
get;
18+
set;
19+
}
20+
21+
/// <summary>
22+
/// The IDRef value provided, if any.
23+
/// </summary>
24+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("idref"), IsRequired = (false))]
25+
public string Idref
26+
{
27+
get;
28+
set;
29+
}
30+
31+
/// <summary>
32+
/// The text alternative of this node in the current context.
33+
/// </summary>
34+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (false))]
35+
public string Text
36+
{
37+
get;
38+
set;
39+
}
40+
}
41+
}
+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// Copyright © 2020 The CefSharp Authors. All rights reserved.
2+
//
3+
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4+
namespace CefSharp.DevTools.Accessibility
5+
{
6+
/// <summary>
7+
/// A single computed AX property.
8+
/// </summary>
9+
public class AXValue : CefSharp.DevTools.DevToolsDomainEntityBase
10+
{
11+
/// <summary>
12+
/// The type of this value.
13+
/// </summary>
14+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))]
15+
public CefSharp.DevTools.Accessibility.AXValueType Type
16+
{
17+
get;
18+
set;
19+
}
20+
21+
/// <summary>
22+
/// The computed value of this property.
23+
/// </summary>
24+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))]
25+
public object Value
26+
{
27+
get;
28+
set;
29+
}
30+
31+
/// <summary>
32+
/// One or more related nodes, if applicable.
33+
/// </summary>
34+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("relatedNodes"), IsRequired = (false))]
35+
public System.Collections.Generic.IList<CefSharp.DevTools.Accessibility.AXRelatedNode> RelatedNodes
36+
{
37+
get;
38+
set;
39+
}
40+
41+
/// <summary>
42+
/// The sources which contributed to the computation of this property.
43+
/// </summary>
44+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("sources"), IsRequired = (false))]
45+
public System.Collections.Generic.IList<CefSharp.DevTools.Accessibility.AXValueSource> Sources
46+
{
47+
get;
48+
set;
49+
}
50+
}
51+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
// Copyright © 2020 The CefSharp Authors. All rights reserved.
2+
//
3+
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4+
namespace CefSharp.DevTools.Accessibility
5+
{
6+
/// <summary>
7+
/// A single source for a computed AX property.
8+
/// </summary>
9+
public class AXValueSource : CefSharp.DevTools.DevToolsDomainEntityBase
10+
{
11+
/// <summary>
12+
/// What type of source this is.
13+
/// </summary>
14+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))]
15+
public CefSharp.DevTools.Accessibility.AXValueSourceType Type
16+
{
17+
get;
18+
set;
19+
}
20+
21+
/// <summary>
22+
/// The value of this property source.
23+
/// </summary>
24+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))]
25+
public CefSharp.DevTools.Accessibility.AXValue Value
26+
{
27+
get;
28+
set;
29+
}
30+
31+
/// <summary>
32+
/// The name of the relevant attribute, if any.
33+
/// </summary>
34+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("attribute"), IsRequired = (false))]
35+
public string Attribute
36+
{
37+
get;
38+
set;
39+
}
40+
41+
/// <summary>
42+
/// The value of the relevant attribute, if any.
43+
/// </summary>
44+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("attributeValue"), IsRequired = (false))]
45+
public CefSharp.DevTools.Accessibility.AXValue AttributeValue
46+
{
47+
get;
48+
set;
49+
}
50+
51+
/// <summary>
52+
/// Whether this source is superseded by a higher priority source.
53+
/// </summary>
54+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("superseded"), IsRequired = (false))]
55+
public bool? Superseded
56+
{
57+
get;
58+
set;
59+
}
60+
61+
/// <summary>
62+
/// The native markup source for this value, e.g. a <label> element.
63+
/// </summary>
64+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("nativeSource"), IsRequired = (false))]
65+
public CefSharp.DevTools.Accessibility.AXValueNativeSourceType? NativeSource
66+
{
67+
get;
68+
set;
69+
}
70+
71+
/// <summary>
72+
/// The value, such as a node or node list, of the native source.
73+
/// </summary>
74+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("nativeSourceValue"), IsRequired = (false))]
75+
public CefSharp.DevTools.Accessibility.AXValue NativeSourceValue
76+
{
77+
get;
78+
set;
79+
}
80+
81+
/// <summary>
82+
/// Whether the value for this property is invalid.
83+
/// </summary>
84+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("invalid"), IsRequired = (false))]
85+
public bool? Invalid
86+
{
87+
get;
88+
set;
89+
}
90+
91+
/// <summary>
92+
/// Reason for the value being invalid, if it is.
93+
/// </summary>
94+
[System.Runtime.Serialization.DataMemberAttribute(Name = ("invalidReason"), IsRequired = (false))]
95+
public string InvalidReason
96+
{
97+
get;
98+
set;
99+
}
100+
}
101+
}

0 commit comments

Comments
 (0)