Skip to content

Commit 2b46e75

Browse files
committed
Update protocol to r572598
1 parent 9775907 commit 2b46e75

File tree

204 files changed

+6073
-2473
lines changed

Some content is hidden

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

204 files changed

+6073
-2473
lines changed

browser_protocol.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,12 @@
11191119
"description": "Requested substring in name. Only histograms which have query as a\nsubstring in their name are extracted. An empty or absent query returns\nall histograms.",
11201120
"optional": true,
11211121
"type": "string"
1122+
},
1123+
{
1124+
"name": "delta",
1125+
"description": "If true, retrieve delta since last call.",
1126+
"optional": true,
1127+
"type": "boolean"
11221128
}
11231129
],
11241130
"returns": [
@@ -1141,6 +1147,12 @@
11411147
"name": "name",
11421148
"description": "Requested histogram name.",
11431149
"type": "string"
1150+
},
1151+
{
1152+
"name": "delta",
1153+
"description": "If true, retrieve delta since last call.",
1154+
"optional": true,
1155+
"type": "boolean"
11441156
}
11451157
],
11461158
"returns": [
@@ -12747,6 +12759,13 @@
1274712759
{
1274812760
"name": "targetId",
1274912761
"$ref": "TargetID"
12762+
},
12763+
{
12764+
"name": "flatten",
12765+
"description": "Enables \"flat\" access to the session via specifying sessionId attribute in the commands.",
12766+
"experimental": true,
12767+
"optional": true,
12768+
"type": "boolean"
1275012769
}
1275112770
],
1275212771
"returns": [
@@ -12897,6 +12916,7 @@
1289712916
"parameters": [
1289812917
{
1289912918
"name": "targetId",
12919+
"optional": true,
1290012920
"$ref": "TargetID"
1290112921
}
1290212922
],

cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/ChromeDevTools.java

Lines changed: 72 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import com.github.kklisura.cdt.protocol.commands.Debugger;
3737
import com.github.kklisura.cdt.protocol.commands.DeviceOrientation;
3838
import com.github.kklisura.cdt.protocol.commands.Emulation;
39+
import com.github.kklisura.cdt.protocol.commands.HeadlessExperimental;
3940
import com.github.kklisura.cdt.protocol.commands.HeapProfiler;
4041
import com.github.kklisura.cdt.protocol.commands.IO;
4142
import com.github.kklisura.cdt.protocol.commands.IndexedDB;
@@ -61,117 +62,120 @@
6162

6263
public interface ChromeDevTools {
6364

64-
/** Returns the Inspector command. */
65-
Inspector getInspector();
65+
/** Returns the Console command. */
66+
Console getConsole();
6667

67-
/** Returns the Memory command. */
68-
Memory getMemory();
68+
/** Returns the Debugger command. */
69+
Debugger getDebugger();
6970

70-
/** Returns the Performance command. */
71-
Performance getPerformance();
71+
/** Returns the HeapProfiler command. */
72+
HeapProfiler getHeapProfiler();
7273

73-
/** Returns the Page command. */
74-
Page getPage();
74+
/** Returns the Profiler command. */
75+
Profiler getProfiler();
7576

76-
/** Returns the Overlay command. */
77-
Overlay getOverlay();
77+
/** Returns the Runtime command. */
78+
Runtime getRuntime();
7879

79-
/** Returns the Emulation command. */
80-
Emulation getEmulation();
80+
/** Returns the Schema command. */
81+
Schema getSchema();
8182

82-
/** Returns the Security command. */
83-
Security getSecurity();
83+
/** Returns the Accessibility command. */
84+
Accessibility getAccessibility();
85+
86+
/** Returns the Animation command. */
87+
Animation getAnimation();
88+
89+
/** Returns the ApplicationCache command. */
90+
ApplicationCache getApplicationCache();
8491

8592
/** Returns the Audits command. */
8693
Audits getAudits();
8794

88-
/** Returns the Network command. */
89-
Network getNetwork();
90-
91-
/** Returns the Database command. */
92-
Database getDatabase();
95+
/** Returns the Browser command. */
96+
Browser getBrowser();
9397

94-
/** Returns the IndexedDB command. */
95-
IndexedDB getIndexedDB();
98+
/** Returns the CSS command. */
99+
CSS getCSS();
96100

97101
/** Returns the CacheStorage command. */
98102
CacheStorage getCacheStorage();
99103

100-
/** Returns the DOMStorage command. */
101-
DOMStorage getDOMStorage();
102-
103-
/** Returns the ApplicationCache command. */
104-
ApplicationCache getApplicationCache();
105-
106104
/** Returns the DOM command. */
107105
DOM getDOM();
108106

109-
/** Returns the CSS command. */
110-
CSS getCSS();
107+
/** Returns the DOMDebugger command. */
108+
DOMDebugger getDOMDebugger();
111109

112110
/** Returns the DOMSnapshot command. */
113111
DOMSnapshot getDOMSnapshot();
114112

115-
/** Returns the IO command. */
116-
IO getIO();
113+
/** Returns the DOMStorage command. */
114+
DOMStorage getDOMStorage();
117115

118-
/** Returns the DOMDebugger command. */
119-
DOMDebugger getDOMDebugger();
116+
/** Returns the Database command. */
117+
Database getDatabase();
120118

121-
/** Returns the Target command. */
122-
Target getTarget();
119+
/** Returns the DeviceOrientation command. */
120+
DeviceOrientation getDeviceOrientation();
123121

124-
/** Returns the ServiceWorker command. */
125-
ServiceWorker getServiceWorker();
122+
/** Returns the Emulation command. */
123+
Emulation getEmulation();
124+
125+
/** Returns the HeadlessExperimental command. */
126+
HeadlessExperimental getHeadlessExperimental();
127+
128+
/** Returns the IO command. */
129+
IO getIO();
130+
131+
/** Returns the IndexedDB command. */
132+
IndexedDB getIndexedDB();
126133

127134
/** Returns the Input command. */
128135
Input getInput();
129136

137+
/** Returns the Inspector command. */
138+
Inspector getInspector();
139+
130140
/** Returns the LayerTree command. */
131141
LayerTree getLayerTree();
132142

133-
/** Returns the DeviceOrientation command. */
134-
DeviceOrientation getDeviceOrientation();
143+
/** Returns the Log command. */
144+
Log getLog();
135145

136-
/** Returns the Tracing command. */
137-
Tracing getTracing();
146+
/** Returns the Memory command. */
147+
Memory getMemory();
138148

139-
/** Returns the Animation command. */
140-
Animation getAnimation();
149+
/** Returns the Network command. */
150+
Network getNetwork();
141151

142-
/** Returns the Accessibility command. */
143-
Accessibility getAccessibility();
152+
/** Returns the Overlay command. */
153+
Overlay getOverlay();
154+
155+
/** Returns the Page command. */
156+
Page getPage();
157+
158+
/** Returns the Performance command. */
159+
Performance getPerformance();
160+
161+
/** Returns the Security command. */
162+
Security getSecurity();
163+
164+
/** Returns the ServiceWorker command. */
165+
ServiceWorker getServiceWorker();
144166

145167
/** Returns the Storage command. */
146168
Storage getStorage();
147169

148-
/** Returns the Log command. */
149-
Log getLog();
150-
151170
/** Returns the SystemInfo command. */
152171
SystemInfo getSystemInfo();
153172

173+
/** Returns the Target command. */
174+
Target getTarget();
175+
154176
/** Returns the Tethering command. */
155177
Tethering getTethering();
156178

157-
/** Returns the Browser command. */
158-
Browser getBrowser();
159-
160-
/** Returns the Schema command. */
161-
Schema getSchema();
162-
163-
/** Returns the Runtime command. */
164-
Runtime getRuntime();
165-
166-
/** Returns the Debugger command. */
167-
Debugger getDebugger();
168-
169-
/** Returns the Console command. */
170-
Console getConsole();
171-
172-
/** Returns the Profiler command. */
173-
Profiler getProfiler();
174-
175-
/** Returns the HeapProfiler command. */
176-
HeapProfiler getHeapProfiler();
179+
/** Returns the Tracing command. */
180+
Tracing getTracing();
177181
}

cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/commands/Accessibility.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,26 @@ public interface Accessibility {
3232

3333
/**
3434
* Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
35-
*
36-
* @param nodeId ID of node to get the partial accessibility tree for.
3735
*/
3836
@Experimental
3937
@Returns("nodes")
40-
List<AXNode> getPartialAXTree(@ParamName("nodeId") Integer nodeId);
38+
List<AXNode> getPartialAXTree();
4139

4240
/**
4341
* Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
4442
*
45-
* @param nodeId ID of node to get the partial accessibility tree for.
43+
* @param nodeId Identifier of the node to get the partial accessibility tree for.
44+
* @param backendNodeId Identifier of the backend node to get the partial accessibility tree for.
45+
* @param objectId JavaScript object id of the node wrapper to get the partial accessibility tree
46+
* for.
4647
* @param fetchRelatives Whether to fetch this nodes ancestors, siblings and children. Defaults to
4748
* true.
4849
*/
4950
@Experimental
5051
@Returns("nodes")
5152
List<AXNode> getPartialAXTree(
52-
@ParamName("nodeId") Integer nodeId,
53+
@Optional @ParamName("nodeId") Integer nodeId,
54+
@Optional @ParamName("backendNodeId") Integer backendNodeId,
55+
@Optional @ParamName("objectId") String objectId,
5356
@Optional @ParamName("fetchRelatives") Boolean fetchRelatives);
5457
}

cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/commands/Animation.java

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,11 @@
3535
@Experimental
3636
public interface Animation {
3737

38-
/** Enables animation domain notifications. */
39-
void enable();
40-
4138
/** Disables animation domain notifications. */
4239
void disable();
4340

44-
/** Gets the playback rate of the document timeline. */
45-
@Returns("playbackRate")
46-
Double getPlaybackRate();
47-
48-
/**
49-
* Sets the playback rate of the document timeline.
50-
*
51-
* @param playbackRate Playback rate for animations on page
52-
*/
53-
void setPlaybackRate(@ParamName("playbackRate") Double playbackRate);
41+
/** Enables animation domain notifications. */
42+
void enable();
5443

5544
/**
5645
* Returns the current time of the an animation.
@@ -60,26 +49,24 @@ public interface Animation {
6049
@Returns("currentTime")
6150
Double getCurrentTime(@ParamName("id") String id);
6251

52+
/** Gets the playback rate of the document timeline. */
53+
@Returns("playbackRate")
54+
Double getPlaybackRate();
55+
6356
/**
64-
* Sets the paused state of a set of animations.
57+
* Releases a set of animations to no longer be manipulated.
6558
*
66-
* @param animations Animations to set the pause state of.
67-
* @param paused Paused state to set to.
59+
* @param animations List of animation ids to seek.
6860
*/
69-
void setPaused(
70-
@ParamName("animations") List<String> animations, @ParamName("paused") Boolean paused);
61+
void releaseAnimations(@ParamName("animations") List<String> animations);
7162

7263
/**
73-
* Sets the timing of an animation node.
64+
* Gets the remote object of the Animation.
7465
*
7566
* @param animationId Animation id.
76-
* @param duration Duration of the animation.
77-
* @param delay Delay of the animation.
7867
*/
79-
void setTiming(
80-
@ParamName("animationId") String animationId,
81-
@ParamName("duration") Double duration,
82-
@ParamName("delay") Double delay);
68+
@Returns("remoteObject")
69+
RemoteObject resolveAnimation(@ParamName("animationId") String animationId);
8370

8471
/**
8572
* Seek a set of animations to a particular time within each animation.
@@ -92,19 +79,36 @@ void seekAnimations(
9279
@ParamName("currentTime") Double currentTime);
9380

9481
/**
95-
* Releases a set of animations to no longer be manipulated.
82+
* Sets the paused state of a set of animations.
9683
*
97-
* @param animations List of animation ids to seek.
84+
* @param animations Animations to set the pause state of.
85+
* @param paused Paused state to set to.
9886
*/
99-
void releaseAnimations(@ParamName("animations") List<String> animations);
87+
void setPaused(
88+
@ParamName("animations") List<String> animations, @ParamName("paused") Boolean paused);
10089

10190
/**
102-
* Gets the remote object of the Animation.
91+
* Sets the playback rate of the document timeline.
92+
*
93+
* @param playbackRate Playback rate for animations on page
94+
*/
95+
void setPlaybackRate(@ParamName("playbackRate") Double playbackRate);
96+
97+
/**
98+
* Sets the timing of an animation node.
10399
*
104100
* @param animationId Animation id.
101+
* @param duration Duration of the animation.
102+
* @param delay Delay of the animation.
105103
*/
106-
@Returns("remoteObject")
107-
RemoteObject resolveAnimation(@ParamName("animationId") String animationId);
104+
void setTiming(
105+
@ParamName("animationId") String animationId,
106+
@ParamName("duration") Double duration,
107+
@ParamName("delay") Double delay);
108+
109+
/** Event for when an animation has been cancelled. */
110+
@EventName("animationCanceled")
111+
EventListener onAnimationCanceled(EventHandler<AnimationCanceled> eventListener);
108112

109113
/** Event for each animation that has been created. */
110114
@EventName("animationCreated")
@@ -113,8 +117,4 @@ void seekAnimations(
113117
/** Event for animation that has been started. */
114118
@EventName("animationStarted")
115119
EventListener onAnimationStarted(EventHandler<AnimationStarted> eventListener);
116-
117-
/** Event for when an animation has been cancelled. */
118-
@EventName("animationCanceled")
119-
EventListener onAnimationCanceled(EventHandler<AnimationCanceled> eventListener);
120120
}

0 commit comments

Comments
 (0)