Skip to content

Commit cd4f54f

Browse files
committed
Update protocol
1 parent e828564 commit cd4f54f

File tree

427 files changed

+501
-427
lines changed

Some content is hidden

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

427 files changed

+501
-427
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* #%L
55
* cdt-java-client
66
* %%
7-
* Copyright (C) 2018 Kenan Klisura
7+
* Copyright (C) 2018 - 2019 Kenan Klisura
88
* %%
99
* Licensed under the Apache License, Version 2.0 (the "License");
1010
* you may not use this file except in compliance with the License.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* #%L
55
* cdt-java-client
66
* %%
7-
* Copyright (C) 2018 Kenan Klisura
7+
* Copyright (C) 2018 - 2019 Kenan Klisura
88
* %%
99
* Licensed under the Apache License, Version 2.0 (the "License");
1010
* you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@
2323
import com.github.kklisura.cdt.protocol.support.annotations.Experimental;
2424
import com.github.kklisura.cdt.protocol.support.annotations.Optional;
2525
import com.github.kklisura.cdt.protocol.support.annotations.ParamName;
26+
import com.github.kklisura.cdt.protocol.support.annotations.ReturnTypeParameter;
2627
import com.github.kklisura.cdt.protocol.support.annotations.Returns;
2728
import com.github.kklisura.cdt.protocol.types.accessibility.AXNode;
2829
import java.util.List;
@@ -35,6 +36,7 @@ public interface Accessibility {
3536
*/
3637
@Experimental
3738
@Returns("nodes")
39+
@ReturnTypeParameter(AXNode.class)
3840
List<AXNode> getPartialAXTree();
3941

4042
/**
@@ -49,6 +51,7 @@ public interface Accessibility {
4951
*/
5052
@Experimental
5153
@Returns("nodes")
54+
@ReturnTypeParameter(AXNode.class)
5255
List<AXNode> getPartialAXTree(
5356
@Optional @ParamName("nodeId") Integer nodeId,
5457
@Optional @ParamName("backendNodeId") Integer backendNodeId,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* #%L
55
* cdt-java-client
66
* %%
7-
* Copyright (C) 2018 Kenan Klisura
7+
* Copyright (C) 2018 - 2019 Kenan Klisura
88
* %%
99
* Licensed under the Apache License, Version 2.0 (the "License");
1010
* you may not use this file except in compliance with the License.

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* #%L
55
* cdt-java-client
66
* %%
7-
* Copyright (C) 2018 Kenan Klisura
7+
* Copyright (C) 2018 - 2019 Kenan Klisura
88
* %%
99
* Licensed under the Apache License, Version 2.0 (the "License");
1010
* you may not use this file except in compliance with the License.
@@ -25,6 +25,7 @@
2525
import com.github.kklisura.cdt.protocol.support.annotations.EventName;
2626
import com.github.kklisura.cdt.protocol.support.annotations.Experimental;
2727
import com.github.kklisura.cdt.protocol.support.annotations.ParamName;
28+
import com.github.kklisura.cdt.protocol.support.annotations.ReturnTypeParameter;
2829
import com.github.kklisura.cdt.protocol.support.annotations.Returns;
2930
import com.github.kklisura.cdt.protocol.support.types.EventHandler;
3031
import com.github.kklisura.cdt.protocol.support.types.EventListener;
@@ -52,6 +53,7 @@ public interface ApplicationCache {
5253
* associated with some application cache.
5354
*/
5455
@Returns("frameIds")
56+
@ReturnTypeParameter(FrameWithManifest.class)
5557
List<FrameWithManifest> getFramesWithManifests();
5658

5759
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* #%L
55
* cdt-java-client
66
* %%
7-
* Copyright (C) 2018 Kenan Klisura
7+
* Copyright (C) 2018 - 2019 Kenan Klisura
88
* %%
99
* Licensed under the Apache License, Version 2.0 (the "License");
1010
* you may not use this file except in compliance with the License.

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* #%L
55
* cdt-java-client
66
* %%
7-
* Copyright (C) 2018 Kenan Klisura
7+
* Copyright (C) 2018 - 2019 Kenan Klisura
88
* %%
99
* Licensed under the Apache License, Version 2.0 (the "License");
1010
* you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@
2323
import com.github.kklisura.cdt.protocol.support.annotations.Experimental;
2424
import com.github.kklisura.cdt.protocol.support.annotations.Optional;
2525
import com.github.kklisura.cdt.protocol.support.annotations.ParamName;
26+
import com.github.kklisura.cdt.protocol.support.annotations.ReturnTypeParameter;
2627
import com.github.kklisura.cdt.protocol.support.annotations.Returns;
2728
import com.github.kklisura.cdt.protocol.types.browser.Bounds;
2829
import com.github.kklisura.cdt.protocol.types.browser.Histogram;
@@ -45,11 +46,13 @@ public interface Browser {
4546
*/
4647
@Experimental
4748
@Returns("arguments")
49+
@ReturnTypeParameter(String.class)
4850
List<String> getBrowserCommandLine();
4951

5052
/** Get Chrome histograms. */
5153
@Experimental
5254
@Returns("histograms")
55+
@ReturnTypeParameter(Histogram.class)
5356
List<Histogram> getHistograms();
5457

5558
/**
@@ -61,6 +64,7 @@ public interface Browser {
6164
*/
6265
@Experimental
6366
@Returns("histograms")
67+
@ReturnTypeParameter(Histogram.class)
6468
List<Histogram> getHistograms(
6569
@Optional @ParamName("query") String query, @Optional @ParamName("delta") Boolean delta);
6670

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* #%L
55
* cdt-java-client
66
* %%
7-
* Copyright (C) 2018 Kenan Klisura
7+
* Copyright (C) 2018 - 2019 Kenan Klisura
88
* %%
99
* Licensed under the Apache License, Version 2.0 (the "License");
1010
* you may not use this file except in compliance with the License.
@@ -28,6 +28,7 @@
2828
import com.github.kklisura.cdt.protocol.support.annotations.EventName;
2929
import com.github.kklisura.cdt.protocol.support.annotations.Experimental;
3030
import com.github.kklisura.cdt.protocol.support.annotations.ParamName;
31+
import com.github.kklisura.cdt.protocol.support.annotations.ReturnTypeParameter;
3132
import com.github.kklisura.cdt.protocol.support.annotations.Returns;
3233
import com.github.kklisura.cdt.protocol.support.types.EventHandler;
3334
import com.github.kklisura.cdt.protocol.support.types.EventListener;
@@ -77,6 +78,7 @@ CSSRule addRule(
7778
* @param styleSheetId
7879
*/
7980
@Returns("classNames")
81+
@ReturnTypeParameter(String.class)
8082
List<String> collectClassNames(@ParamName("styleSheetId") String styleSheetId);
8183

8284
/**
@@ -116,6 +118,7 @@ void forcePseudoState(
116118
* @param nodeId
117119
*/
118120
@Returns("computedStyle")
121+
@ReturnTypeParameter(CSSComputedStyleProperty.class)
119122
List<CSSComputedStyleProperty> getComputedStyleForNode(@ParamName("nodeId") Integer nodeId);
120123

121124
/**
@@ -135,6 +138,7 @@ void forcePseudoState(
135138

136139
/** Returns all media queries parsed by the rendering engine. */
137140
@Returns("medias")
141+
@ReturnTypeParameter(CSSMedia.class)
138142
List<CSSMedia> getMediaQueries();
139143

140144
/**
@@ -144,6 +148,7 @@ void forcePseudoState(
144148
* @param nodeId
145149
*/
146150
@Returns("fonts")
151+
@ReturnTypeParameter(PlatformFontUsage.class)
147152
List<PlatformFontUsage> getPlatformFontsForNode(@ParamName("nodeId") Integer nodeId);
148153

149154
/**
@@ -222,6 +227,7 @@ String setStyleSheetText(
222227
* @param edits
223228
*/
224229
@Returns("styles")
230+
@ReturnTypeParameter(CSSStyle.class)
225231
List<CSSStyle> setStyleTexts(@ParamName("edits") List<StyleDeclarationEdit> edits);
226232

227233
/** Enables the selector recording. */
@@ -232,13 +238,15 @@ String setStyleSheetText(
232238
* `takeCoverageDelta` (or since start of coverage instrumentation)
233239
*/
234240
@Returns("ruleUsage")
241+
@ReturnTypeParameter(RuleUsage.class)
235242
List<RuleUsage> stopRuleUsageTracking();
236243

237244
/**
238245
* Obtain list of rules that became used since last call to this method (or since start of
239246
* coverage instrumentation)
240247
*/
241248
@Returns("coverage")
249+
@ReturnTypeParameter(RuleUsage.class)
242250
List<RuleUsage> takeCoverageDelta();
243251

244252
/**

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* #%L
55
* cdt-java-client
66
* %%
7-
* Copyright (C) 2018 Kenan Klisura
7+
* Copyright (C) 2018 - 2019 Kenan Klisura
88
* %%
99
* Licensed under the Apache License, Version 2.0 (the "License");
1010
* you may not use this file except in compliance with the License.
@@ -22,6 +22,7 @@
2222

2323
import com.github.kklisura.cdt.protocol.support.annotations.Experimental;
2424
import com.github.kklisura.cdt.protocol.support.annotations.ParamName;
25+
import com.github.kklisura.cdt.protocol.support.annotations.ReturnTypeParameter;
2526
import com.github.kklisura.cdt.protocol.support.annotations.Returns;
2627
import com.github.kklisura.cdt.protocol.types.cachestorage.Cache;
2728
import com.github.kklisura.cdt.protocol.types.cachestorage.CachedResponse;
@@ -52,6 +53,7 @@ public interface CacheStorage {
5253
* @param securityOrigin Security origin.
5354
*/
5455
@Returns("caches")
56+
@ReturnTypeParameter(Cache.class)
5557
List<Cache> requestCacheNames(@ParamName("securityOrigin") String securityOrigin);
5658

5759
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* #%L
55
* cdt-java-client
66
* %%
7-
* Copyright (C) 2018 Kenan Klisura
7+
* Copyright (C) 2018 - 2019 Kenan Klisura
88
* %%
99
* Licensed under the Apache License, Version 2.0 (the "License");
1010
* you may not use this file except in compliance with the License.

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* #%L
55
* cdt-java-client
66
* %%
7-
* Copyright (C) 2018 Kenan Klisura
7+
* Copyright (C) 2018 - 2019 Kenan Klisura
88
* %%
99
* Licensed under the Apache License, Version 2.0 (the "License");
1010
* you may not use this file except in compliance with the License.
@@ -38,6 +38,7 @@
3838
import com.github.kklisura.cdt.protocol.support.annotations.Experimental;
3939
import com.github.kklisura.cdt.protocol.support.annotations.Optional;
4040
import com.github.kklisura.cdt.protocol.support.annotations.ParamName;
41+
import com.github.kklisura.cdt.protocol.support.annotations.ReturnTypeParameter;
4142
import com.github.kklisura.cdt.protocol.support.annotations.Returns;
4243
import com.github.kklisura.cdt.protocol.support.types.EventHandler;
4344
import com.github.kklisura.cdt.protocol.support.types.EventListener;
@@ -67,6 +68,7 @@ public interface DOM {
6768
*/
6869
@Experimental
6970
@Returns("classNames")
71+
@ReturnTypeParameter(String.class)
7072
List<String> collectClassNamesFromSubtree(@ParamName("nodeId") Integer nodeId);
7173

7274
/**
@@ -160,6 +162,7 @@ void focus(
160162
* @param nodeId Id of the node to retrieve attibutes for.
161163
*/
162164
@Returns("attributes")
165+
@ReturnTypeParameter(String.class)
163166
List<String> getAttributes(@ParamName("nodeId") Integer nodeId);
164167

165168
/** Returns boxes for the given node. */
@@ -185,6 +188,7 @@ BoxModel getBoxModel(
185188
*/
186189
@Experimental
187190
@Returns("quads")
191+
@ReturnTypeParameter({List.class, Double.class})
188192
List<List<Double>> getContentQuads();
189193

190194
/**
@@ -197,6 +201,7 @@ BoxModel getBoxModel(
197201
*/
198202
@Experimental
199203
@Returns("quads")
204+
@ReturnTypeParameter({List.class, Double.class})
200205
List<List<Double>> getContentQuads(
201206
@Optional @ParamName("nodeId") Integer nodeId,
202207
@Optional @ParamName("backendNodeId") Integer backendNodeId,
@@ -220,6 +225,7 @@ Node getDocument(
220225

221226
/** Returns the root DOM node (and optionally the subtree) to the caller. */
222227
@Returns("nodes")
228+
@ReturnTypeParameter(Node.class)
223229
List<Node> getFlattenedDocument();
224230

225231
/**
@@ -231,6 +237,7 @@ Node getDocument(
231237
* subtree (default is false).
232238
*/
233239
@Returns("nodes")
240+
@ReturnTypeParameter(Node.class)
234241
List<Node> getFlattenedDocument(
235242
@Optional @ParamName("depth") Integer depth, @Optional @ParamName("pierce") Boolean pierce);
236243

@@ -295,6 +302,7 @@ String getOuterHTML(
295302
*/
296303
@Experimental
297304
@Returns("nodeIds")
305+
@ReturnTypeParameter(Integer.class)
298306
List<Integer> getSearchResults(
299307
@ParamName("searchId") String searchId,
300308
@ParamName("fromIndex") Integer fromIndex,
@@ -365,6 +373,7 @@ PerformSearch performSearch(
365373
*/
366374
@Experimental
367375
@Returns("nodeIds")
376+
@ReturnTypeParameter(Integer.class)
368377
List<Integer> pushNodesByBackendIdsToFrontend(
369378
@ParamName("backendNodeIds") List<Integer> backendNodeIds);
370379

@@ -385,6 +394,7 @@ Integer querySelector(
385394
* @param selector Selector string.
386395
*/
387396
@Returns("nodeIds")
397+
@ReturnTypeParameter(Integer.class)
388398
List<Integer> querySelectorAll(
389399
@ParamName("nodeId") Integer nodeId, @ParamName("selector") String selector);
390400

0 commit comments

Comments
 (0)