index
int64 | repo_id
string | file_path
string | content
string |
|---|---|---|---|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/EventBreakpoints.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ParamName;
/**
* EventBreakpoints permits setting breakpoints on particular operations and events in targets that
* run JavaScript but do not have a DOM. JavaScript execution will stop on these operations as if
* there was a regular breakpoint set.
*/
@Experimental
public interface EventBreakpoints {
/**
* Sets breakpoint on particular native event.
*
* @param eventName Instrumentation name to stop on.
*/
void setInstrumentationBreakpoint(@ParamName("eventName") String eventName);
/**
* Removes breakpoint on particular native event.
*
* @param eventName Instrumentation name to stop on.
*/
void removeInstrumentationBreakpoint(@ParamName("eventName") String eventName);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/FedCm.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.fedcm.DialogShown;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.EventName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Optional;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ParamName;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
/** This domain allows interacting with the FedCM dialog. */
@Experimental
public interface FedCm {
void enable();
/**
* @param disableRejectionDelay Allows callers to disable the promise rejection delay that would
* normally happen, if this is unimportant to what's being tested. (step 4 of
* https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in)
*/
void enable(@Optional @ParamName("disableRejectionDelay") Boolean disableRejectionDelay);
void disable();
/**
* @param dialogId
* @param accountIndex
*/
void selectAccount(
@ParamName("dialogId") String dialogId, @ParamName("accountIndex") Integer accountIndex);
/** @param dialogId */
void dismissDialog(@ParamName("dialogId") String dialogId);
/**
* @param dialogId
* @param triggerCooldown
*/
void dismissDialog(
@ParamName("dialogId") String dialogId,
@Optional @ParamName("triggerCooldown") Boolean triggerCooldown);
/**
* Resets the cooldown time, if any, to allow the next FedCM call to show a dialog even if one was
* recently dismissed by the user.
*/
void resetCooldown();
@EventName("dialogShown")
EventListener onDialogShown(EventHandler<DialogShown> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Fetch.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.fetch.AuthRequired;
import com.github.kklisura.cdt.protocol.v2023.events.fetch.RequestPaused;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.*;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.fetch.AuthChallengeResponse;
import com.github.kklisura.cdt.protocol.v2023.types.fetch.HeaderEntry;
import com.github.kklisura.cdt.protocol.v2023.types.fetch.RequestPattern;
import com.github.kklisura.cdt.protocol.v2023.types.fetch.ResponseBody;
import com.github.kklisura.cdt.protocol.v2023.types.network.ErrorReason;
import java.util.List;
/** A domain for letting clients substitute browser's network layer with client code. */
public interface Fetch {
/** Disables the fetch domain. */
void disable();
/**
* Enables issuing of requestPaused events. A request will be paused until client calls one of
* failRequest, fulfillRequest or continueRequest/continueWithAuth.
*/
void enable();
/**
* Enables issuing of requestPaused events. A request will be paused until client calls one of
* failRequest, fulfillRequest or continueRequest/continueWithAuth.
*
* @param patterns If specified, only requests matching any of these patterns will produce
* fetchRequested event and will be paused until clients response. If not set, all requests
* will be affected.
* @param handleAuthRequests If true, authRequired events will be issued and requests will be
* paused expecting a call to continueWithAuth.
*/
void enable(
@Optional @ParamName("patterns") List<RequestPattern> patterns,
@Optional @ParamName("handleAuthRequests") Boolean handleAuthRequests);
/**
* Causes the request to fail with specified reason.
*
* @param requestId An id the client received in requestPaused event.
* @param errorReason Causes the request to fail with the given reason.
*/
void failRequest(
@ParamName("requestId") String requestId, @ParamName("errorReason") ErrorReason errorReason);
/**
* Provides response to the request.
*
* @param requestId An id the client received in requestPaused event.
* @param responseCode An HTTP response code.
*/
void fulfillRequest(
@ParamName("requestId") String requestId, @ParamName("responseCode") Integer responseCode);
/**
* Provides response to the request.
*
* @param requestId An id the client received in requestPaused event.
* @param responseCode An HTTP response code.
* @param responseHeaders Response headers.
* @param binaryResponseHeaders Alternative way of specifying response headers as a \0-separated
* series of name: value pairs. Prefer the above method unless you need to represent some
* non-UTF8 values that can't be transmitted over the protocol as text. (Encoded as a base64
* string when passed over JSON)
* @param body A response body. If absent, original response body will be used if the request is
* intercepted at the response stage and empty body will be used if the request is intercepted
* at the request stage. (Encoded as a base64 string when passed over JSON)
* @param responsePhrase A textual representation of responseCode. If absent, a standard phrase
* matching responseCode is used.
*/
void fulfillRequest(
@ParamName("requestId") String requestId,
@ParamName("responseCode") Integer responseCode,
@Optional @ParamName("responseHeaders") List<HeaderEntry> responseHeaders,
@Optional @ParamName("binaryResponseHeaders") String binaryResponseHeaders,
@Optional @ParamName("body") String body,
@Optional @ParamName("responsePhrase") String responsePhrase);
/**
* Continues the request, optionally modifying some of its parameters.
*
* @param requestId An id the client received in requestPaused event.
*/
void continueRequest(@ParamName("requestId") String requestId);
/**
* Continues the request, optionally modifying some of its parameters.
*
* @param requestId An id the client received in requestPaused event.
* @param url If set, the request url will be modified in a way that's not observable by page.
* @param method If set, the request method is overridden.
* @param postData If set, overrides the post data in the request. (Encoded as a base64 string
* when passed over JSON)
* @param headers If set, overrides the request headers. Note that the overrides do not extend to
* subsequent redirect hops, if a redirect happens. Another override may be applied to a
* different request produced by a redirect.
* @param interceptResponse If set, overrides response interception behavior for this request.
*/
void continueRequest(
@ParamName("requestId") String requestId,
@Optional @ParamName("url") String url,
@Optional @ParamName("method") String method,
@Optional @ParamName("postData") String postData,
@Optional @ParamName("headers") List<HeaderEntry> headers,
@Experimental @Optional @ParamName("interceptResponse") Boolean interceptResponse);
/**
* Continues a request supplying authChallengeResponse following authRequired event.
*
* @param requestId An id the client received in authRequired event.
* @param authChallengeResponse Response to with an authChallenge.
*/
void continueWithAuth(
@ParamName("requestId") String requestId,
@ParamName("authChallengeResponse") AuthChallengeResponse authChallengeResponse);
/**
* Continues loading of the paused response, optionally modifying the response headers. If either
* responseCode or headers are modified, all of them must be present.
*
* @param requestId An id the client received in requestPaused event.
*/
@Experimental
void continueResponse(@ParamName("requestId") String requestId);
/**
* Continues loading of the paused response, optionally modifying the response headers. If either
* responseCode or headers are modified, all of them must be present.
*
* @param requestId An id the client received in requestPaused event.
* @param responseCode An HTTP response code. If absent, original response code will be used.
* @param responsePhrase A textual representation of responseCode. If absent, a standard phrase
* matching responseCode is used.
* @param responseHeaders Response headers. If absent, original response headers will be used.
* @param binaryResponseHeaders Alternative way of specifying response headers as a \0-separated
* series of name: value pairs. Prefer the above method unless you need to represent some
* non-UTF8 values that can't be transmitted over the protocol as text. (Encoded as a base64
* string when passed over JSON)
*/
@Experimental
void continueResponse(
@ParamName("requestId") String requestId,
@Optional @ParamName("responseCode") Integer responseCode,
@Optional @ParamName("responsePhrase") String responsePhrase,
@Optional @ParamName("responseHeaders") List<HeaderEntry> responseHeaders,
@Optional @ParamName("binaryResponseHeaders") String binaryResponseHeaders);
/**
* Causes the body of the response to be received from the server and returned as a single string.
* May only be issued for a request that is paused in the Response stage and is mutually exclusive
* with takeResponseBodyForInterceptionAsStream. Calling other methods that affect the request or
* disabling fetch domain before body is received results in an undefined behavior. Note that the
* response body is not available for redirects. Requests paused in the _redirect received_ state
* may be differentiated by `responseCode` and presence of `location` response header, see
* comments to `requestPaused` for details.
*
* @param requestId Identifier for the intercepted request to get body for.
*/
ResponseBody getResponseBody(@ParamName("requestId") String requestId);
/**
* Returns a handle to the stream representing the response body. The request must be paused in
* the HeadersReceived stage. Note that after this command the request can't be continued as is --
* client either needs to cancel it or to provide the response body. The stream only supports
* sequential read, IO.read will fail if the position is specified. This method is mutually
* exclusive with getResponseBody. Calling other methods that affect the request or disabling
* fetch domain before body is received results in an undefined behavior.
*
* @param requestId
*/
@Returns("stream")
String takeResponseBodyAsStream(@ParamName("requestId") String requestId);
/**
* Issued when the domain is enabled and the request URL matches the specified filter. The request
* is paused until the client responds with one of continueRequest, failRequest or fulfillRequest.
* The stage of the request can be determined by presence of responseErrorReason and
* responseStatusCode -- the request is at the response stage if either of these fields is present
* and in the request stage otherwise. Redirect responses and subsequent requests are reported
* similarly to regular responses and requests. Redirect responses may be distinguished by the
* value of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with presence of
* the `location` header. Requests resulting from a redirect will have `redirectedRequestId` field
* set.
*/
@EventName("requestPaused")
EventListener onRequestPaused(EventHandler<RequestPaused> eventListener);
/**
* Issued when the domain is enabled with handleAuthRequests set to true. The request is paused
* until client responds with continueWithAuth.
*/
@EventName("authRequired")
EventListener onAuthRequired(EventHandler<AuthRequired> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/HeadlessExperimental.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Optional;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ParamName;
import com.github.kklisura.cdt.protocol.v2023.types.headlessexperimental.BeginFrame;
import com.github.kklisura.cdt.protocol.v2023.types.headlessexperimental.ScreenshotParams;
/** This domain provides experimental commands only supported in headless mode. */
@Experimental
public interface HeadlessExperimental {
/**
* Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures
* a screenshot from the resulting frame. Requires that the target was created with enabled
* BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also
* https://goo.gle/chrome-headless-rendering for more background.
*/
BeginFrame beginFrame();
/**
* Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures
* a screenshot from the resulting frame. Requires that the target was created with enabled
* BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also
* https://goo.gle/chrome-headless-rendering for more background.
*
* @param frameTimeTicks Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of
* uptime). If not set, the current time will be used.
* @param interval The interval between BeginFrames that is reported to the compositor, in
* milliseconds. Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds.
* @param noDisplayUpdates Whether updates should not be committed and drawn onto the display.
* False by default. If true, only side effects of the BeginFrame will be run, such as layout
* and animations, but any visual updates may not be visible on the display or in screenshots.
* @param screenshot If set, a screenshot of the frame will be captured and returned in the
* response. Otherwise, no screenshot will be captured. Note that capturing a screenshot can
* fail, for example, during renderer initialization. In such a case, no screenshot data will
* be returned.
*/
BeginFrame beginFrame(
@Optional @ParamName("frameTimeTicks") Double frameTimeTicks,
@Optional @ParamName("interval") Double interval,
@Optional @ParamName("noDisplayUpdates") Boolean noDisplayUpdates,
@Optional @ParamName("screenshot") ScreenshotParams screenshot);
/** Disables headless events for the target. */
@Deprecated
void disable();
/** Enables headless events for the target. */
@Deprecated
void enable();
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/HeapProfiler.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.heapprofiler.*;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.*;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.heapprofiler.SamplingHeapProfile;
import com.github.kklisura.cdt.protocol.v2023.types.runtime.RemoteObject;
@Experimental
public interface HeapProfiler {
/**
* Enables console to refer to the node with given id via $x (see Command Line API for more
* details $x functions).
*
* @param heapObjectId Heap snapshot object id to be accessible by means of $x command line API.
*/
void addInspectedHeapObject(@ParamName("heapObjectId") String heapObjectId);
void collectGarbage();
void disable();
void enable();
/** @param objectId Identifier of the object to get heap object id for. */
@Returns("heapSnapshotObjectId")
String getHeapObjectId(@ParamName("objectId") String objectId);
/** @param objectId */
@Returns("result")
RemoteObject getObjectByHeapObjectId(@ParamName("objectId") String objectId);
/**
* @param objectId
* @param objectGroup Symbolic group name that can be used to release multiple objects.
*/
@Returns("result")
RemoteObject getObjectByHeapObjectId(
@ParamName("objectId") String objectId,
@Optional @ParamName("objectGroup") String objectGroup);
@Returns("profile")
SamplingHeapProfile getSamplingProfile();
void startSampling();
/**
* @param samplingInterval Average sample interval in bytes. Poisson distribution is used for the
* intervals. The default value is 32768 bytes.
* @param includeObjectsCollectedByMajorGC By default, the sampling heap profiler reports only
* objects which are still alive when the profile is returned via getSamplingProfile or
* stopSampling, which is useful for determining what functions contribute the most to
* steady-state memory usage. This flag instructs the sampling heap profiler to also include
* information about objects discarded by major GC, which will show which functions cause
* large temporary memory usage or long GC pauses.
* @param includeObjectsCollectedByMinorGC By default, the sampling heap profiler reports only
* objects which are still alive when the profile is returned via getSamplingProfile or
* stopSampling, which is useful for determining what functions contribute the most to
* steady-state memory usage. This flag instructs the sampling heap profiler to also include
* information about objects discarded by minor GC, which is useful when tuning a
* latency-sensitive application for minimal GC activity.
*/
void startSampling(
@Optional @ParamName("samplingInterval") Double samplingInterval,
@Optional @ParamName("includeObjectsCollectedByMajorGC")
Boolean includeObjectsCollectedByMajorGC,
@Optional @ParamName("includeObjectsCollectedByMinorGC")
Boolean includeObjectsCollectedByMinorGC);
void startTrackingHeapObjects();
/** @param trackAllocations */
void startTrackingHeapObjects(@Optional @ParamName("trackAllocations") Boolean trackAllocations);
@Returns("profile")
SamplingHeapProfile stopSampling();
void stopTrackingHeapObjects();
/**
* @param reportProgress If true 'reportHeapSnapshotProgress' events will be generated while
* snapshot is being taken when the tracking is stopped.
* @param treatGlobalObjectsAsRoots Deprecated in favor of `exposeInternals`.
* @param captureNumericValue If true, numerical values are included in the snapshot
* @param exposeInternals If true, exposes internals of the snapshot.
*/
void stopTrackingHeapObjects(
@Optional @ParamName("reportProgress") Boolean reportProgress,
@Deprecated @Optional @ParamName("treatGlobalObjectsAsRoots")
Boolean treatGlobalObjectsAsRoots,
@Optional @ParamName("captureNumericValue") Boolean captureNumericValue,
@Experimental @Optional @ParamName("exposeInternals") Boolean exposeInternals);
void takeHeapSnapshot();
/**
* @param reportProgress If true 'reportHeapSnapshotProgress' events will be generated while
* snapshot is being taken.
* @param treatGlobalObjectsAsRoots If true, a raw snapshot without artificial roots will be
* generated. Deprecated in favor of `exposeInternals`.
* @param captureNumericValue If true, numerical values are included in the snapshot
* @param exposeInternals If true, exposes internals of the snapshot.
*/
void takeHeapSnapshot(
@Optional @ParamName("reportProgress") Boolean reportProgress,
@Deprecated @Optional @ParamName("treatGlobalObjectsAsRoots")
Boolean treatGlobalObjectsAsRoots,
@Optional @ParamName("captureNumericValue") Boolean captureNumericValue,
@Experimental @Optional @ParamName("exposeInternals") Boolean exposeInternals);
@EventName("addHeapSnapshotChunk")
EventListener onAddHeapSnapshotChunk(EventHandler<AddHeapSnapshotChunk> eventListener);
/**
* If heap objects tracking has been started then backend may send update for one or more
* fragments
*/
@EventName("heapStatsUpdate")
EventListener onHeapStatsUpdate(EventHandler<HeapStatsUpdate> eventListener);
/**
* If heap objects tracking has been started then backend regularly sends a current value for last
* seen object id and corresponding timestamp. If the were changes in the heap since last event
* then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
*/
@EventName("lastSeenObjectId")
EventListener onLastSeenObjectId(EventHandler<LastSeenObjectId> eventListener);
@EventName("reportHeapSnapshotProgress")
EventListener onReportHeapSnapshotProgress(
EventHandler<ReportHeapSnapshotProgress> eventListener);
@EventName("resetProfiles")
EventListener onResetProfiles(EventHandler<ResetProfiles> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/IO.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Optional;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ParamName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Returns;
import com.github.kklisura.cdt.protocol.v2023.types.io.Read;
/** Input/Output operations for streams produced by DevTools. */
public interface IO {
/**
* Close the stream, discard any temporary backing storage.
*
* @param handle Handle of the stream to close.
*/
void close(@ParamName("handle") String handle);
/**
* Read a chunk of the stream
*
* @param handle Handle of the stream to read.
*/
Read read(@ParamName("handle") String handle);
/**
* Read a chunk of the stream
*
* @param handle Handle of the stream to read.
* @param offset Seek to the specified offset before reading (if not specificed, proceed with
* offset following the last read). Some types of streams may only support sequential reads.
* @param size Maximum number of bytes to read (left upon the agent discretion if not specified).
*/
Read read(
@ParamName("handle") String handle,
@Optional @ParamName("offset") Integer offset,
@Optional @ParamName("size") Integer size);
/**
* Return UUID of Blob object specified by a remote object id.
*
* @param objectId Object id of a Blob object wrapper.
*/
@Returns("uuid")
String resolveBlob(@ParamName("objectId") String objectId);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/IndexedDB.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.*;
import com.github.kklisura.cdt.protocol.v2023.types.indexeddb.DatabaseWithObjectStores;
import com.github.kklisura.cdt.protocol.v2023.types.indexeddb.KeyRange;
import com.github.kklisura.cdt.protocol.v2023.types.indexeddb.Metadata;
import com.github.kklisura.cdt.protocol.v2023.types.indexeddb.RequestData;
import com.github.kklisura.cdt.protocol.v2023.types.storage.StorageBucket;
import java.util.List;
@Experimental
public interface IndexedDB {
/**
* Clears all entries from an object store.
*
* @param databaseName Database name.
* @param objectStoreName Object store name.
*/
void clearObjectStore(
@ParamName("databaseName") String databaseName,
@ParamName("objectStoreName") String objectStoreName);
/**
* Clears all entries from an object store.
*
* @param securityOrigin At least and at most one of securityOrigin, storageKey, or storageBucket
* must be specified. Security origin.
* @param storageKey Storage key.
* @param storageBucket Storage bucket. If not specified, it uses the default bucket.
* @param databaseName Database name.
* @param objectStoreName Object store name.
*/
void clearObjectStore(
@Optional @ParamName("securityOrigin") String securityOrigin,
@Optional @ParamName("storageKey") String storageKey,
@Optional @ParamName("storageBucket") StorageBucket storageBucket,
@ParamName("databaseName") String databaseName,
@ParamName("objectStoreName") String objectStoreName);
/**
* Deletes a database.
*
* @param databaseName Database name.
*/
void deleteDatabase(@ParamName("databaseName") String databaseName);
/**
* Deletes a database.
*
* @param securityOrigin At least and at most one of securityOrigin, storageKey, or storageBucket
* must be specified. Security origin.
* @param storageKey Storage key.
* @param storageBucket Storage bucket. If not specified, it uses the default bucket.
* @param databaseName Database name.
*/
void deleteDatabase(
@Optional @ParamName("securityOrigin") String securityOrigin,
@Optional @ParamName("storageKey") String storageKey,
@Optional @ParamName("storageBucket") StorageBucket storageBucket,
@ParamName("databaseName") String databaseName);
/**
* Delete a range of entries from an object store
*
* @param databaseName
* @param objectStoreName
* @param keyRange Range of entry keys to delete
*/
void deleteObjectStoreEntries(
@ParamName("databaseName") String databaseName,
@ParamName("objectStoreName") String objectStoreName,
@ParamName("keyRange") KeyRange keyRange);
/**
* Delete a range of entries from an object store
*
* @param securityOrigin At least and at most one of securityOrigin, storageKey, or storageBucket
* must be specified. Security origin.
* @param storageKey Storage key.
* @param storageBucket Storage bucket. If not specified, it uses the default bucket.
* @param databaseName
* @param objectStoreName
* @param keyRange Range of entry keys to delete
*/
void deleteObjectStoreEntries(
@Optional @ParamName("securityOrigin") String securityOrigin,
@Optional @ParamName("storageKey") String storageKey,
@Optional @ParamName("storageBucket") StorageBucket storageBucket,
@ParamName("databaseName") String databaseName,
@ParamName("objectStoreName") String objectStoreName,
@ParamName("keyRange") KeyRange keyRange);
/** Disables events from backend. */
void disable();
/** Enables events from backend. */
void enable();
/**
* Requests data from object store or index.
*
* @param databaseName Database name.
* @param objectStoreName Object store name.
* @param indexName Index name, empty string for object store data requests.
* @param skipCount Number of records to skip.
* @param pageSize Number of records to fetch.
*/
RequestData requestData(
@ParamName("databaseName") String databaseName,
@ParamName("objectStoreName") String objectStoreName,
@ParamName("indexName") String indexName,
@ParamName("skipCount") Integer skipCount,
@ParamName("pageSize") Integer pageSize);
/**
* Requests data from object store or index.
*
* @param securityOrigin At least and at most one of securityOrigin, storageKey, or storageBucket
* must be specified. Security origin.
* @param storageKey Storage key.
* @param storageBucket Storage bucket. If not specified, it uses the default bucket.
* @param databaseName Database name.
* @param objectStoreName Object store name.
* @param indexName Index name, empty string for object store data requests.
* @param skipCount Number of records to skip.
* @param pageSize Number of records to fetch.
* @param keyRange Key range.
*/
RequestData requestData(
@Optional @ParamName("securityOrigin") String securityOrigin,
@Optional @ParamName("storageKey") String storageKey,
@Optional @ParamName("storageBucket") StorageBucket storageBucket,
@ParamName("databaseName") String databaseName,
@ParamName("objectStoreName") String objectStoreName,
@ParamName("indexName") String indexName,
@ParamName("skipCount") Integer skipCount,
@ParamName("pageSize") Integer pageSize,
@Optional @ParamName("keyRange") KeyRange keyRange);
/**
* Gets metadata of an object store.
*
* @param databaseName Database name.
* @param objectStoreName Object store name.
*/
Metadata getMetadata(
@ParamName("databaseName") String databaseName,
@ParamName("objectStoreName") String objectStoreName);
/**
* Gets metadata of an object store.
*
* @param securityOrigin At least and at most one of securityOrigin, storageKey, or storageBucket
* must be specified. Security origin.
* @param storageKey Storage key.
* @param storageBucket Storage bucket. If not specified, it uses the default bucket.
* @param databaseName Database name.
* @param objectStoreName Object store name.
*/
Metadata getMetadata(
@Optional @ParamName("securityOrigin") String securityOrigin,
@Optional @ParamName("storageKey") String storageKey,
@Optional @ParamName("storageBucket") StorageBucket storageBucket,
@ParamName("databaseName") String databaseName,
@ParamName("objectStoreName") String objectStoreName);
/**
* Requests database with given name in given frame.
*
* @param databaseName Database name.
*/
@Returns("databaseWithObjectStores")
DatabaseWithObjectStores requestDatabase(@ParamName("databaseName") String databaseName);
/**
* Requests database with given name in given frame.
*
* @param securityOrigin At least and at most one of securityOrigin, storageKey, or storageBucket
* must be specified. Security origin.
* @param storageKey Storage key.
* @param storageBucket Storage bucket. If not specified, it uses the default bucket.
* @param databaseName Database name.
*/
@Returns("databaseWithObjectStores")
DatabaseWithObjectStores requestDatabase(
@Optional @ParamName("securityOrigin") String securityOrigin,
@Optional @ParamName("storageKey") String storageKey,
@Optional @ParamName("storageBucket") StorageBucket storageBucket,
@ParamName("databaseName") String databaseName);
/** Requests database names for given security origin. */
@Returns("databaseNames")
@ReturnTypeParameter(String.class)
List<String> requestDatabaseNames();
/**
* Requests database names for given security origin.
*
* @param securityOrigin At least and at most one of securityOrigin, storageKey, or storageBucket
* must be specified. Security origin.
* @param storageKey Storage key.
* @param storageBucket Storage bucket. If not specified, it uses the default bucket.
*/
@Returns("databaseNames")
@ReturnTypeParameter(String.class)
List<String> requestDatabaseNames(
@Optional @ParamName("securityOrigin") String securityOrigin,
@Optional @ParamName("storageKey") String storageKey,
@Optional @ParamName("storageBucket") StorageBucket storageBucket);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Input.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.input.DragIntercepted;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.EventName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Optional;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ParamName;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.input.*;
import java.util.List;
public interface Input {
/**
* Dispatches a drag event into the page.
*
* @param type Type of the drag event.
* @param x X coordinate of the event relative to the main frame's viewport in CSS pixels.
* @param y Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0
* refers to the top of the viewport and Y increases as it proceeds towards the bottom of the
* viewport.
* @param data
*/
@Experimental
void dispatchDragEvent(
@ParamName("type") DispatchDragEventType type,
@ParamName("x") Double x,
@ParamName("y") Double y,
@ParamName("data") DragData data);
/**
* Dispatches a drag event into the page.
*
* @param type Type of the drag event.
* @param x X coordinate of the event relative to the main frame's viewport in CSS pixels.
* @param y Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0
* refers to the top of the viewport and Y increases as it proceeds towards the bottom of the
* viewport.
* @param data
* @param modifiers Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4,
* Shift=8 (default: 0).
*/
@Experimental
void dispatchDragEvent(
@ParamName("type") DispatchDragEventType type,
@ParamName("x") Double x,
@ParamName("y") Double y,
@ParamName("data") DragData data,
@Optional @ParamName("modifiers") Integer modifiers);
/**
* Dispatches a key event to the page.
*
* @param type Type of the key event.
*/
void dispatchKeyEvent(@ParamName("type") DispatchKeyEventType type);
/**
* Dispatches a key event to the page.
*
* @param type Type of the key event.
* @param modifiers Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4,
* Shift=8 (default: 0).
* @param timestamp Time at which the event occurred.
* @param text Text as generated by processing a virtual key code with a keyboard layout. Not
* needed for for `keyUp` and `rawKeyDown` events (default: "")
* @param unmodifiedText Text that would have been generated by the keyboard if no modifiers were
* pressed (except for shift). Useful for shortcut (accelerator) key handling (default: "").
* @param keyIdentifier Unique key identifier (e.g., 'U+0041') (default: "").
* @param code Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: "").
* @param key Unique DOM defined string value describing the meaning of the key in the context of
* active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: "").
* @param windowsVirtualKeyCode Windows virtual key code (default: 0).
* @param nativeVirtualKeyCode Native virtual key code (default: 0).
* @param autoRepeat Whether the event was generated from auto repeat (default: false).
* @param isKeypad Whether the event was generated from the keypad (default: false).
* @param isSystemKey Whether the event was a system key event (default: false).
* @param location Whether the event was from the left or right side of the keyboard. 1=Left,
* 2=Right (default: 0).
* @param commands Editing commands to send with the key event (e.g., 'selectAll') (default: []).
* These are related to but not equal the command names used in `document.execCommand` and
* NSStandardKeyBindingResponding. See
* https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h
* for valid command names.
*/
void dispatchKeyEvent(
@ParamName("type") DispatchKeyEventType type,
@Optional @ParamName("modifiers") Integer modifiers,
@Optional @ParamName("timestamp") Double timestamp,
@Optional @ParamName("text") String text,
@Optional @ParamName("unmodifiedText") String unmodifiedText,
@Optional @ParamName("keyIdentifier") String keyIdentifier,
@Optional @ParamName("code") String code,
@Optional @ParamName("key") String key,
@Optional @ParamName("windowsVirtualKeyCode") Integer windowsVirtualKeyCode,
@Optional @ParamName("nativeVirtualKeyCode") Integer nativeVirtualKeyCode,
@Optional @ParamName("autoRepeat") Boolean autoRepeat,
@Optional @ParamName("isKeypad") Boolean isKeypad,
@Optional @ParamName("isSystemKey") Boolean isSystemKey,
@Optional @ParamName("location") Integer location,
@Experimental @Optional @ParamName("commands") List<String> commands);
/**
* This method emulates inserting text that doesn't come from a key press, for example an emoji
* keyboard or an IME.
*
* @param text The text to insert.
*/
@Experimental
void insertText(@ParamName("text") String text);
/**
* This method sets the current candidate text for ime. Use imeCommitComposition to commit the
* final text. Use imeSetComposition with empty string as text to cancel composition.
*
* @param text The text to insert
* @param selectionStart selection start
* @param selectionEnd selection end
*/
@Experimental
void imeSetComposition(
@ParamName("text") String text,
@ParamName("selectionStart") Integer selectionStart,
@ParamName("selectionEnd") Integer selectionEnd);
/**
* This method sets the current candidate text for ime. Use imeCommitComposition to commit the
* final text. Use imeSetComposition with empty string as text to cancel composition.
*
* @param text The text to insert
* @param selectionStart selection start
* @param selectionEnd selection end
* @param replacementStart replacement start
* @param replacementEnd replacement end
*/
@Experimental
void imeSetComposition(
@ParamName("text") String text,
@ParamName("selectionStart") Integer selectionStart,
@ParamName("selectionEnd") Integer selectionEnd,
@Optional @ParamName("replacementStart") Integer replacementStart,
@Optional @ParamName("replacementEnd") Integer replacementEnd);
/**
* Dispatches a mouse event to the page.
*
* @param type Type of the mouse event.
* @param x X coordinate of the event relative to the main frame's viewport in CSS pixels.
* @param y Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0
* refers to the top of the viewport and Y increases as it proceeds towards the bottom of the
* viewport.
*/
void dispatchMouseEvent(
@ParamName("type") DispatchMouseEventType type,
@ParamName("x") Double x,
@ParamName("y") Double y);
/**
* Dispatches a mouse event to the page.
*
* @param type Type of the mouse event.
* @param x X coordinate of the event relative to the main frame's viewport in CSS pixels.
* @param y Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0
* refers to the top of the viewport and Y increases as it proceeds towards the bottom of the
* viewport.
* @param modifiers Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4,
* Shift=8 (default: 0).
* @param timestamp Time at which the event occurred.
* @param button Mouse button (default: "none").
* @param buttons A number indicating which buttons are pressed on the mouse when a mouse event is
* triggered. Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
* @param clickCount Number of times the mouse button was clicked (default: 0).
* @param force The normalized pressure, which has a range of [0,1] (default: 0).
* @param tangentialPressure The normalized tangential pressure, which has a range of [-1,1]
* (default: 0).
* @param tiltX The plane angle between the Y-Z plane and the plane containing both the stylus
* axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right
* (default: 0).
* @param tiltY The plane angle between the X-Z plane and the plane containing both the stylus
* axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user
* (default: 0).
* @param twist The clockwise rotation of a pen stylus around its own major axis, in degrees in
* the range [0,359] (default: 0).
* @param deltaX X delta in CSS pixels for mouse wheel event (default: 0).
* @param deltaY Y delta in CSS pixels for mouse wheel event (default: 0).
* @param pointerType Pointer type (default: "mouse").
*/
void dispatchMouseEvent(
@ParamName("type") DispatchMouseEventType type,
@ParamName("x") Double x,
@ParamName("y") Double y,
@Optional @ParamName("modifiers") Integer modifiers,
@Optional @ParamName("timestamp") Double timestamp,
@Optional @ParamName("button") MouseButton button,
@Optional @ParamName("buttons") Integer buttons,
@Optional @ParamName("clickCount") Integer clickCount,
@Experimental @Optional @ParamName("force") Double force,
@Experimental @Optional @ParamName("tangentialPressure") Double tangentialPressure,
@Experimental @Optional @ParamName("tiltX") Integer tiltX,
@Experimental @Optional @ParamName("tiltY") Integer tiltY,
@Experimental @Optional @ParamName("twist") Integer twist,
@Optional @ParamName("deltaX") Double deltaX,
@Optional @ParamName("deltaY") Double deltaY,
@Optional @ParamName("pointerType") DispatchMouseEventPointerType pointerType);
/**
* Dispatches a touch event to the page.
*
* @param type Type of the touch event. TouchEnd and TouchCancel must not contain any touch
* points, while TouchStart and TouchMove must contains at least one.
* @param touchPoints Active touch points on the touch device. One event per any changed point
* (compared to previous touch event in a sequence) is generated, emulating
* pressing/moving/releasing points one by one.
*/
void dispatchTouchEvent(
@ParamName("type") DispatchTouchEventType type,
@ParamName("touchPoints") List<TouchPoint> touchPoints);
/**
* Dispatches a touch event to the page.
*
* @param type Type of the touch event. TouchEnd and TouchCancel must not contain any touch
* points, while TouchStart and TouchMove must contains at least one.
* @param touchPoints Active touch points on the touch device. One event per any changed point
* (compared to previous touch event in a sequence) is generated, emulating
* pressing/moving/releasing points one by one.
* @param modifiers Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4,
* Shift=8 (default: 0).
* @param timestamp Time at which the event occurred.
*/
void dispatchTouchEvent(
@ParamName("type") DispatchTouchEventType type,
@ParamName("touchPoints") List<TouchPoint> touchPoints,
@Optional @ParamName("modifiers") Integer modifiers,
@Optional @ParamName("timestamp") Double timestamp);
/** Cancels any active dragging in the page. */
void cancelDragging();
/**
* Emulates touch event from the mouse event parameters.
*
* @param type Type of the mouse event.
* @param x X coordinate of the mouse pointer in DIP.
* @param y Y coordinate of the mouse pointer in DIP.
* @param button Mouse button. Only "none", "left", "right" are supported.
*/
@Experimental
void emulateTouchFromMouseEvent(
@ParamName("type") EmulateTouchFromMouseEventType type,
@ParamName("x") Integer x,
@ParamName("y") Integer y,
@ParamName("button") MouseButton button);
/**
* Emulates touch event from the mouse event parameters.
*
* @param type Type of the mouse event.
* @param x X coordinate of the mouse pointer in DIP.
* @param y Y coordinate of the mouse pointer in DIP.
* @param button Mouse button. Only "none", "left", "right" are supported.
* @param timestamp Time at which the event occurred (default: current time).
* @param deltaX X delta in DIP for mouse wheel event (default: 0).
* @param deltaY Y delta in DIP for mouse wheel event (default: 0).
* @param modifiers Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4,
* Shift=8 (default: 0).
* @param clickCount Number of times the mouse button was clicked (default: 0).
*/
@Experimental
void emulateTouchFromMouseEvent(
@ParamName("type") EmulateTouchFromMouseEventType type,
@ParamName("x") Integer x,
@ParamName("y") Integer y,
@ParamName("button") MouseButton button,
@Optional @ParamName("timestamp") Double timestamp,
@Optional @ParamName("deltaX") Double deltaX,
@Optional @ParamName("deltaY") Double deltaY,
@Optional @ParamName("modifiers") Integer modifiers,
@Optional @ParamName("clickCount") Integer clickCount);
/**
* Ignores input events (useful while auditing page).
*
* @param ignore Ignores input events processing when set to true.
*/
void setIgnoreInputEvents(@ParamName("ignore") Boolean ignore);
/**
* Prevents default drag and drop behavior and instead emits `Input.dragIntercepted` events. Drag
* and drop behavior can be directly controlled via `Input.dispatchDragEvent`.
*
* @param enabled
*/
@Experimental
void setInterceptDrags(@ParamName("enabled") Boolean enabled);
/**
* Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
*
* @param x X coordinate of the start of the gesture in CSS pixels.
* @param y Y coordinate of the start of the gesture in CSS pixels.
* @param scaleFactor Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
*/
@Experimental
void synthesizePinchGesture(
@ParamName("x") Double x,
@ParamName("y") Double y,
@ParamName("scaleFactor") Double scaleFactor);
/**
* Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
*
* @param x X coordinate of the start of the gesture in CSS pixels.
* @param y Y coordinate of the start of the gesture in CSS pixels.
* @param scaleFactor Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
* @param relativeSpeed Relative pointer speed in pixels per second (default: 800).
* @param gestureSourceType Which type of input events to be generated (default: 'default', which
* queries the platform for the preferred input type).
*/
@Experimental
void synthesizePinchGesture(
@ParamName("x") Double x,
@ParamName("y") Double y,
@ParamName("scaleFactor") Double scaleFactor,
@Optional @ParamName("relativeSpeed") Integer relativeSpeed,
@Optional @ParamName("gestureSourceType") GestureSourceType gestureSourceType);
/**
* Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
*
* @param x X coordinate of the start of the gesture in CSS pixels.
* @param y Y coordinate of the start of the gesture in CSS pixels.
*/
@Experimental
void synthesizeScrollGesture(@ParamName("x") Double x, @ParamName("y") Double y);
/**
* Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
*
* @param x X coordinate of the start of the gesture in CSS pixels.
* @param y Y coordinate of the start of the gesture in CSS pixels.
* @param xDistance The distance to scroll along the X axis (positive to scroll left).
* @param yDistance The distance to scroll along the Y axis (positive to scroll up).
* @param xOverscroll The number of additional pixels to scroll back along the X axis, in addition
* to the given distance.
* @param yOverscroll The number of additional pixels to scroll back along the Y axis, in addition
* to the given distance.
* @param preventFling Prevent fling (default: true).
* @param speed Swipe speed in pixels per second (default: 800).
* @param gestureSourceType Which type of input events to be generated (default: 'default', which
* queries the platform for the preferred input type).
* @param repeatCount The number of times to repeat the gesture (default: 0).
* @param repeatDelayMs The number of milliseconds delay between each repeat. (default: 250).
* @param interactionMarkerName The name of the interaction markers to generate, if not empty
* (default: "").
*/
@Experimental
void synthesizeScrollGesture(
@ParamName("x") Double x,
@ParamName("y") Double y,
@Optional @ParamName("xDistance") Double xDistance,
@Optional @ParamName("yDistance") Double yDistance,
@Optional @ParamName("xOverscroll") Double xOverscroll,
@Optional @ParamName("yOverscroll") Double yOverscroll,
@Optional @ParamName("preventFling") Boolean preventFling,
@Optional @ParamName("speed") Integer speed,
@Optional @ParamName("gestureSourceType") GestureSourceType gestureSourceType,
@Optional @ParamName("repeatCount") Integer repeatCount,
@Optional @ParamName("repeatDelayMs") Integer repeatDelayMs,
@Optional @ParamName("interactionMarkerName") String interactionMarkerName);
/**
* Synthesizes a tap gesture over a time period by issuing appropriate touch events.
*
* @param x X coordinate of the start of the gesture in CSS pixels.
* @param y Y coordinate of the start of the gesture in CSS pixels.
*/
@Experimental
void synthesizeTapGesture(@ParamName("x") Double x, @ParamName("y") Double y);
/**
* Synthesizes a tap gesture over a time period by issuing appropriate touch events.
*
* @param x X coordinate of the start of the gesture in CSS pixels.
* @param y Y coordinate of the start of the gesture in CSS pixels.
* @param duration Duration between touchdown and touchup events in ms (default: 50).
* @param tapCount Number of times to perform the tap (e.g. 2 for double tap, default: 1).
* @param gestureSourceType Which type of input events to be generated (default: 'default', which
* queries the platform for the preferred input type).
*/
@Experimental
void synthesizeTapGesture(
@ParamName("x") Double x,
@ParamName("y") Double y,
@Optional @ParamName("duration") Integer duration,
@Optional @ParamName("tapCount") Integer tapCount,
@Optional @ParamName("gestureSourceType") GestureSourceType gestureSourceType);
/**
* Emitted only when `Input.setInterceptDrags` is enabled. Use this data with
* `Input.dispatchDragEvent` to restore normal drag and drop behavior.
*/
@EventName("dragIntercepted")
@Experimental
EventListener onDragIntercepted(EventHandler<DragIntercepted> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Inspector.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.inspector.Detached;
import com.github.kklisura.cdt.protocol.v2023.events.inspector.TargetCrashed;
import com.github.kklisura.cdt.protocol.v2023.events.inspector.TargetReloadedAfterCrash;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.EventName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
@Experimental
public interface Inspector {
/** Disables inspector domain notifications. */
void disable();
/** Enables inspector domain notifications. */
void enable();
/** Fired when remote debugging connection is about to be terminated. Contains detach reason. */
@EventName("detached")
EventListener onDetached(EventHandler<Detached> eventListener);
/** Fired when debugging target has crashed */
@EventName("targetCrashed")
EventListener onTargetCrashed(EventHandler<TargetCrashed> eventListener);
/** Fired when debugging target has reloaded after crash */
@EventName("targetReloadedAfterCrash")
EventListener onTargetReloadedAfterCrash(EventHandler<TargetReloadedAfterCrash> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/LayerTree.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.layertree.LayerPainted;
import com.github.kklisura.cdt.protocol.v2023.events.layertree.LayerTreeDidChange;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.*;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.dom.Rect;
import com.github.kklisura.cdt.protocol.v2023.types.layertree.CompositingReasons;
import com.github.kklisura.cdt.protocol.v2023.types.layertree.PictureTile;
import java.util.List;
@Experimental
public interface LayerTree {
/**
* Provides the reasons why the given layer was composited.
*
* @param layerId The id of the layer for which we want to get the reasons it was composited.
*/
CompositingReasons compositingReasons(@ParamName("layerId") String layerId);
/** Disables compositing tree inspection. */
void disable();
/** Enables compositing tree inspection. */
void enable();
/**
* Returns the snapshot identifier.
*
* @param tiles An array of tiles composing the snapshot.
*/
@Returns("snapshotId")
String loadSnapshot(@ParamName("tiles") List<PictureTile> tiles);
/**
* Returns the layer snapshot identifier.
*
* @param layerId The id of the layer.
*/
@Returns("snapshotId")
String makeSnapshot(@ParamName("layerId") String layerId);
/** @param snapshotId The id of the layer snapshot. */
@Returns("timings")
@ReturnTypeParameter({List.class, Double.class})
List<List<Double>> profileSnapshot(@ParamName("snapshotId") String snapshotId);
/**
* @param snapshotId The id of the layer snapshot.
* @param minRepeatCount The maximum number of times to replay the snapshot (1, if not specified).
* @param minDuration The minimum duration (in seconds) to replay the snapshot.
* @param clipRect The clip rectangle to apply when replaying the snapshot.
*/
@Returns("timings")
@ReturnTypeParameter({List.class, Double.class})
List<List<Double>> profileSnapshot(
@ParamName("snapshotId") String snapshotId,
@Optional @ParamName("minRepeatCount") Integer minRepeatCount,
@Optional @ParamName("minDuration") Double minDuration,
@Optional @ParamName("clipRect") Rect clipRect);
/**
* Releases layer snapshot captured by the back-end.
*
* @param snapshotId The id of the layer snapshot.
*/
void releaseSnapshot(@ParamName("snapshotId") String snapshotId);
/**
* Replays the layer snapshot and returns the resulting bitmap.
*
* @param snapshotId The id of the layer snapshot.
*/
@Returns("dataURL")
String replaySnapshot(@ParamName("snapshotId") String snapshotId);
/**
* Replays the layer snapshot and returns the resulting bitmap.
*
* @param snapshotId The id of the layer snapshot.
* @param fromStep The first step to replay from (replay from the very start if not specified).
* @param toStep The last step to replay to (replay till the end if not specified).
* @param scale The scale to apply while replaying (defaults to 1).
*/
@Returns("dataURL")
String replaySnapshot(
@ParamName("snapshotId") String snapshotId,
@Optional @ParamName("fromStep") Integer fromStep,
@Optional @ParamName("toStep") Integer toStep,
@Optional @ParamName("scale") Double scale);
/**
* Replays the layer snapshot and returns canvas log.
*
* @param snapshotId The id of the layer snapshot.
*/
@Returns("commandLog")
@ReturnTypeParameter(Object.class)
List<Object> snapshotCommandLog(@ParamName("snapshotId") String snapshotId);
@EventName("layerPainted")
EventListener onLayerPainted(EventHandler<LayerPainted> eventListener);
@EventName("layerTreeDidChange")
EventListener onLayerTreeDidChange(EventHandler<LayerTreeDidChange> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Log.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.log.EntryAdded;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.EventName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ParamName;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.log.ViolationSetting;
import java.util.List;
/** Provides access to log entries. */
public interface Log {
/** Clears the log. */
void clear();
/** Disables log domain, prevents further log entries from being reported to the client. */
void disable();
/**
* Enables log domain, sends the entries collected so far to the client by means of the
* `entryAdded` notification.
*/
void enable();
/**
* start violation reporting.
*
* @param config Configuration for violations.
*/
void startViolationsReport(@ParamName("config") List<ViolationSetting> config);
/** Stop violation reporting. */
void stopViolationsReport();
/** Issued when new message was logged. */
@EventName("entryAdded")
EventListener onEntryAdded(EventHandler<EntryAdded> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Media.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.media.*;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.EventName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
/** This domain allows detailed inspection of media elements */
@Experimental
public interface Media {
/** Enables the Media domain */
void enable();
/** Disables the Media domain. */
void disable();
/**
* This can be called multiple times, and can be used to set / override / remove player
* properties. A null propValue indicates removal.
*/
@EventName("playerPropertiesChanged")
EventListener onPlayerPropertiesChanged(EventHandler<PlayerPropertiesChanged> eventListener);
/**
* Send events as a list, allowing them to be batched on the browser for less congestion. If
* batched, events must ALWAYS be in chronological order.
*/
@EventName("playerEventsAdded")
EventListener onPlayerEventsAdded(EventHandler<PlayerEventsAdded> eventListener);
/** Send a list of any messages that need to be delivered. */
@EventName("playerMessagesLogged")
EventListener onPlayerMessagesLogged(EventHandler<PlayerMessagesLogged> eventListener);
/** Send a list of any errors that need to be delivered. */
@EventName("playerErrorsRaised")
EventListener onPlayerErrorsRaised(EventHandler<PlayerErrorsRaised> eventListener);
/**
* Called whenever a player is created, or when a new agent joins and receives a list of active
* players. If an agent is restored, it will receive the full list of player ids and all events
* again.
*/
@EventName("playersCreated")
EventListener onPlayersCreated(EventHandler<PlayersCreated> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Memory.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Optional;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ParamName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Returns;
import com.github.kklisura.cdt.protocol.v2023.types.memory.DOMCounters;
import com.github.kklisura.cdt.protocol.v2023.types.memory.PressureLevel;
import com.github.kklisura.cdt.protocol.v2023.types.memory.SamplingProfile;
@Experimental
public interface Memory {
DOMCounters getDOMCounters();
void prepareForLeakDetection();
/** Simulate OomIntervention by purging V8 memory. */
void forciblyPurgeJavaScriptMemory();
/**
* Enable/disable suppressing memory pressure notifications in all processes.
*
* @param suppressed If true, memory pressure notifications will be suppressed.
*/
void setPressureNotificationsSuppressed(@ParamName("suppressed") Boolean suppressed);
/**
* Simulate a memory pressure notification in all processes.
*
* @param level Memory pressure level of the notification.
*/
void simulatePressureNotification(@ParamName("level") PressureLevel level);
/** Start collecting native memory profile. */
void startSampling();
/**
* Start collecting native memory profile.
*
* @param samplingInterval Average number of bytes between samples.
* @param suppressRandomness Do not randomize intervals between samples.
*/
void startSampling(
@Optional @ParamName("samplingInterval") Integer samplingInterval,
@Optional @ParamName("suppressRandomness") Boolean suppressRandomness);
/** Stop collecting native memory profile. */
void stopSampling();
/** Retrieve native memory allocations profile collected since renderer process startup. */
@Returns("profile")
SamplingProfile getAllTimeSamplingProfile();
/** Retrieve native memory allocations profile collected since browser process startup. */
@Returns("profile")
SamplingProfile getBrowserSamplingProfile();
/** Retrieve native memory allocations profile collected since last `startSampling` call. */
@Returns("profile")
SamplingProfile getSamplingProfile();
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Network.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.network.*;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.*;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.debugger.SearchMatch;
import com.github.kklisura.cdt.protocol.v2023.types.network.*;
import java.util.List;
import java.util.Map;
/**
* Network domain allows tracking network activities of the page. It exposes information about http,
* file, data and other requests and responses, their headers, bodies, timing, etc.
*/
public interface Network {
/**
* Sets a list of content encodings that will be accepted. Empty list means no encoding is
* accepted.
*
* @param encodings List of accepted content encodings.
*/
@Experimental
void setAcceptedEncodings(@ParamName("encodings") List<ContentEncoding> encodings);
/** Clears accepted encodings set by setAcceptedEncodings */
@Experimental
void clearAcceptedEncodingsOverride();
/** Tells whether clearing browser cache is supported. */
@Deprecated
@Returns("result")
Boolean canClearBrowserCache();
/** Tells whether clearing browser cookies is supported. */
@Deprecated
@Returns("result")
Boolean canClearBrowserCookies();
/** Tells whether emulation of network conditions is supported. */
@Deprecated
@Returns("result")
Boolean canEmulateNetworkConditions();
/** Clears browser cache. */
void clearBrowserCache();
/** Clears browser cookies. */
void clearBrowserCookies();
/**
* Response to Network.requestIntercepted which either modifies the request to continue with any
* modifications, or blocks it, or completes it with the provided response bytes. If a network
* fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted
* event will be sent with the same InterceptionId. Deprecated, use Fetch.continueRequest,
* Fetch.fulfillRequest and Fetch.failRequest instead.
*
* @param interceptionId
*/
@Deprecated
@Experimental
void continueInterceptedRequest(@ParamName("interceptionId") String interceptionId);
/**
* Response to Network.requestIntercepted which either modifies the request to continue with any
* modifications, or blocks it, or completes it with the provided response bytes. If a network
* fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted
* event will be sent with the same InterceptionId. Deprecated, use Fetch.continueRequest,
* Fetch.fulfillRequest and Fetch.failRequest instead.
*
* @param interceptionId
* @param errorReason If set this causes the request to fail with the given reason. Passing
* `Aborted` for requests marked with `isNavigationRequest` also cancels the navigation. Must
* not be set in response to an authChallenge.
* @param rawResponse If set the requests completes using with the provided base64 encoded raw
* response, including HTTP status line and headers etc... Must not be set in response to an
* authChallenge. (Encoded as a base64 string when passed over JSON)
* @param url If set the request url will be modified in a way that's not observable by page. Must
* not be set in response to an authChallenge.
* @param method If set this allows the request method to be overridden. Must not be set in
* response to an authChallenge.
* @param postData If set this allows postData to be set. Must not be set in response to an
* authChallenge.
* @param headers If set this allows the request headers to be changed. Must not be set in
* response to an authChallenge.
* @param authChallengeResponse Response to a requestIntercepted with an authChallenge. Must not
* be set otherwise.
*/
@Deprecated
@Experimental
void continueInterceptedRequest(
@ParamName("interceptionId") String interceptionId,
@Optional @ParamName("errorReason") ErrorReason errorReason,
@Optional @ParamName("rawResponse") String rawResponse,
@Optional @ParamName("url") String url,
@Optional @ParamName("method") String method,
@Optional @ParamName("postData") String postData,
@Optional @ParamName("headers") Map<String, Object> headers,
@Optional @ParamName("authChallengeResponse") AuthChallengeResponse authChallengeResponse);
/**
* Deletes browser cookies with matching name and url or domain/path pair.
*
* @param name Name of the cookies to remove.
*/
void deleteCookies(@ParamName("name") String name);
/**
* Deletes browser cookies with matching name and url or domain/path pair.
*
* @param name Name of the cookies to remove.
* @param url If specified, deletes all the cookies with the given name where domain and path
* match provided URL.
* @param domain If specified, deletes only cookies with the exact domain.
* @param path If specified, deletes only cookies with the exact path.
*/
void deleteCookies(
@ParamName("name") String name,
@Optional @ParamName("url") String url,
@Optional @ParamName("domain") String domain,
@Optional @ParamName("path") String path);
/** Disables network tracking, prevents network events from being sent to the client. */
void disable();
/**
* Activates emulation of network conditions.
*
* @param offline True to emulate internet disconnection.
* @param latency Minimum latency from request sent to response headers received (ms).
* @param downloadThroughput Maximal aggregated download throughput (bytes/sec). -1 disables
* download throttling.
* @param uploadThroughput Maximal aggregated upload throughput (bytes/sec). -1 disables upload
* throttling.
*/
void emulateNetworkConditions(
@ParamName("offline") Boolean offline,
@ParamName("latency") Double latency,
@ParamName("downloadThroughput") Double downloadThroughput,
@ParamName("uploadThroughput") Double uploadThroughput);
/**
* Activates emulation of network conditions.
*
* @param offline True to emulate internet disconnection.
* @param latency Minimum latency from request sent to response headers received (ms).
* @param downloadThroughput Maximal aggregated download throughput (bytes/sec). -1 disables
* download throttling.
* @param uploadThroughput Maximal aggregated upload throughput (bytes/sec). -1 disables upload
* throttling.
* @param connectionType Connection type if known.
*/
void emulateNetworkConditions(
@ParamName("offline") Boolean offline,
@ParamName("latency") Double latency,
@ParamName("downloadThroughput") Double downloadThroughput,
@ParamName("uploadThroughput") Double uploadThroughput,
@Optional @ParamName("connectionType") ConnectionType connectionType);
/** Enables network tracking, network events will now be delivered to the client. */
void enable();
/**
* Enables network tracking, network events will now be delivered to the client.
*
* @param maxTotalBufferSize Buffer size in bytes to use when preserving network payloads (XHRs,
* etc).
* @param maxResourceBufferSize Per-resource buffer size in bytes to use when preserving network
* payloads (XHRs, etc).
* @param maxPostDataSize Longest post body size (in bytes) that would be included in
* requestWillBeSent notification
*/
void enable(
@Experimental @Optional @ParamName("maxTotalBufferSize") Integer maxTotalBufferSize,
@Experimental @Optional @ParamName("maxResourceBufferSize") Integer maxResourceBufferSize,
@Optional @ParamName("maxPostDataSize") Integer maxPostDataSize);
/**
* Returns all browser cookies. Depending on the backend support, will return detailed cookie
* information in the `cookies` field. Deprecated. Use Storage.getCookies instead.
*/
@Deprecated
@Returns("cookies")
@ReturnTypeParameter(Cookie.class)
List<Cookie> getAllCookies();
/**
* Returns the DER-encoded certificate.
*
* @param origin Origin to get certificate for.
*/
@Experimental
@Returns("tableNames")
@ReturnTypeParameter(String.class)
List<String> getCertificate(@ParamName("origin") String origin);
/**
* Returns all browser cookies for the current URL. Depending on the backend support, will return
* detailed cookie information in the `cookies` field.
*/
@Returns("cookies")
@ReturnTypeParameter(Cookie.class)
List<Cookie> getCookies();
/**
* Returns all browser cookies for the current URL. Depending on the backend support, will return
* detailed cookie information in the `cookies` field.
*
* @param urls The list of URLs for which applicable cookies will be fetched. If not specified,
* it's assumed to be set to the list containing the URLs of the page and all of its
* subframes.
*/
@Returns("cookies")
@ReturnTypeParameter(Cookie.class)
List<Cookie> getCookies(@Optional @ParamName("urls") List<String> urls);
/**
* Returns content served for the given request.
*
* @param requestId Identifier of the network request to get content for.
*/
ResponseBody getResponseBody(@ParamName("requestId") String requestId);
/**
* Returns post data sent with the request. Returns an error when no data was sent with the
* request.
*
* @param requestId Identifier of the network request to get content for.
*/
@Returns("postData")
String getRequestPostData(@ParamName("requestId") String requestId);
/**
* Returns content served for the given currently intercepted request.
*
* @param interceptionId Identifier for the intercepted request to get body for.
*/
@Experimental
ResponseBodyForInterception getResponseBodyForInterception(
@ParamName("interceptionId") String interceptionId);
/**
* Returns a handle to the stream representing the response body. Note that after this command,
* the intercepted request can't be continued as is -- you either need to cancel it or to provide
* the response body. The stream only supports sequential read, IO.read will fail if the position
* is specified.
*
* @param interceptionId
*/
@Experimental
@Returns("stream")
String takeResponseBodyForInterceptionAsStream(
@ParamName("interceptionId") String interceptionId);
/**
* This method sends a new XMLHttpRequest which is identical to the original one. The following
* parameters should be identical: method, url, async, request body, extra headers,
* withCredentials attribute, user, password.
*
* @param requestId Identifier of XHR to replay.
*/
@Experimental
void replayXHR(@ParamName("requestId") String requestId);
/**
* Searches for given string in response content.
*
* @param requestId Identifier of the network response to search.
* @param query String to search for.
*/
@Experimental
@Returns("result")
@ReturnTypeParameter(SearchMatch.class)
List<SearchMatch> searchInResponseBody(
@ParamName("requestId") String requestId, @ParamName("query") String query);
/**
* Searches for given string in response content.
*
* @param requestId Identifier of the network response to search.
* @param query String to search for.
* @param caseSensitive If true, search is case sensitive.
* @param isRegex If true, treats string parameter as regex.
*/
@Experimental
@Returns("result")
@ReturnTypeParameter(SearchMatch.class)
List<SearchMatch> searchInResponseBody(
@ParamName("requestId") String requestId,
@ParamName("query") String query,
@Optional @ParamName("caseSensitive") Boolean caseSensitive,
@Optional @ParamName("isRegex") Boolean isRegex);
/**
* Blocks URLs from loading.
*
* @param urls URL patterns to block. Wildcards ('*') are allowed.
*/
@Experimental
void setBlockedURLs(@ParamName("urls") List<String> urls);
/**
* Toggles ignoring of service worker for each request.
*
* @param bypass Bypass service worker and load from network.
*/
@Experimental
void setBypassServiceWorker(@ParamName("bypass") Boolean bypass);
/**
* Toggles ignoring cache for each request. If `true`, cache will not be used.
*
* @param cacheDisabled Cache disabled state.
*/
void setCacheDisabled(@ParamName("cacheDisabled") Boolean cacheDisabled);
/**
* Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
*
* @param name Cookie name.
* @param value Cookie value.
*/
@Returns("success")
Boolean setCookie(@ParamName("name") String name, @ParamName("value") String value);
/**
* Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
*
* @param name Cookie name.
* @param value Cookie value.
* @param url The request-URI to associate with the setting of the cookie. This value can affect
* the default domain, path, source port, and source scheme values of the created cookie.
* @param domain Cookie domain.
* @param path Cookie path.
* @param secure True if cookie is secure.
* @param httpOnly True if cookie is http-only.
* @param sameSite Cookie SameSite type.
* @param expires Cookie expiration date, session cookie if not set
* @param priority Cookie Priority type.
* @param sameParty True if cookie is SameParty.
* @param sourceScheme Cookie source scheme type.
* @param sourcePort Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an
* unspecified port. An unspecified port value allows protocol clients to emulate legacy
* cookie scope for the port. This is a temporary ability and it will be removed in the
* future.
* @param partitionKey Cookie partition key. The site of the top-level URL the browser was
* visiting at the start of the request to the endpoint that set the cookie. If not set, the
* cookie will be set as not partitioned.
*/
@Returns("success")
Boolean setCookie(
@ParamName("name") String name,
@ParamName("value") String value,
@Optional @ParamName("url") String url,
@Optional @ParamName("domain") String domain,
@Optional @ParamName("path") String path,
@Optional @ParamName("secure") Boolean secure,
@Optional @ParamName("httpOnly") Boolean httpOnly,
@Optional @ParamName("sameSite") CookieSameSite sameSite,
@Optional @ParamName("expires") Double expires,
@Experimental @Optional @ParamName("priority") CookiePriority priority,
@Experimental @Optional @ParamName("sameParty") Boolean sameParty,
@Experimental @Optional @ParamName("sourceScheme") CookieSourceScheme sourceScheme,
@Experimental @Optional @ParamName("sourcePort") Integer sourcePort,
@Experimental @Optional @ParamName("partitionKey") String partitionKey);
/**
* Sets given cookies.
*
* @param cookies Cookies to be set.
*/
void setCookies(@ParamName("cookies") List<CookieParam> cookies);
/**
* Specifies whether to always send extra HTTP headers with the requests from this page.
*
* @param headers Map with extra HTTP headers.
*/
void setExtraHTTPHeaders(@ParamName("headers") Map<String, Object> headers);
/**
* Specifies whether to attach a page script stack id in requests
*
* @param enabled Whether to attach a page script stack for debugging purpose.
*/
@Experimental
void setAttachDebugStack(@ParamName("enabled") Boolean enabled);
/**
* Sets the requests to intercept that match the provided patterns and optionally resource types.
* Deprecated, please use Fetch.enable instead.
*
* @param patterns Requests matching any of these patterns will be forwarded and wait for the
* corresponding continueInterceptedRequest call.
*/
@Deprecated
@Experimental
void setRequestInterception(@ParamName("patterns") List<RequestPattern> patterns);
/** Returns information about the COEP/COOP isolation status. */
@Experimental
@Returns("status")
SecurityIsolationStatus getSecurityIsolationStatus();
/**
* Returns information about the COEP/COOP isolation status.
*
* @param frameId If no frameId is provided, the status of the target is provided.
*/
@Experimental
@Returns("status")
SecurityIsolationStatus getSecurityIsolationStatus(
@Optional @ParamName("frameId") String frameId);
/**
* Enables tracking for the Reporting API, events generated by the Reporting API will now be
* delivered to the client. Enabling triggers 'reportingApiReportAdded' for all existing reports.
*
* @param enable Whether to enable or disable events for the Reporting API
*/
@Experimental
void enableReportingApi(@ParamName("enable") Boolean enable);
/**
* Fetches the resource and returns the content.
*
* @param url URL of the resource to get content for.
* @param options Options for the request.
*/
@Experimental
@Returns("resource")
LoadNetworkResourcePageResult loadNetworkResource(
@ParamName("url") String url, @ParamName("options") LoadNetworkResourceOptions options);
/**
* Fetches the resource and returns the content.
*
* @param frameId Frame id to get the resource for. Mandatory for frame targets, and should be
* omitted for worker targets.
* @param url URL of the resource to get content for.
* @param options Options for the request.
*/
@Experimental
@Returns("resource")
LoadNetworkResourcePageResult loadNetworkResource(
@Optional @ParamName("frameId") String frameId,
@ParamName("url") String url,
@ParamName("options") LoadNetworkResourceOptions options);
/** Fired when data chunk was received over the network. */
@EventName("dataReceived")
EventListener onDataReceived(EventHandler<DataReceived> eventListener);
/** Fired when EventSource message is received. */
@EventName("eventSourceMessageReceived")
EventListener onEventSourceMessageReceived(
EventHandler<EventSourceMessageReceived> eventListener);
/** Fired when HTTP request has failed to load. */
@EventName("loadingFailed")
EventListener onLoadingFailed(EventHandler<LoadingFailed> eventListener);
/** Fired when HTTP request has finished loading. */
@EventName("loadingFinished")
EventListener onLoadingFinished(EventHandler<LoadingFinished> eventListener);
/**
* Details of an intercepted HTTP request, which must be either allowed, blocked, modified or
* mocked. Deprecated, use Fetch.requestPaused instead.
*/
@EventName("requestIntercepted")
@Deprecated
@Experimental
EventListener onRequestIntercepted(EventHandler<RequestIntercepted> eventListener);
/** Fired if request ended up loading from cache. */
@EventName("requestServedFromCache")
EventListener onRequestServedFromCache(EventHandler<RequestServedFromCache> eventListener);
/** Fired when page is about to send HTTP request. */
@EventName("requestWillBeSent")
EventListener onRequestWillBeSent(EventHandler<RequestWillBeSent> eventListener);
/** Fired when resource loading priority is changed */
@EventName("resourceChangedPriority")
@Experimental
EventListener onResourceChangedPriority(EventHandler<ResourceChangedPriority> eventListener);
/** Fired when a signed exchange was received over the network */
@EventName("signedExchangeReceived")
@Experimental
EventListener onSignedExchangeReceived(EventHandler<SignedExchangeReceived> eventListener);
/** Fired when HTTP response is available. */
@EventName("responseReceived")
EventListener onResponseReceived(EventHandler<ResponseReceived> eventListener);
/** Fired when WebSocket is closed. */
@EventName("webSocketClosed")
EventListener onWebSocketClosed(EventHandler<WebSocketClosed> eventListener);
/** Fired upon WebSocket creation. */
@EventName("webSocketCreated")
EventListener onWebSocketCreated(EventHandler<WebSocketCreated> eventListener);
/** Fired when WebSocket message error occurs. */
@EventName("webSocketFrameError")
EventListener onWebSocketFrameError(EventHandler<WebSocketFrameError> eventListener);
/** Fired when WebSocket message is received. */
@EventName("webSocketFrameReceived")
EventListener onWebSocketFrameReceived(EventHandler<WebSocketFrameReceived> eventListener);
/** Fired when WebSocket message is sent. */
@EventName("webSocketFrameSent")
EventListener onWebSocketFrameSent(EventHandler<WebSocketFrameSent> eventListener);
/** Fired when WebSocket handshake response becomes available. */
@EventName("webSocketHandshakeResponseReceived")
EventListener onWebSocketHandshakeResponseReceived(
EventHandler<WebSocketHandshakeResponseReceived> eventListener);
/** Fired when WebSocket is about to initiate handshake. */
@EventName("webSocketWillSendHandshakeRequest")
EventListener onWebSocketWillSendHandshakeRequest(
EventHandler<WebSocketWillSendHandshakeRequest> eventListener);
/** Fired upon WebTransport creation. */
@EventName("webTransportCreated")
EventListener onWebTransportCreated(EventHandler<WebTransportCreated> eventListener);
/** Fired when WebTransport handshake is finished. */
@EventName("webTransportConnectionEstablished")
EventListener onWebTransportConnectionEstablished(
EventHandler<WebTransportConnectionEstablished> eventListener);
/** Fired when WebTransport is disposed. */
@EventName("webTransportClosed")
EventListener onWebTransportClosed(EventHandler<WebTransportClosed> eventListener);
/**
* Fired when additional information about a requestWillBeSent event is available from the network
* stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo
* fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo
* will be fired first for the same request.
*/
@EventName("requestWillBeSentExtraInfo")
@Experimental
EventListener onRequestWillBeSentExtraInfo(
EventHandler<RequestWillBeSentExtraInfo> eventListener);
/**
* Fired when additional information about a responseReceived event is available from the network
* stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for
* it, and responseReceivedExtraInfo may be fired before or after responseReceived.
*/
@EventName("responseReceivedExtraInfo")
@Experimental
EventListener onResponseReceivedExtraInfo(EventHandler<ResponseReceivedExtraInfo> eventListener);
/**
* Fired exactly once for each Trust Token operation. Depending on the type of the operation and
* whether the operation succeeded or failed, the event is fired before the corresponding request
* was sent or after the response was received.
*/
@EventName("trustTokenOperationDone")
@Experimental
EventListener onTrustTokenOperationDone(EventHandler<TrustTokenOperationDone> eventListener);
/**
* Fired once when parsing the .wbn file has succeeded. The event contains the information about
* the web bundle contents.
*/
@EventName("subresourceWebBundleMetadataReceived")
@Experimental
EventListener onSubresourceWebBundleMetadataReceived(
EventHandler<SubresourceWebBundleMetadataReceived> eventListener);
/** Fired once when parsing the .wbn file has failed. */
@EventName("subresourceWebBundleMetadataError")
@Experimental
EventListener onSubresourceWebBundleMetadataError(
EventHandler<SubresourceWebBundleMetadataError> eventListener);
/**
* Fired when handling requests for resources within a .wbn file. Note: this will only be fired
* for resources that are requested by the webpage.
*/
@EventName("subresourceWebBundleInnerResponseParsed")
@Experimental
EventListener onSubresourceWebBundleInnerResponseParsed(
EventHandler<SubresourceWebBundleInnerResponseParsed> eventListener);
/** Fired when request for resources within a .wbn file failed. */
@EventName("subresourceWebBundleInnerResponseError")
@Experimental
EventListener onSubresourceWebBundleInnerResponseError(
EventHandler<SubresourceWebBundleInnerResponseError> eventListener);
/**
* Is sent whenever a new report is added. And after 'enableReportingApi' for all existing
* reports.
*/
@EventName("reportingApiReportAdded")
@Experimental
EventListener onReportingApiReportAdded(EventHandler<ReportingApiReportAdded> eventListener);
@EventName("reportingApiReportUpdated")
@Experimental
EventListener onReportingApiReportUpdated(EventHandler<ReportingApiReportUpdated> eventListener);
@EventName("reportingApiEndpointsChangedForOrigin")
@Experimental
EventListener onReportingApiEndpointsChangedForOrigin(
EventHandler<ReportingApiEndpointsChangedForOrigin> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Overlay.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.overlay.InspectModeCanceled;
import com.github.kklisura.cdt.protocol.v2023.events.overlay.InspectNodeRequested;
import com.github.kklisura.cdt.protocol.v2023.events.overlay.NodeHighlightRequested;
import com.github.kklisura.cdt.protocol.v2023.events.overlay.ScreenshotRequested;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.*;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.dom.RGBA;
import com.github.kklisura.cdt.protocol.v2023.types.overlay.*;
import java.util.List;
import java.util.Map;
/** This domain provides various functionality related to drawing atop the inspected page. */
@Experimental
public interface Overlay {
/** Disables domain notifications. */
void disable();
/** Enables domain notifications. */
void enable();
/**
* For testing.
*
* @param nodeId Id of the node to get highlight object for.
*/
@Returns("highlight")
Map<String, Object> getHighlightObjectForTest(@ParamName("nodeId") Integer nodeId);
/**
* For testing.
*
* @param nodeId Id of the node to get highlight object for.
* @param includeDistance Whether to include distance info.
* @param includeStyle Whether to include style info.
* @param colorFormat The color format to get config with (default: hex).
* @param showAccessibilityInfo Whether to show accessibility info (default: true).
*/
@Returns("highlight")
Map<String, Object> getHighlightObjectForTest(
@ParamName("nodeId") Integer nodeId,
@Optional @ParamName("includeDistance") Boolean includeDistance,
@Optional @ParamName("includeStyle") Boolean includeStyle,
@Optional @ParamName("colorFormat") ColorFormat colorFormat,
@Optional @ParamName("showAccessibilityInfo") Boolean showAccessibilityInfo);
/**
* For Persistent Grid testing.
*
* @param nodeIds Ids of the node to get highlight object for.
*/
@Returns("highlights")
Map<String, Object> getGridHighlightObjectsForTest(@ParamName("nodeIds") List<Integer> nodeIds);
/**
* For Source Order Viewer testing.
*
* @param nodeId Id of the node to highlight.
*/
@Returns("highlight")
Map<String, Object> getSourceOrderHighlightObjectForTest(@ParamName("nodeId") Integer nodeId);
/** Hides any highlight. */
void hideHighlight();
/**
* Highlights owner element of the frame with given id. Deprecated: Doesn't work reliablity and
* cannot be fixed due to process separatation (the owner node might be in a different process).
* Determine the owner node in the client and use highlightNode.
*
* @param frameId Identifier of the frame to highlight.
*/
@Deprecated
void highlightFrame(@ParamName("frameId") String frameId);
/**
* Highlights owner element of the frame with given id. Deprecated: Doesn't work reliablity and
* cannot be fixed due to process separatation (the owner node might be in a different process).
* Determine the owner node in the client and use highlightNode.
*
* @param frameId Identifier of the frame to highlight.
* @param contentColor The content box highlight fill color (default: transparent).
* @param contentOutlineColor The content box highlight outline color (default: transparent).
*/
@Deprecated
void highlightFrame(
@ParamName("frameId") String frameId,
@Optional @ParamName("contentColor") RGBA contentColor,
@Optional @ParamName("contentOutlineColor") RGBA contentOutlineColor);
/**
* Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or
* objectId must be specified.
*
* @param highlightConfig A descriptor for the highlight appearance.
*/
void highlightNode(@ParamName("highlightConfig") HighlightConfig highlightConfig);
/**
* Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or
* objectId must be specified.
*
* @param highlightConfig A descriptor for the highlight appearance.
* @param nodeId Identifier of the node to highlight.
* @param backendNodeId Identifier of the backend node to highlight.
* @param objectId JavaScript object id of the node to be highlighted.
* @param selector Selectors to highlight relevant nodes.
*/
void highlightNode(
@ParamName("highlightConfig") HighlightConfig highlightConfig,
@Optional @ParamName("nodeId") Integer nodeId,
@Optional @ParamName("backendNodeId") Integer backendNodeId,
@Optional @ParamName("objectId") String objectId,
@Optional @ParamName("selector") String selector);
/**
* Highlights given quad. Coordinates are absolute with respect to the main frame viewport.
*
* @param quad Quad to highlight
*/
void highlightQuad(@ParamName("quad") List<Double> quad);
/**
* Highlights given quad. Coordinates are absolute with respect to the main frame viewport.
*
* @param quad Quad to highlight
* @param color The highlight fill color (default: transparent).
* @param outlineColor The highlight outline color (default: transparent).
*/
void highlightQuad(
@ParamName("quad") List<Double> quad,
@Optional @ParamName("color") RGBA color,
@Optional @ParamName("outlineColor") RGBA outlineColor);
/**
* Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.
*
* @param x X coordinate
* @param y Y coordinate
* @param width Rectangle width
* @param height Rectangle height
*/
void highlightRect(
@ParamName("x") Integer x,
@ParamName("y") Integer y,
@ParamName("width") Integer width,
@ParamName("height") Integer height);
/**
* Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.
*
* @param x X coordinate
* @param y Y coordinate
* @param width Rectangle width
* @param height Rectangle height
* @param color The highlight fill color (default: transparent).
* @param outlineColor The highlight outline color (default: transparent).
*/
void highlightRect(
@ParamName("x") Integer x,
@ParamName("y") Integer y,
@ParamName("width") Integer width,
@ParamName("height") Integer height,
@Optional @ParamName("color") RGBA color,
@Optional @ParamName("outlineColor") RGBA outlineColor);
/**
* Highlights the source order of the children of the DOM node with given id or with the given
* JavaScript object wrapper. Either nodeId or objectId must be specified.
*
* @param sourceOrderConfig A descriptor for the appearance of the overlay drawing.
*/
void highlightSourceOrder(@ParamName("sourceOrderConfig") SourceOrderConfig sourceOrderConfig);
/**
* Highlights the source order of the children of the DOM node with given id or with the given
* JavaScript object wrapper. Either nodeId or objectId must be specified.
*
* @param sourceOrderConfig A descriptor for the appearance of the overlay drawing.
* @param nodeId Identifier of the node to highlight.
* @param backendNodeId Identifier of the backend node to highlight.
* @param objectId JavaScript object id of the node to be highlighted.
*/
void highlightSourceOrder(
@ParamName("sourceOrderConfig") SourceOrderConfig sourceOrderConfig,
@Optional @ParamName("nodeId") Integer nodeId,
@Optional @ParamName("backendNodeId") Integer backendNodeId,
@Optional @ParamName("objectId") String objectId);
/**
* Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.
* Backend then generates 'inspectNodeRequested' event upon element selection.
*
* @param mode Set an inspection mode.
*/
void setInspectMode(@ParamName("mode") InspectMode mode);
/**
* Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.
* Backend then generates 'inspectNodeRequested' event upon element selection.
*
* @param mode Set an inspection mode.
* @param highlightConfig A descriptor for the highlight appearance of hovered-over nodes. May be
* omitted if `enabled == false`.
*/
void setInspectMode(
@ParamName("mode") InspectMode mode,
@Optional @ParamName("highlightConfig") HighlightConfig highlightConfig);
/**
* Highlights owner element of all frames detected to be ads.
*
* @param show True for showing ad highlights
*/
void setShowAdHighlights(@ParamName("show") Boolean show);
void setPausedInDebuggerMessage();
/** @param message The message to display, also triggers resume and step over controls. */
void setPausedInDebuggerMessage(@Optional @ParamName("message") String message);
/**
* Requests that backend shows debug borders on layers
*
* @param show True for showing debug borders
*/
void setShowDebugBorders(@ParamName("show") Boolean show);
/**
* Requests that backend shows the FPS counter
*
* @param show True for showing the FPS counter
*/
void setShowFPSCounter(@ParamName("show") Boolean show);
/**
* Highlight multiple elements with the CSS Grid overlay.
*
* @param gridNodeHighlightConfigs An array of node identifiers and descriptors for the highlight
* appearance.
*/
void setShowGridOverlays(
@ParamName("gridNodeHighlightConfigs")
List<GridNodeHighlightConfig> gridNodeHighlightConfigs);
/**
* @param flexNodeHighlightConfigs An array of node identifiers and descriptors for the highlight
* appearance.
*/
void setShowFlexOverlays(
@ParamName("flexNodeHighlightConfigs")
List<FlexNodeHighlightConfig> flexNodeHighlightConfigs);
/**
* @param scrollSnapHighlightConfigs An array of node identifiers and descriptors for the
* highlight appearance.
*/
void setShowScrollSnapOverlays(
@ParamName("scrollSnapHighlightConfigs")
List<ScrollSnapHighlightConfig> scrollSnapHighlightConfigs);
/**
* @param containerQueryHighlightConfigs An array of node identifiers and descriptors for the
* highlight appearance.
*/
void setShowContainerQueryOverlays(
@ParamName("containerQueryHighlightConfigs")
List<ContainerQueryHighlightConfig> containerQueryHighlightConfigs);
/**
* Requests that backend shows paint rectangles
*
* @param result True for showing paint rectangles
*/
void setShowPaintRects(@ParamName("result") Boolean result);
/**
* Requests that backend shows layout shift regions
*
* @param result True for showing layout shift regions
*/
void setShowLayoutShiftRegions(@ParamName("result") Boolean result);
/**
* Requests that backend shows scroll bottleneck rects
*
* @param show True for showing scroll bottleneck rects
*/
void setShowScrollBottleneckRects(@ParamName("show") Boolean show);
/**
* Deprecated, no longer has any effect.
*
* @param show True for showing hit-test borders
*/
@Deprecated
void setShowHitTestBorders(@ParamName("show") Boolean show);
/**
* Request that backend shows an overlay with web vital metrics.
*
* @param show
*/
void setShowWebVitals(@ParamName("show") Boolean show);
/**
* Paints viewport size upon main frame resize.
*
* @param show Whether to paint size or not.
*/
void setShowViewportSizeOnResize(@ParamName("show") Boolean show);
/** Add a dual screen device hinge */
void setShowHinge();
/**
* Add a dual screen device hinge
*
* @param hingeConfig hinge data, null means hideHinge
*/
void setShowHinge(@Optional @ParamName("hingeConfig") HingeConfig hingeConfig);
/**
* Show elements in isolation mode with overlays.
*
* @param isolatedElementHighlightConfigs An array of node identifiers and descriptors for the
* highlight appearance.
*/
void setShowIsolatedElements(
@ParamName("isolatedElementHighlightConfigs")
List<IsolatedElementHighlightConfig> isolatedElementHighlightConfigs);
/**
* Fired when the node should be inspected. This happens after call to `setInspectMode` or when
* user manually inspects an element.
*/
@EventName("inspectNodeRequested")
EventListener onInspectNodeRequested(EventHandler<InspectNodeRequested> eventListener);
/** Fired when the node should be highlighted. This happens after call to `setInspectMode`. */
@EventName("nodeHighlightRequested")
EventListener onNodeHighlightRequested(EventHandler<NodeHighlightRequested> eventListener);
/** Fired when user asks to capture screenshot of some area on the page. */
@EventName("screenshotRequested")
EventListener onScreenshotRequested(EventHandler<ScreenshotRequested> eventListener);
/** Fired when user cancels the inspect mode. */
@EventName("inspectModeCanceled")
EventListener onInspectModeCanceled(EventHandler<InspectModeCanceled> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Page.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.page.*;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.*;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.debugger.SearchMatch;
import com.github.kklisura.cdt.protocol.v2023.types.page.*;
import java.util.List;
/** Actions and events related to the inspected page belong to the page domain. */
public interface Page {
/**
* Deprecated, please use addScriptToEvaluateOnNewDocument instead.
*
* @param scriptSource
*/
@Deprecated
@Experimental
@Returns("identifier")
String addScriptToEvaluateOnLoad(@ParamName("scriptSource") String scriptSource);
/**
* Evaluates given script in every frame upon creation (before loading frame's scripts).
*
* @param source
*/
@Returns("identifier")
String addScriptToEvaluateOnNewDocument(@ParamName("source") String source);
/**
* Evaluates given script in every frame upon creation (before loading frame's scripts).
*
* @param source
* @param worldName If specified, creates an isolated world with the given name and evaluates
* given script in it. This world name will be used as the ExecutionContextDescription::name
* when the corresponding event is emitted.
* @param includeCommandLineAPI Specifies whether command line API should be available to the
* script, defaults to false.
* @param runImmediately If true, runs the script immediately on existing execution contexts or
* worlds. Default: false.
*/
@Returns("identifier")
String addScriptToEvaluateOnNewDocument(
@ParamName("source") String source,
@Experimental @Optional @ParamName("worldName") String worldName,
@Experimental @Optional @ParamName("includeCommandLineAPI") Boolean includeCommandLineAPI,
@Experimental @Optional @ParamName("runImmediately") Boolean runImmediately);
/** Brings page to front (activates tab). */
void bringToFront();
/** Capture page screenshot. */
@Returns("data")
String captureScreenshot();
/**
* Capture page screenshot.
*
* @param format Image compression format (defaults to png).
* @param quality Compression quality from range [0..100] (jpeg only).
* @param clip Capture the screenshot of a given region only.
* @param fromSurface Capture the screenshot from the surface, rather than the view. Defaults to
* true.
* @param captureBeyondViewport Capture the screenshot beyond the viewport. Defaults to false.
* @param optimizeForSpeed Optimize image encoding for speed, not for resulting size (defaults to
* false)
*/
@Returns("data")
String captureScreenshot(
@Optional @ParamName("format") CaptureScreenshotFormat format,
@Optional @ParamName("quality") Integer quality,
@Optional @ParamName("clip") Viewport clip,
@Experimental @Optional @ParamName("fromSurface") Boolean fromSurface,
@Experimental @Optional @ParamName("captureBeyondViewport") Boolean captureBeyondViewport,
@Experimental @Optional @ParamName("optimizeForSpeed") Boolean optimizeForSpeed);
/**
* Returns a snapshot of the page as a string. For MHTML format, the serialization includes
* iframes, shadow DOM, external resources, and element-inline styles.
*/
@Experimental
@Returns("data")
String captureSnapshot();
/**
* Returns a snapshot of the page as a string. For MHTML format, the serialization includes
* iframes, shadow DOM, external resources, and element-inline styles.
*
* @param format Format (defaults to mhtml).
*/
@Experimental
@Returns("data")
String captureSnapshot(@Optional @ParamName("format") CaptureSnapshotFormat format);
/**
* Creates an isolated world for the given frame.
*
* @param frameId Id of the frame in which the isolated world should be created.
*/
@Returns("executionContextId")
Integer createIsolatedWorld(@ParamName("frameId") String frameId);
/**
* Creates an isolated world for the given frame.
*
* @param frameId Id of the frame in which the isolated world should be created.
* @param worldName An optional name which is reported in the Execution Context.
* @param grantUniveralAccess Whether or not universal access should be granted to the isolated
* world. This is a powerful option, use with caution.
*/
@Returns("executionContextId")
Integer createIsolatedWorld(
@ParamName("frameId") String frameId,
@Optional @ParamName("worldName") String worldName,
@Optional @ParamName("grantUniveralAccess") Boolean grantUniveralAccess);
/** Disables page domain notifications. */
void disable();
/** Enables page domain notifications. */
void enable();
AppManifest getAppManifest();
@Experimental
@Returns("installabilityErrors")
@ReturnTypeParameter(InstallabilityError.class)
List<InstallabilityError> getInstallabilityErrors();
/**
* Deprecated because it's not guaranteed that the returned icon is in fact the one used for PWA
* installation.
*/
@Deprecated
@Experimental
@Returns("primaryIcon")
String getManifestIcons();
/**
* Returns the unique (PWA) app id. Only returns values if the feature flag
* 'WebAppEnableManifestId' is enabled
*/
@Experimental
AppId getAppId();
/** @param frameId */
@Experimental
@Returns("adScriptId")
AdScriptId getAdScriptId(@ParamName("frameId") String frameId);
/** Returns present frame tree structure. */
@Returns("frameTree")
FrameTree getFrameTree();
/** Returns metrics relating to the layouting of the page, such as viewport bounds/scale. */
LayoutMetrics getLayoutMetrics();
/** Returns navigation history for the current page. */
NavigationHistory getNavigationHistory();
/** Resets navigation history for the current page. */
void resetNavigationHistory();
/**
* Returns content of the given resource.
*
* @param frameId Frame id to get resource for.
* @param url URL of the resource to get content for.
*/
@Experimental
ResourceContent getResourceContent(
@ParamName("frameId") String frameId, @ParamName("url") String url);
/** Returns present frame / resource tree structure. */
@Experimental
@Returns("frameTree")
FrameResourceTree getResourceTree();
/**
* Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
*
* @param accept Whether to accept or dismiss the dialog.
*/
void handleJavaScriptDialog(@ParamName("accept") Boolean accept);
/**
* Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
*
* @param accept Whether to accept or dismiss the dialog.
* @param promptText The text to enter into the dialog prompt before accepting. Used only if this
* is a prompt dialog.
*/
void handleJavaScriptDialog(
@ParamName("accept") Boolean accept, @Optional @ParamName("promptText") String promptText);
/**
* Navigates current page to the given URL.
*
* @param url URL to navigate the page to.
*/
Navigate navigate(@ParamName("url") String url);
/**
* Navigates current page to the given URL.
*
* @param url URL to navigate the page to.
* @param referrer Referrer URL.
* @param transitionType Intended transition type.
* @param frameId Frame id to navigate, if not specified navigates the top frame.
* @param referrerPolicy Referrer-policy used for the navigation.
*/
Navigate navigate(
@ParamName("url") String url,
@Optional @ParamName("referrer") String referrer,
@Optional @ParamName("transitionType") TransitionType transitionType,
@Optional @ParamName("frameId") String frameId,
@Experimental @Optional @ParamName("referrerPolicy") ReferrerPolicy referrerPolicy);
/**
* Navigates current page to the given history entry.
*
* @param entryId Unique id of the entry to navigate to.
*/
void navigateToHistoryEntry(@ParamName("entryId") Integer entryId);
/** Print page as PDF. */
PrintToPDF printToPDF();
/**
* Print page as PDF.
*
* @param landscape Paper orientation. Defaults to false.
* @param displayHeaderFooter Display header and footer. Defaults to false.
* @param printBackground Print background graphics. Defaults to false.
* @param scale Scale of the webpage rendering. Defaults to 1.
* @param paperWidth Paper width in inches. Defaults to 8.5 inches.
* @param paperHeight Paper height in inches. Defaults to 11 inches.
* @param marginTop Top margin in inches. Defaults to 1cm (~0.4 inches).
* @param marginBottom Bottom margin in inches. Defaults to 1cm (~0.4 inches).
* @param marginLeft Left margin in inches. Defaults to 1cm (~0.4 inches).
* @param marginRight Right margin in inches. Defaults to 1cm (~0.4 inches).
* @param pageRanges Paper ranges to print, one based, e.g., '1-5, 8, 11-13'. Pages are printed in
* the document order, not in the order specified, and no more than once. Defaults to empty
* string, which implies the entire document is printed. The page numbers are quietly capped
* to actual page count of the document, and ranges beyond the end of the document are
* ignored. If this results in no pages to print, an error is reported. It is an error to
* specify a range with start greater than end.
* @param headerTemplate HTML template for the print header. Should be valid HTML markup with
* following classes used to inject printing values into them: - `date`: formatted print date
* - `title`: document title - `url`: document location - `pageNumber`: current page number -
* `totalPages`: total pages in the document
* <p>For example, `<span class=title></span>` would generate span containing the title.
* @param footerTemplate HTML template for the print footer. Should use the same format as the
* `headerTemplate`.
* @param preferCSSPageSize Whether or not to prefer page size as defined by css. Defaults to
* false, in which case the content will be scaled to fit the paper size.
* @param transferMode return as stream
*/
PrintToPDF printToPDF(
@Optional @ParamName("landscape") Boolean landscape,
@Optional @ParamName("displayHeaderFooter") Boolean displayHeaderFooter,
@Optional @ParamName("printBackground") Boolean printBackground,
@Optional @ParamName("scale") Double scale,
@Optional @ParamName("paperWidth") Double paperWidth,
@Optional @ParamName("paperHeight") Double paperHeight,
@Optional @ParamName("marginTop") Double marginTop,
@Optional @ParamName("marginBottom") Double marginBottom,
@Optional @ParamName("marginLeft") Double marginLeft,
@Optional @ParamName("marginRight") Double marginRight,
@Optional @ParamName("pageRanges") String pageRanges,
@Optional @ParamName("headerTemplate") String headerTemplate,
@Optional @ParamName("footerTemplate") String footerTemplate,
@Optional @ParamName("preferCSSPageSize") Boolean preferCSSPageSize,
@Experimental @Optional @ParamName("transferMode") PrintToPDFTransferMode transferMode);
/** Reloads given page optionally ignoring the cache. */
void reload();
/**
* Reloads given page optionally ignoring the cache.
*
* @param ignoreCache If true, browser cache is ignored (as if the user pressed Shift+refresh).
* @param scriptToEvaluateOnLoad If set, the script will be injected into all frames of the
* inspected page after reload. Argument will be ignored if reloading dataURL origin.
*/
void reload(
@Optional @ParamName("ignoreCache") Boolean ignoreCache,
@Optional @ParamName("scriptToEvaluateOnLoad") String scriptToEvaluateOnLoad);
/**
* Deprecated, please use removeScriptToEvaluateOnNewDocument instead.
*
* @param identifier
*/
@Deprecated
@Experimental
void removeScriptToEvaluateOnLoad(@ParamName("identifier") String identifier);
/**
* Removes given script from the list.
*
* @param identifier
*/
void removeScriptToEvaluateOnNewDocument(@ParamName("identifier") String identifier);
/**
* Acknowledges that a screencast frame has been received by the frontend.
*
* @param sessionId Frame number.
*/
@Experimental
void screencastFrameAck(@ParamName("sessionId") Integer sessionId);
/**
* Searches for given string in resource content.
*
* @param frameId Frame id for resource to search in.
* @param url URL of the resource to search in.
* @param query String to search for.
*/
@Experimental
@Returns("result")
@ReturnTypeParameter(SearchMatch.class)
List<SearchMatch> searchInResource(
@ParamName("frameId") String frameId,
@ParamName("url") String url,
@ParamName("query") String query);
/**
* Searches for given string in resource content.
*
* @param frameId Frame id for resource to search in.
* @param url URL of the resource to search in.
* @param query String to search for.
* @param caseSensitive If true, search is case sensitive.
* @param isRegex If true, treats string parameter as regex.
*/
@Experimental
@Returns("result")
@ReturnTypeParameter(SearchMatch.class)
List<SearchMatch> searchInResource(
@ParamName("frameId") String frameId,
@ParamName("url") String url,
@ParamName("query") String query,
@Optional @ParamName("caseSensitive") Boolean caseSensitive,
@Optional @ParamName("isRegex") Boolean isRegex);
/**
* Enable Chrome's experimental ad filter on all sites.
*
* @param enabled Whether to block ads.
*/
@Experimental
void setAdBlockingEnabled(@ParamName("enabled") Boolean enabled);
/**
* Enable page Content Security Policy by-passing.
*
* @param enabled Whether to bypass page CSP.
*/
@Experimental
void setBypassCSP(@ParamName("enabled") Boolean enabled);
/**
* Get Permissions Policy state on given frame.
*
* @param frameId
*/
@Experimental
@Returns("states")
@ReturnTypeParameter(PermissionsPolicyFeatureState.class)
List<PermissionsPolicyFeatureState> getPermissionsPolicyState(
@ParamName("frameId") String frameId);
/**
* Get Origin Trials on given frame.
*
* @param frameId
*/
@Experimental
@Returns("originTrials")
@ReturnTypeParameter(OriginTrial.class)
List<OriginTrial> getOriginTrials(@ParamName("frameId") String frameId);
/**
* Set generic font families.
*
* @param fontFamilies Specifies font families to set. If a font family is not specified, it won't
* be changed.
*/
@Experimental
void setFontFamilies(@ParamName("fontFamilies") FontFamilies fontFamilies);
/**
* Set generic font families.
*
* @param fontFamilies Specifies font families to set. If a font family is not specified, it won't
* be changed.
* @param forScripts Specifies font families to set for individual scripts.
*/
@Experimental
void setFontFamilies(
@ParamName("fontFamilies") FontFamilies fontFamilies,
@Optional @ParamName("forScripts") List<ScriptFontFamilies> forScripts);
/**
* Set default font sizes.
*
* @param fontSizes Specifies font sizes to set. If a font size is not specified, it won't be
* changed.
*/
@Experimental
void setFontSizes(@ParamName("fontSizes") FontSizes fontSizes);
/**
* Sets given markup as the document's HTML.
*
* @param frameId Frame id to set HTML for.
* @param html HTML content to set.
*/
void setDocumentContent(@ParamName("frameId") String frameId, @ParamName("html") String html);
/**
* Set the behavior when downloading a file.
*
* @param behavior Whether to allow all or deny all download requests, or use default Chrome
* behavior if available (otherwise deny).
*/
@Deprecated
@Experimental
void setDownloadBehavior(@ParamName("behavior") SetDownloadBehaviorBehavior behavior);
/**
* Set the behavior when downloading a file.
*
* @param behavior Whether to allow all or deny all download requests, or use default Chrome
* behavior if available (otherwise deny).
* @param downloadPath The default path to save downloaded files to. This is required if behavior
* is set to 'allow'
*/
@Deprecated
@Experimental
void setDownloadBehavior(
@ParamName("behavior") SetDownloadBehaviorBehavior behavior,
@Optional @ParamName("downloadPath") String downloadPath);
/**
* Controls whether page will emit lifecycle events.
*
* @param enabled If true, starts emitting lifecycle events.
*/
@Experimental
void setLifecycleEventsEnabled(@ParamName("enabled") Boolean enabled);
/** Starts sending each frame using the `screencastFrame` event. */
@Experimental
void startScreencast();
/**
* Starts sending each frame using the `screencastFrame` event.
*
* @param format Image compression format.
* @param quality Compression quality from range [0..100].
* @param maxWidth Maximum screenshot width.
* @param maxHeight Maximum screenshot height.
* @param everyNthFrame Send every n-th frame.
*/
@Experimental
void startScreencast(
@Optional @ParamName("format") StartScreencastFormat format,
@Optional @ParamName("quality") Integer quality,
@Optional @ParamName("maxWidth") Integer maxWidth,
@Optional @ParamName("maxHeight") Integer maxHeight,
@Optional @ParamName("everyNthFrame") Integer everyNthFrame);
/** Force the page stop all navigations and pending resource fetches. */
void stopLoading();
/** Crashes renderer on the IO thread, generates minidumps. */
@Experimental
void crash();
/** Tries to close page, running its beforeunload hooks, if any. */
@Experimental
void close();
/**
* Tries to update the web lifecycle state of the page. It will transition the page to the given
* state according to: https://github.com/WICG/web-lifecycle/
*
* @param state Target lifecycle state
*/
@Experimental
void setWebLifecycleState(@ParamName("state") SetWebLifecycleStateState state);
/** Stops sending each frame in the `screencastFrame`. */
@Experimental
void stopScreencast();
/**
* Requests backend to produce compilation cache for the specified scripts. `scripts` are
* appeneded to the list of scripts for which the cache would be produced. The list may be reset
* during page navigation. When script with a matching URL is encountered, the cache is optionally
* produced upon backend discretion, based on internal heuristics. See also:
* `Page.compilationCacheProduced`.
*
* @param scripts
*/
@Experimental
void produceCompilationCache(@ParamName("scripts") List<CompilationCacheParams> scripts);
/**
* Seeds compilation cache for given url. Compilation cache does not survive cross-process
* navigation.
*
* @param url
* @param data Base64-encoded data (Encoded as a base64 string when passed over JSON)
*/
@Experimental
void addCompilationCache(@ParamName("url") String url, @ParamName("data") String data);
/** Clears seeded compilation cache. */
@Experimental
void clearCompilationCache();
/**
* Sets the Secure Payment Confirmation transaction mode.
* https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode
*
* @param mode
*/
@Experimental
void setSPCTransactionMode(@ParamName("mode") AutoResponseMode mode);
/**
* Extensions for Custom Handlers API:
* https://html.spec.whatwg.org/multipage/system-state.html#rph-automation
*
* @param mode
*/
@Experimental
void setRPHRegistrationMode(@ParamName("mode") AutoResponseMode mode);
/**
* Generates a report for testing.
*
* @param message Message to be displayed in the report.
*/
@Experimental
void generateTestReport(@ParamName("message") String message);
/**
* Generates a report for testing.
*
* @param message Message to be displayed in the report.
* @param group Specifies the endpoint group to deliver the report to.
*/
@Experimental
void generateTestReport(
@ParamName("message") String message, @Optional @ParamName("group") String group);
/** Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger. */
@Experimental
void waitForDebugger();
/**
* Intercept file chooser requests and transfer control to protocol clients. When file chooser
* interception is enabled, native file chooser dialog is not shown. Instead, a protocol event
* `Page.fileChooserOpened` is emitted.
*
* @param enabled
*/
@Experimental
void setInterceptFileChooserDialog(@ParamName("enabled") Boolean enabled);
/**
* Enable/disable prerendering manually.
*
* <p>This command is a short-term solution for https://crbug.com/1440085. See
* https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA for more
* details.
*
* <p>TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.
*
* @param isAllowed
*/
@Experimental
void setPrerenderingAllowed(@ParamName("isAllowed") Boolean isAllowed);
@EventName("domContentEventFired")
EventListener onDomContentEventFired(EventHandler<DomContentEventFired> eventListener);
/** Emitted only when `page.interceptFileChooser` is enabled. */
@EventName("fileChooserOpened")
EventListener onFileChooserOpened(EventHandler<FileChooserOpened> eventListener);
/** Fired when frame has been attached to its parent. */
@EventName("frameAttached")
EventListener onFrameAttached(EventHandler<FrameAttached> eventListener);
/** Fired when frame no longer has a scheduled navigation. */
@EventName("frameClearedScheduledNavigation")
@Deprecated
EventListener onFrameClearedScheduledNavigation(
EventHandler<FrameClearedScheduledNavigation> eventListener);
/** Fired when frame has been detached from its parent. */
@EventName("frameDetached")
EventListener onFrameDetached(EventHandler<FrameDetached> eventListener);
/**
* Fired once navigation of the frame has completed. Frame is now associated with the new loader.
*/
@EventName("frameNavigated")
EventListener onFrameNavigated(EventHandler<FrameNavigated> eventListener);
/** Fired when opening document to write to. */
@EventName("documentOpened")
@Experimental
EventListener onDocumentOpened(EventHandler<DocumentOpened> eventListener);
@EventName("frameResized")
@Experimental
EventListener onFrameResized(EventHandler<FrameResized> eventListener);
/**
* Fired when a renderer-initiated navigation is requested. Navigation may still be cancelled
* after the event is issued.
*/
@EventName("frameRequestedNavigation")
@Experimental
EventListener onFrameRequestedNavigation(EventHandler<FrameRequestedNavigation> eventListener);
/** Fired when frame schedules a potential navigation. */
@EventName("frameScheduledNavigation")
@Deprecated
EventListener onFrameScheduledNavigation(EventHandler<FrameScheduledNavigation> eventListener);
/** Fired when frame has started loading. */
@EventName("frameStartedLoading")
@Experimental
EventListener onFrameStartedLoading(EventHandler<FrameStartedLoading> eventListener);
/** Fired when frame has stopped loading. */
@EventName("frameStoppedLoading")
@Experimental
EventListener onFrameStoppedLoading(EventHandler<FrameStoppedLoading> eventListener);
/**
* Fired when page is about to start a download. Deprecated. Use Browser.downloadWillBegin
* instead.
*/
@EventName("downloadWillBegin")
@Deprecated
@Experimental
EventListener onDownloadWillBegin(EventHandler<DownloadWillBegin> eventListener);
/**
* Fired when download makes progress. Last call has |done| == true. Deprecated. Use
* Browser.downloadProgress instead.
*/
@EventName("downloadProgress")
@Deprecated
@Experimental
EventListener onDownloadProgress(EventHandler<DownloadProgress> eventListener);
/** Fired when interstitial page was hidden */
@EventName("interstitialHidden")
EventListener onInterstitialHidden(EventHandler<InterstitialHidden> eventListener);
/** Fired when interstitial page was shown */
@EventName("interstitialShown")
EventListener onInterstitialShown(EventHandler<InterstitialShown> eventListener);
/**
* Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been
* closed.
*/
@EventName("javascriptDialogClosed")
EventListener onJavascriptDialogClosed(EventHandler<JavascriptDialogClosed> eventListener);
/**
* Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about
* to open.
*/
@EventName("javascriptDialogOpening")
EventListener onJavascriptDialogOpening(EventHandler<JavascriptDialogOpening> eventListener);
/** Fired for top level page lifecycle events such as navigation, load, paint, etc. */
@EventName("lifecycleEvent")
EventListener onLifecycleEvent(EventHandler<LifecycleEvent> eventListener);
/**
* Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do not
* assume any ordering with the Page.frameNavigated event. This event is fired only for main-frame
* history navigation where the document changes (non-same-document navigations), when bfcache
* navigation fails.
*/
@EventName("backForwardCacheNotUsed")
@Experimental
EventListener onBackForwardCacheNotUsed(EventHandler<BackForwardCacheNotUsed> eventListener);
@EventName("loadEventFired")
EventListener onLoadEventFired(EventHandler<LoadEventFired> eventListener);
/**
* Fired when same-document navigation happens, e.g. due to history API usage or anchor
* navigation.
*/
@EventName("navigatedWithinDocument")
@Experimental
EventListener onNavigatedWithinDocument(EventHandler<NavigatedWithinDocument> eventListener);
/** Compressed image data requested by the `startScreencast`. */
@EventName("screencastFrame")
@Experimental
EventListener onScreencastFrame(EventHandler<ScreencastFrame> eventListener);
/** Fired when the page with currently enabled screencast was shown or hidden `. */
@EventName("screencastVisibilityChanged")
@Experimental
EventListener onScreencastVisibilityChanged(
EventHandler<ScreencastVisibilityChanged> eventListener);
/**
* Fired when a new window is going to be opened, via window.open(), link click, form submission,
* etc.
*/
@EventName("windowOpen")
EventListener onWindowOpen(EventHandler<WindowOpen> eventListener);
/**
* Issued for every compilation cache generated. Is only available if
* Page.setGenerateCompilationCache is enabled.
*/
@EventName("compilationCacheProduced")
@Experimental
EventListener onCompilationCacheProduced(EventHandler<CompilationCacheProduced> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Performance.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.performance.Metrics;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.*;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.performance.EnableTimeDomain;
import com.github.kklisura.cdt.protocol.v2023.types.performance.Metric;
import com.github.kklisura.cdt.protocol.v2023.types.performance.SetTimeDomainTimeDomain;
import java.util.List;
public interface Performance {
/** Disable collecting and reporting metrics. */
void disable();
/** Enable collecting and reporting metrics. */
void enable();
/**
* Enable collecting and reporting metrics.
*
* @param timeDomain Time domain to use for collecting and reporting duration metrics.
*/
void enable(@Optional @ParamName("timeDomain") EnableTimeDomain timeDomain);
/**
* Sets time domain to use for collecting and reporting duration metrics. Note that this must be
* called before enabling metrics collection. Calling this method while metrics collection is
* enabled returns an error.
*
* @param timeDomain Time domain
*/
@Deprecated
@Experimental
void setTimeDomain(@ParamName("timeDomain") SetTimeDomainTimeDomain timeDomain);
/** Retrieve current values of run-time metrics. */
@Returns("metrics")
@ReturnTypeParameter(Metric.class)
List<Metric> getMetrics();
/** Current values of the metrics. */
@EventName("metrics")
EventListener onMetrics(EventHandler<Metrics> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/PerformanceTimeline.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.performancetimeline.TimelineEventAdded;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.EventName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ParamName;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import java.util.List;
/**
* Reporting of performance timeline events, as specified in
* https://w3c.github.io/performance-timeline/#dom-performanceobserver.
*/
@Experimental
public interface PerformanceTimeline {
/**
* Previously buffered events would be reported before method returns. See also:
* timelineEventAdded
*
* @param eventTypes The types of event to report, as specified in
* https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype The specified
* filter overrides any previous filters, passing empty filter disables recording. Note that
* not all types exposed to the web platform are currently supported.
*/
void enable(@ParamName("eventTypes") List<String> eventTypes);
/** Sent when a performance timeline event is added. See reportPerformanceTimeline method. */
@EventName("timelineEventAdded")
EventListener onTimelineEventAdded(EventHandler<TimelineEventAdded> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Preload.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.preload.*;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.EventName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
@Experimental
public interface Preload {
void enable();
void disable();
/** Upsert. Currently, it is only emitted when a rule set added. */
@EventName("ruleSetUpdated")
EventListener onRuleSetUpdated(EventHandler<RuleSetUpdated> eventListener);
@EventName("ruleSetRemoved")
EventListener onRuleSetRemoved(EventHandler<RuleSetRemoved> eventListener);
/** Fired when a prerender attempt is completed. */
@EventName("prerenderAttemptCompleted")
EventListener onPrerenderAttemptCompleted(EventHandler<PrerenderAttemptCompleted> eventListener);
/** Fired when a preload enabled state is updated. */
@EventName("preloadEnabledStateUpdated")
EventListener onPreloadEnabledStateUpdated(
EventHandler<PreloadEnabledStateUpdated> eventListener);
/** Fired when a prefetch attempt is updated. */
@EventName("prefetchStatusUpdated")
EventListener onPrefetchStatusUpdated(EventHandler<PrefetchStatusUpdated> eventListener);
/** Fired when a prerender attempt is updated. */
@EventName("prerenderStatusUpdated")
EventListener onPrerenderStatusUpdated(EventHandler<PrerenderStatusUpdated> eventListener);
/** Send a list of sources for all preloading attempts in a document. */
@EventName("preloadingAttemptSourcesUpdated")
EventListener onPreloadingAttemptSourcesUpdated(
EventHandler<PreloadingAttemptSourcesUpdated> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Profiler.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.profiler.ConsoleProfileFinished;
import com.github.kklisura.cdt.protocol.v2023.events.profiler.ConsoleProfileStarted;
import com.github.kklisura.cdt.protocol.v2023.events.profiler.PreciseCoverageDeltaUpdate;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.*;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.profiler.Profile;
import com.github.kklisura.cdt.protocol.v2023.types.profiler.ScriptCoverage;
import com.github.kklisura.cdt.protocol.v2023.types.profiler.TakePreciseCoverage;
import java.util.List;
public interface Profiler {
void disable();
void enable();
/**
* Collect coverage data for the current isolate. The coverage data may be incomplete due to
* garbage collection.
*/
@Returns("result")
@ReturnTypeParameter(ScriptCoverage.class)
List<ScriptCoverage> getBestEffortCoverage();
/**
* Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
*
* @param interval New sampling interval in microseconds.
*/
void setSamplingInterval(@ParamName("interval") Integer interval);
void start();
/**
* Enable precise code coverage. Coverage data for JavaScript executed before enabling precise
* code coverage may be incomplete. Enabling prevents running optimized code and resets execution
* counters.
*/
@Returns("timestamp")
Double startPreciseCoverage();
/**
* Enable precise code coverage. Coverage data for JavaScript executed before enabling precise
* code coverage may be incomplete. Enabling prevents running optimized code and resets execution
* counters.
*
* @param callCount Collect accurate call counts beyond simple 'covered' or 'not covered'.
* @param detailed Collect block-based coverage.
* @param allowTriggeredUpdates Allow the backend to send updates on its own initiative
*/
@Returns("timestamp")
Double startPreciseCoverage(
@Optional @ParamName("callCount") Boolean callCount,
@Optional @ParamName("detailed") Boolean detailed,
@Optional @ParamName("allowTriggeredUpdates") Boolean allowTriggeredUpdates);
@Returns("profile")
Profile stop();
/**
* Disable precise code coverage. Disabling releases unnecessary execution count records and
* allows executing optimized code.
*/
void stopPreciseCoverage();
/**
* Collect coverage data for the current isolate, and resets execution counters. Precise code
* coverage needs to have started.
*/
TakePreciseCoverage takePreciseCoverage();
@EventName("consoleProfileFinished")
EventListener onConsoleProfileFinished(EventHandler<ConsoleProfileFinished> eventListener);
/** Sent when new profile recording is started using console.profile() call. */
@EventName("consoleProfileStarted")
EventListener onConsoleProfileStarted(EventHandler<ConsoleProfileStarted> eventListener);
/**
* Reports coverage delta since the last poll (either from an event like this, or from
* `takePreciseCoverage` for the current isolate. May only be sent if precise code coverage has
* been started. This event can be trigged by the embedder to, for example, trigger collection of
* coverage data immediately at a certain point in time.
*/
@EventName("preciseCoverageDeltaUpdate")
@Experimental
EventListener onPreciseCoverageDeltaUpdate(
EventHandler<PreciseCoverageDeltaUpdate> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Runtime.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.runtime.*;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.*;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.runtime.*;
import java.util.List;
/**
* Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects.
* Evaluation results are returned as mirror object that expose object type, string representation
* and unique identifier that can be used for further object reference. Original objects are
* maintained in memory unless they are either explicitly released or are released along with the
* other objects in their object group.
*/
public interface Runtime {
/**
* Add handler to promise with given promise object id.
*
* @param promiseObjectId Identifier of the promise.
*/
AwaitPromise awaitPromise(@ParamName("promiseObjectId") String promiseObjectId);
/**
* Add handler to promise with given promise object id.
*
* @param promiseObjectId Identifier of the promise.
* @param returnByValue Whether the result is expected to be a JSON object that should be sent by
* value.
* @param generatePreview Whether preview should be generated for the result.
*/
AwaitPromise awaitPromise(
@ParamName("promiseObjectId") String promiseObjectId,
@Optional @ParamName("returnByValue") Boolean returnByValue,
@Optional @ParamName("generatePreview") Boolean generatePreview);
/**
* Calls function with given declaration on the given object. Object group of the result is
* inherited from the target object.
*
* @param functionDeclaration Declaration of the function to call.
*/
CallFunctionOn callFunctionOn(@ParamName("functionDeclaration") String functionDeclaration);
/**
* Calls function with given declaration on the given object. Object group of the result is
* inherited from the target object.
*
* @param functionDeclaration Declaration of the function to call.
* @param objectId Identifier of the object to call function on. Either objectId or
* executionContextId should be specified.
* @param arguments Call arguments. All call arguments must belong to the same JavaScript world as
* the target object.
* @param silent In silent mode exceptions thrown during evaluation are not reported and do not
* pause execution. Overrides `setPauseOnException` state.
* @param returnByValue Whether the result is expected to be a JSON object which should be sent by
* value. Can be overriden by `serializationOptions`.
* @param generatePreview Whether preview should be generated for the result.
* @param userGesture Whether execution should be treated as initiated by user in the UI.
* @param awaitPromise Whether execution should `await` for resulting value and return once
* awaited promise is resolved.
* @param executionContextId Specifies execution context which global object will be used to call
* function on. Either executionContextId or objectId should be specified.
* @param objectGroup Symbolic group name that can be used to release multiple objects. If
* objectGroup is not specified and objectId is, objectGroup will be inherited from object.
* @param throwOnSideEffect Whether to throw an exception if side effect cannot be ruled out
* during evaluation.
* @param uniqueContextId An alternative way to specify the execution context to call function on.
* Compared to contextId that may be reused across processes, this is guaranteed to be
* system-unique, so it can be used to prevent accidental function call in context different
* than intended (e.g. as a result of navigation across process boundaries). This is mutually
* exclusive with `executionContextId`.
* @param generateWebDriverValue Deprecated. Use `serializationOptions: {serialization:"deep"}`
* instead. Whether the result should contain `webDriverValue`, serialized according to
* https://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but
* resulting `objectId` is still provided.
* @param serializationOptions Specifies the result serialization. If provided, overrides
* `generatePreview`, `returnByValue` and `generateWebDriverValue`.
*/
CallFunctionOn callFunctionOn(
@ParamName("functionDeclaration") String functionDeclaration,
@Optional @ParamName("objectId") String objectId,
@Optional @ParamName("arguments") List<CallArgument> arguments,
@Optional @ParamName("silent") Boolean silent,
@Optional @ParamName("returnByValue") Boolean returnByValue,
@Experimental @Optional @ParamName("generatePreview") Boolean generatePreview,
@Optional @ParamName("userGesture") Boolean userGesture,
@Optional @ParamName("awaitPromise") Boolean awaitPromise,
@Optional @ParamName("executionContextId") Integer executionContextId,
@Optional @ParamName("objectGroup") String objectGroup,
@Experimental @Optional @ParamName("throwOnSideEffect") Boolean throwOnSideEffect,
@Experimental @Optional @ParamName("uniqueContextId") String uniqueContextId,
@Deprecated @Optional @ParamName("generateWebDriverValue") Boolean generateWebDriverValue,
@Experimental @Optional @ParamName("serializationOptions")
SerializationOptions serializationOptions);
/**
* Compiles expression.
*
* @param expression Expression to compile.
* @param sourceURL Source url to be set for the script.
* @param persistScript Specifies whether the compiled script should be persisted.
*/
CompileScript compileScript(
@ParamName("expression") String expression,
@ParamName("sourceURL") String sourceURL,
@ParamName("persistScript") Boolean persistScript);
/**
* Compiles expression.
*
* @param expression Expression to compile.
* @param sourceURL Source url to be set for the script.
* @param persistScript Specifies whether the compiled script should be persisted.
* @param executionContextId Specifies in which execution context to perform script run. If the
* parameter is omitted the evaluation will be performed in the context of the inspected page.
*/
CompileScript compileScript(
@ParamName("expression") String expression,
@ParamName("sourceURL") String sourceURL,
@ParamName("persistScript") Boolean persistScript,
@Optional @ParamName("executionContextId") Integer executionContextId);
/** Disables reporting of execution contexts creation. */
void disable();
/** Discards collected exceptions and console API calls. */
void discardConsoleEntries();
/**
* Enables reporting of execution contexts creation by means of `executionContextCreated` event.
* When the reporting gets enabled the event will be sent immediately for each existing execution
* context.
*/
void enable();
/**
* Evaluates expression on global object.
*
* @param expression Expression to evaluate.
*/
Evaluate evaluate(@ParamName("expression") String expression);
/**
* Evaluates expression on global object.
*
* @param expression Expression to evaluate.
* @param objectGroup Symbolic group name that can be used to release multiple objects.
* @param includeCommandLineAPI Determines whether Command Line API should be available during the
* evaluation.
* @param silent In silent mode exceptions thrown during evaluation are not reported and do not
* pause execution. Overrides `setPauseOnException` state.
* @param contextId Specifies in which execution context to perform evaluation. If the parameter
* is omitted the evaluation will be performed in the context of the inspected page. This is
* mutually exclusive with `uniqueContextId`, which offers an alternative way to identify the
* execution context that is more reliable in a multi-process environment.
* @param returnByValue Whether the result is expected to be a JSON object that should be sent by
* value.
* @param generatePreview Whether preview should be generated for the result.
* @param userGesture Whether execution should be treated as initiated by user in the UI.
* @param awaitPromise Whether execution should `await` for resulting value and return once
* awaited promise is resolved.
* @param throwOnSideEffect Whether to throw an exception if side effect cannot be ruled out
* during evaluation. This implies `disableBreaks` below.
* @param timeout Terminate execution after timing out (number of milliseconds).
* @param disableBreaks Disable breakpoints during execution.
* @param replMode Setting this flag to true enables `let` re-declaration and top-level `await`.
* Note that `let` variables can only be re-declared if they originate from `replMode`
* themselves.
* @param allowUnsafeEvalBlockedByCSP The Content Security Policy (CSP) for the target might block
* 'unsafe-eval' which includes eval(), Function(), setTimeout() and setInterval() when called
* with non-callable arguments. This flag bypasses CSP for this evaluation and allows
* unsafe-eval. Defaults to true.
* @param uniqueContextId An alternative way to specify the execution context to evaluate in.
* Compared to contextId that may be reused across processes, this is guaranteed to be
* system-unique, so it can be used to prevent accidental evaluation of the expression in
* context different than intended (e.g. as a result of navigation across process boundaries).
* This is mutually exclusive with `contextId`.
* @param generateWebDriverValue Deprecated. Use `serializationOptions: {serialization:"deep"}`
* instead. Whether the result should contain `webDriverValue`, serialized according to
* https://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but
* resulting `objectId` is still provided.
* @param serializationOptions Specifies the result serialization. If provided, overrides
* `generatePreview`, `returnByValue` and `generateWebDriverValue`.
*/
Evaluate evaluate(
@ParamName("expression") String expression,
@Optional @ParamName("objectGroup") String objectGroup,
@Optional @ParamName("includeCommandLineAPI") Boolean includeCommandLineAPI,
@Optional @ParamName("silent") Boolean silent,
@Optional @ParamName("contextId") Integer contextId,
@Optional @ParamName("returnByValue") Boolean returnByValue,
@Experimental @Optional @ParamName("generatePreview") Boolean generatePreview,
@Optional @ParamName("userGesture") Boolean userGesture,
@Optional @ParamName("awaitPromise") Boolean awaitPromise,
@Experimental @Optional @ParamName("throwOnSideEffect") Boolean throwOnSideEffect,
@Experimental @Optional @ParamName("timeout") Double timeout,
@Experimental @Optional @ParamName("disableBreaks") Boolean disableBreaks,
@Experimental @Optional @ParamName("replMode") Boolean replMode,
@Experimental @Optional @ParamName("allowUnsafeEvalBlockedByCSP")
Boolean allowUnsafeEvalBlockedByCSP,
@Experimental @Optional @ParamName("uniqueContextId") String uniqueContextId,
@Deprecated @Optional @ParamName("generateWebDriverValue") Boolean generateWebDriverValue,
@Experimental @Optional @ParamName("serializationOptions")
SerializationOptions serializationOptions);
/** Returns the isolate id. */
@Experimental
@Returns("id")
String getIsolateId();
/**
* Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not
* scoped to a particular Runtime.
*/
@Experimental
HeapUsage getHeapUsage();
/**
* Returns properties of a given object. Object group of the result is inherited from the target
* object.
*
* @param objectId Identifier of the object to return properties for.
*/
Properties getProperties(@ParamName("objectId") String objectId);
/**
* Returns properties of a given object. Object group of the result is inherited from the target
* object.
*
* @param objectId Identifier of the object to return properties for.
* @param ownProperties If true, returns properties belonging only to the element itself, not to
* its prototype chain.
* @param accessorPropertiesOnly If true, returns accessor properties (with getter/setter) only;
* internal properties are not returned either.
* @param generatePreview Whether preview should be generated for the results.
* @param nonIndexedPropertiesOnly If true, returns non-indexed properties only.
*/
Properties getProperties(
@ParamName("objectId") String objectId,
@Optional @ParamName("ownProperties") Boolean ownProperties,
@Experimental @Optional @ParamName("accessorPropertiesOnly") Boolean accessorPropertiesOnly,
@Experimental @Optional @ParamName("generatePreview") Boolean generatePreview,
@Experimental @Optional @ParamName("nonIndexedPropertiesOnly")
Boolean nonIndexedPropertiesOnly);
/** Returns all let, const and class variables from global scope. */
@Returns("names")
@ReturnTypeParameter(String.class)
List<String> globalLexicalScopeNames();
/**
* Returns all let, const and class variables from global scope.
*
* @param executionContextId Specifies in which execution context to lookup global scope
* variables.
*/
@Returns("names")
@ReturnTypeParameter(String.class)
List<String> globalLexicalScopeNames(
@Optional @ParamName("executionContextId") Integer executionContextId);
/** @param prototypeObjectId Identifier of the prototype to return objects for. */
@Returns("objects")
RemoteObject queryObjects(@ParamName("prototypeObjectId") String prototypeObjectId);
/**
* @param prototypeObjectId Identifier of the prototype to return objects for.
* @param objectGroup Symbolic group name that can be used to release the results.
*/
@Returns("objects")
RemoteObject queryObjects(
@ParamName("prototypeObjectId") String prototypeObjectId,
@Optional @ParamName("objectGroup") String objectGroup);
/**
* Releases remote object with given id.
*
* @param objectId Identifier of the object to release.
*/
void releaseObject(@ParamName("objectId") String objectId);
/**
* Releases all remote objects that belong to a given group.
*
* @param objectGroup Symbolic object group name.
*/
void releaseObjectGroup(@ParamName("objectGroup") String objectGroup);
/** Tells inspected instance to run if it was waiting for debugger to attach. */
void runIfWaitingForDebugger();
/**
* Runs script with given id in a given context.
*
* @param scriptId Id of the script to run.
*/
RunScript runScript(@ParamName("scriptId") String scriptId);
/**
* Runs script with given id in a given context.
*
* @param scriptId Id of the script to run.
* @param executionContextId Specifies in which execution context to perform script run. If the
* parameter is omitted the evaluation will be performed in the context of the inspected page.
* @param objectGroup Symbolic group name that can be used to release multiple objects.
* @param silent In silent mode exceptions thrown during evaluation are not reported and do not
* pause execution. Overrides `setPauseOnException` state.
* @param includeCommandLineAPI Determines whether Command Line API should be available during the
* evaluation.
* @param returnByValue Whether the result is expected to be a JSON object which should be sent by
* value.
* @param generatePreview Whether preview should be generated for the result.
* @param awaitPromise Whether execution should `await` for resulting value and return once
* awaited promise is resolved.
*/
RunScript runScript(
@ParamName("scriptId") String scriptId,
@Optional @ParamName("executionContextId") Integer executionContextId,
@Optional @ParamName("objectGroup") String objectGroup,
@Optional @ParamName("silent") Boolean silent,
@Optional @ParamName("includeCommandLineAPI") Boolean includeCommandLineAPI,
@Optional @ParamName("returnByValue") Boolean returnByValue,
@Optional @ParamName("generatePreview") Boolean generatePreview,
@Optional @ParamName("awaitPromise") Boolean awaitPromise);
/** @param enabled */
@Experimental
void setCustomObjectFormatterEnabled(@ParamName("enabled") Boolean enabled);
/** @param size */
@Experimental
void setMaxCallStackSizeToCapture(@ParamName("size") Integer size);
/**
* Terminate current or next JavaScript execution. Will cancel the termination when the outer-most
* script execution ends.
*/
@Experimental
void terminateExecution();
/**
* If executionContextId is empty, adds binding with the given name on the global objects of all
* inspected contexts, including those created later, bindings survive reloads. Binding function
* takes exactly one argument, this argument should be string, in case of any other input,
* function throws an exception. Each binding function call produces Runtime.bindingCalled
* notification.
*
* @param name
*/
@Experimental
void addBinding(@ParamName("name") String name);
/**
* If executionContextId is empty, adds binding with the given name on the global objects of all
* inspected contexts, including those created later, bindings survive reloads. Binding function
* takes exactly one argument, this argument should be string, in case of any other input,
* function throws an exception. Each binding function call produces Runtime.bindingCalled
* notification.
*
* @param name
* @param executionContextId If specified, the binding would only be exposed to the specified
* execution context. If omitted and `executionContextName` is not set, the binding is exposed
* to all execution contexts of the target. This parameter is mutually exclusive with
* `executionContextName`. Deprecated in favor of `executionContextName` due to an unclear use
* case and bugs in implementation (crbug.com/1169639). `executionContextId` will be removed
* in the future.
* @param executionContextName If specified, the binding is exposed to the executionContext with
* matching name, even for contexts created after the binding is added. See also
* `ExecutionContext.name` and `worldName` parameter to
* `Page.addScriptToEvaluateOnNewDocument`. This parameter is mutually exclusive with
* `executionContextId`.
*/
@Experimental
void addBinding(
@ParamName("name") String name,
@Deprecated @Optional @ParamName("executionContextId") Integer executionContextId,
@Experimental @Optional @ParamName("executionContextName") String executionContextName);
/**
* This method does not remove binding function from global object but unsubscribes current
* runtime agent from Runtime.bindingCalled notifications.
*
* @param name
*/
@Experimental
void removeBinding(@ParamName("name") String name);
/**
* This method tries to lookup and populate exception details for a JavaScript Error object. Note
* that the stackTrace portion of the resulting exceptionDetails will only be populated if the
* Runtime domain was enabled at the time when the Error was thrown.
*
* @param errorObjectId The error object for which to resolve the exception details.
*/
@Experimental
@Returns("exceptionDetails")
ExceptionDetails getExceptionDetails(@ParamName("errorObjectId") String errorObjectId);
/** Notification is issued every time when binding is called. */
@EventName("bindingCalled")
@Experimental
EventListener onBindingCalled(EventHandler<BindingCalled> eventListener);
/** Issued when console API was called. */
@EventName("consoleAPICalled")
EventListener onConsoleAPICalled(EventHandler<ConsoleAPICalled> eventListener);
/** Issued when unhandled exception was revoked. */
@EventName("exceptionRevoked")
EventListener onExceptionRevoked(EventHandler<ExceptionRevoked> eventListener);
/** Issued when exception was thrown and unhandled. */
@EventName("exceptionThrown")
EventListener onExceptionThrown(EventHandler<ExceptionThrown> eventListener);
/** Issued when new execution context is created. */
@EventName("executionContextCreated")
EventListener onExecutionContextCreated(EventHandler<ExecutionContextCreated> eventListener);
/** Issued when execution context is destroyed. */
@EventName("executionContextDestroyed")
EventListener onExecutionContextDestroyed(EventHandler<ExecutionContextDestroyed> eventListener);
/** Issued when all executionContexts were cleared in browser */
@EventName("executionContextsCleared")
EventListener onExecutionContextsCleared(EventHandler<ExecutionContextsCleared> eventListener);
/**
* Issued when object should be inspected (for example, as a result of inspect() command line API
* call).
*/
@EventName("inspectRequested")
EventListener onInspectRequested(EventHandler<InspectRequested> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Schema.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ReturnTypeParameter;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Returns;
import com.github.kklisura.cdt.protocol.v2023.types.schema.Domain;
import java.util.List;
/** This domain is deprecated. */
@Deprecated
public interface Schema {
/** Returns supported domains. */
@Returns("domains")
@ReturnTypeParameter(Domain.class)
List<Domain> getDomains();
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Security.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.security.CertificateError;
import com.github.kklisura.cdt.protocol.v2023.events.security.SecurityStateChanged;
import com.github.kklisura.cdt.protocol.v2023.events.security.VisibleSecurityStateChanged;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.EventName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ParamName;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.security.CertificateErrorAction;
/** Security */
public interface Security {
/** Disables tracking security state changes. */
void disable();
/** Enables tracking security state changes. */
void enable();
/**
* Enable/disable whether all certificate errors should be ignored.
*
* @param ignore If true, all certificate errors will be ignored.
*/
@Experimental
void setIgnoreCertificateErrors(@ParamName("ignore") Boolean ignore);
/**
* Handles a certificate error that fired a certificateError event.
*
* @param eventId The ID of the event.
* @param action The action to take on the certificate error.
*/
@Deprecated
void handleCertificateError(
@ParamName("eventId") Integer eventId, @ParamName("action") CertificateErrorAction action);
/**
* Enable/disable overriding certificate errors. If enabled, all certificate error events need to
* be handled by the DevTools client and should be answered with `handleCertificateError`
* commands.
*
* @param override If true, certificate errors will be overridden.
*/
@Deprecated
void setOverrideCertificateErrors(@ParamName("override") Boolean override);
/**
* There is a certificate error. If overriding certificate errors is enabled, then it should be
* handled with the `handleCertificateError` command. Note: this event does not fire if the
* certificate error has been allowed internally. Only one client per target should override
* certificate errors at the same time.
*/
@EventName("certificateError")
@Deprecated
EventListener onCertificateError(EventHandler<CertificateError> eventListener);
/** The security state of the page changed. */
@EventName("visibleSecurityStateChanged")
@Experimental
EventListener onVisibleSecurityStateChanged(
EventHandler<VisibleSecurityStateChanged> eventListener);
/** The security state of the page changed. No longer being sent. */
@EventName("securityStateChanged")
@Deprecated
EventListener onSecurityStateChanged(EventHandler<SecurityStateChanged> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/ServiceWorker.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.serviceworker.WorkerErrorReported;
import com.github.kklisura.cdt.protocol.v2023.events.serviceworker.WorkerRegistrationUpdated;
import com.github.kklisura.cdt.protocol.v2023.events.serviceworker.WorkerVersionUpdated;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.EventName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ParamName;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
@Experimental
public interface ServiceWorker {
/**
* @param origin
* @param registrationId
* @param data
*/
void deliverPushMessage(
@ParamName("origin") String origin,
@ParamName("registrationId") String registrationId,
@ParamName("data") String data);
void disable();
/**
* @param origin
* @param registrationId
* @param tag
* @param lastChance
*/
void dispatchSyncEvent(
@ParamName("origin") String origin,
@ParamName("registrationId") String registrationId,
@ParamName("tag") String tag,
@ParamName("lastChance") Boolean lastChance);
/**
* @param origin
* @param registrationId
* @param tag
*/
void dispatchPeriodicSyncEvent(
@ParamName("origin") String origin,
@ParamName("registrationId") String registrationId,
@ParamName("tag") String tag);
void enable();
/** @param versionId */
void inspectWorker(@ParamName("versionId") String versionId);
/** @param forceUpdateOnPageLoad */
void setForceUpdateOnPageLoad(@ParamName("forceUpdateOnPageLoad") Boolean forceUpdateOnPageLoad);
/** @param scopeURL */
void skipWaiting(@ParamName("scopeURL") String scopeURL);
/** @param scopeURL */
void startWorker(@ParamName("scopeURL") String scopeURL);
void stopAllWorkers();
/** @param versionId */
void stopWorker(@ParamName("versionId") String versionId);
/** @param scopeURL */
void unregister(@ParamName("scopeURL") String scopeURL);
/** @param scopeURL */
void updateRegistration(@ParamName("scopeURL") String scopeURL);
@EventName("workerErrorReported")
EventListener onWorkerErrorReported(EventHandler<WorkerErrorReported> eventListener);
@EventName("workerRegistrationUpdated")
EventListener onWorkerRegistrationUpdated(EventHandler<WorkerRegistrationUpdated> eventListener);
@EventName("workerVersionUpdated")
EventListener onWorkerVersionUpdated(EventHandler<WorkerVersionUpdated> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Storage.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.storage.*;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.*;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.network.Cookie;
import com.github.kklisura.cdt.protocol.v2023.types.network.CookieParam;
import com.github.kklisura.cdt.protocol.v2023.types.storage.*;
import java.util.List;
@Experimental
public interface Storage {
/**
* Returns a storage key given a frame id.
*
* @param frameId
*/
@Returns("storageKey")
String getStorageKeyForFrame(@ParamName("frameId") String frameId);
/**
* Clears storage for origin.
*
* @param origin Security origin.
* @param storageTypes Comma separated list of StorageType to clear.
*/
void clearDataForOrigin(
@ParamName("origin") String origin, @ParamName("storageTypes") String storageTypes);
/**
* Clears storage for storage key.
*
* @param storageKey Storage key.
* @param storageTypes Comma separated list of StorageType to clear.
*/
void clearDataForStorageKey(
@ParamName("storageKey") String storageKey, @ParamName("storageTypes") String storageTypes);
/** Returns all browser cookies. */
@Returns("cookies")
@ReturnTypeParameter(Cookie.class)
List<Cookie> getCookies();
/**
* Returns all browser cookies.
*
* @param browserContextId Browser context to use when called on the browser endpoint.
*/
@Returns("cookies")
@ReturnTypeParameter(Cookie.class)
List<Cookie> getCookies(@Optional @ParamName("browserContextId") String browserContextId);
/**
* Sets given cookies.
*
* @param cookies Cookies to be set.
*/
void setCookies(@ParamName("cookies") List<CookieParam> cookies);
/**
* Sets given cookies.
*
* @param cookies Cookies to be set.
* @param browserContextId Browser context to use when called on the browser endpoint.
*/
void setCookies(
@ParamName("cookies") List<CookieParam> cookies,
@Optional @ParamName("browserContextId") String browserContextId);
/** Clears cookies. */
void clearCookies();
/**
* Clears cookies.
*
* @param browserContextId Browser context to use when called on the browser endpoint.
*/
void clearCookies(@Optional @ParamName("browserContextId") String browserContextId);
/**
* Returns usage and quota in bytes.
*
* @param origin Security origin.
*/
UsageAndQuota getUsageAndQuota(@ParamName("origin") String origin);
/**
* Override quota for the specified origin
*
* @param origin Security origin.
*/
@Experimental
void overrideQuotaForOrigin(@ParamName("origin") String origin);
/**
* Override quota for the specified origin
*
* @param origin Security origin.
* @param quotaSize The quota size (in bytes) to override the original quota with. If this is
* called multiple times, the overridden quota will be equal to the quotaSize provided in the
* final call. If this is called without specifying a quotaSize, the quota will be reset to
* the default value for the specified origin. If this is called multiple times with different
* origins, the override will be maintained for each origin until it is disabled (called
* without a quotaSize).
*/
@Experimental
void overrideQuotaForOrigin(
@ParamName("origin") String origin, @Optional @ParamName("quotaSize") Double quotaSize);
/**
* Registers origin to be notified when an update occurs to its cache storage list.
*
* @param origin Security origin.
*/
void trackCacheStorageForOrigin(@ParamName("origin") String origin);
/**
* Registers storage key to be notified when an update occurs to its cache storage list.
*
* @param storageKey Storage key.
*/
void trackCacheStorageForStorageKey(@ParamName("storageKey") String storageKey);
/**
* Registers origin to be notified when an update occurs to its IndexedDB.
*
* @param origin Security origin.
*/
void trackIndexedDBForOrigin(@ParamName("origin") String origin);
/**
* Registers storage key to be notified when an update occurs to its IndexedDB.
*
* @param storageKey Storage key.
*/
void trackIndexedDBForStorageKey(@ParamName("storageKey") String storageKey);
/**
* Unregisters origin from receiving notifications for cache storage.
*
* @param origin Security origin.
*/
void untrackCacheStorageForOrigin(@ParamName("origin") String origin);
/**
* Unregisters storage key from receiving notifications for cache storage.
*
* @param storageKey Storage key.
*/
void untrackCacheStorageForStorageKey(@ParamName("storageKey") String storageKey);
/**
* Unregisters origin from receiving notifications for IndexedDB.
*
* @param origin Security origin.
*/
void untrackIndexedDBForOrigin(@ParamName("origin") String origin);
/**
* Unregisters storage key from receiving notifications for IndexedDB.
*
* @param storageKey Storage key.
*/
void untrackIndexedDBForStorageKey(@ParamName("storageKey") String storageKey);
/** Returns the number of stored Trust Tokens per issuer for the current browsing context. */
@Experimental
@Returns("tokens")
@ReturnTypeParameter(TrustTokens.class)
List<TrustTokens> getTrustTokens();
/**
* Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data,
* including the issuer's Redemption Records, intact.
*
* @param issuerOrigin
*/
@Experimental
@Returns("didDeleteTokens")
Boolean clearTrustTokens(@ParamName("issuerOrigin") String issuerOrigin);
/**
* Gets details for a named interest group.
*
* @param ownerOrigin
* @param name
*/
@Experimental
@Returns("details")
InterestGroupDetails getInterestGroupDetails(
@ParamName("ownerOrigin") String ownerOrigin, @ParamName("name") String name);
/**
* Enables/Disables issuing of interestGroupAccessed events.
*
* @param enable
*/
@Experimental
void setInterestGroupTracking(@ParamName("enable") Boolean enable);
/**
* Gets metadata for an origin's shared storage.
*
* @param ownerOrigin
*/
@Experimental
@Returns("metadata")
SharedStorageMetadata getSharedStorageMetadata(@ParamName("ownerOrigin") String ownerOrigin);
/**
* Gets the entries in an given origin's shared storage.
*
* @param ownerOrigin
*/
@Experimental
@Returns("entries")
@ReturnTypeParameter(SharedStorageEntry.class)
List<SharedStorageEntry> getSharedStorageEntries(@ParamName("ownerOrigin") String ownerOrigin);
/**
* Sets entry with `key` and `value` for a given origin's shared storage.
*
* @param ownerOrigin
* @param key
* @param value
*/
@Experimental
void setSharedStorageEntry(
@ParamName("ownerOrigin") String ownerOrigin,
@ParamName("key") String key,
@ParamName("value") String value);
/**
* Sets entry with `key` and `value` for a given origin's shared storage.
*
* @param ownerOrigin
* @param key
* @param value
* @param ignoreIfPresent If `ignoreIfPresent` is included and true, then only sets the entry if
* `key` doesn't already exist.
*/
@Experimental
void setSharedStorageEntry(
@ParamName("ownerOrigin") String ownerOrigin,
@ParamName("key") String key,
@ParamName("value") String value,
@Optional @ParamName("ignoreIfPresent") Boolean ignoreIfPresent);
/**
* Deletes entry for `key` (if it exists) for a given origin's shared storage.
*
* @param ownerOrigin
* @param key
*/
@Experimental
void deleteSharedStorageEntry(
@ParamName("ownerOrigin") String ownerOrigin, @ParamName("key") String key);
/**
* Clears all entries for a given origin's shared storage.
*
* @param ownerOrigin
*/
@Experimental
void clearSharedStorageEntries(@ParamName("ownerOrigin") String ownerOrigin);
/**
* Resets the budget for `ownerOrigin` by clearing all budget withdrawals.
*
* @param ownerOrigin
*/
@Experimental
void resetSharedStorageBudget(@ParamName("ownerOrigin") String ownerOrigin);
/**
* Enables/disables issuing of sharedStorageAccessed events.
*
* @param enable
*/
@Experimental
void setSharedStorageTracking(@ParamName("enable") Boolean enable);
/**
* Set tracking for a storage key's buckets.
*
* @param storageKey
* @param enable
*/
@Experimental
void setStorageBucketTracking(
@ParamName("storageKey") String storageKey, @ParamName("enable") Boolean enable);
/**
* Deletes the Storage Bucket with the given storage key and bucket name.
*
* @param bucket
*/
@Experimental
void deleteStorageBucket(@ParamName("bucket") StorageBucket bucket);
/** Deletes state for sites identified as potential bounce trackers, immediately. */
@Experimental
@Returns("deletedSites")
@ReturnTypeParameter(String.class)
List<String> runBounceTrackingMitigations();
/**
* https://wicg.github.io/attribution-reporting-api/
*
* @param enabled If enabled, noise is suppressed and reports are sent immediately.
*/
@Experimental
void setAttributionReportingLocalTestingMode(@ParamName("enabled") Boolean enabled);
/**
* Enables/disables issuing of Attribution Reporting events.
*
* @param enable
*/
@Experimental
void setAttributionReportingTracking(@ParamName("enable") Boolean enable);
/** A cache's contents have been modified. */
@EventName("cacheStorageContentUpdated")
EventListener onCacheStorageContentUpdated(
EventHandler<CacheStorageContentUpdated> eventListener);
/** A cache has been added/deleted. */
@EventName("cacheStorageListUpdated")
EventListener onCacheStorageListUpdated(EventHandler<CacheStorageListUpdated> eventListener);
/** The origin's IndexedDB object store has been modified. */
@EventName("indexedDBContentUpdated")
EventListener onIndexedDBContentUpdated(EventHandler<IndexedDBContentUpdated> eventListener);
/** The origin's IndexedDB database list has been modified. */
@EventName("indexedDBListUpdated")
EventListener onIndexedDBListUpdated(EventHandler<IndexedDBListUpdated> eventListener);
/** One of the interest groups was accessed by the associated page. */
@EventName("interestGroupAccessed")
EventListener onInterestGroupAccessed(EventHandler<InterestGroupAccessed> eventListener);
/**
* Shared storage was accessed by the associated page. The following parameters are included in
* all events.
*/
@EventName("sharedStorageAccessed")
EventListener onSharedStorageAccessed(EventHandler<SharedStorageAccessed> eventListener);
@EventName("storageBucketCreatedOrUpdated")
EventListener onStorageBucketCreatedOrUpdated(
EventHandler<StorageBucketCreatedOrUpdated> eventListener);
@EventName("storageBucketDeleted")
EventListener onStorageBucketDeleted(EventHandler<StorageBucketDeleted> eventListener);
/** TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g. trigger registration. */
@EventName("attributionReportingSourceRegistered")
@Experimental
EventListener onAttributionReportingSourceRegistered(
EventHandler<AttributionReportingSourceRegistered> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/SystemInfo.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ParamName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ReturnTypeParameter;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Returns;
import com.github.kklisura.cdt.protocol.v2023.types.systeminfo.Info;
import com.github.kklisura.cdt.protocol.v2023.types.systeminfo.ProcessInfo;
import java.util.List;
/** The SystemInfo domain defines methods and events for querying low-level system information. */
@Experimental
public interface SystemInfo {
/** Returns information about the system. */
Info getInfo();
/**
* Returns information about the feature state.
*
* @param featureState
*/
@Returns("featureEnabled")
Boolean getFeatureState(@ParamName("featureState") String featureState);
/** Returns information about all running processes. */
@Returns("processInfo")
@ReturnTypeParameter(ProcessInfo.class)
List<ProcessInfo> getProcessInfo();
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Target.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.target.*;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.*;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.target.FilterEntry;
import com.github.kklisura.cdt.protocol.v2023.types.target.RemoteLocation;
import com.github.kklisura.cdt.protocol.v2023.types.target.TargetInfo;
import java.util.List;
/** Supports additional targets discovery and allows to attach to them. */
public interface Target {
/**
* Activates (focuses) the target.
*
* @param targetId
*/
void activateTarget(@ParamName("targetId") String targetId);
/**
* Attaches to the target with given id.
*
* @param targetId
*/
@Returns("sessionId")
String attachToTarget(@ParamName("targetId") String targetId);
/**
* Attaches to the target with given id.
*
* @param targetId
* @param flatten Enables "flat" access to the session via specifying sessionId attribute in the
* commands. We plan to make this the default, deprecate non-flattened mode, and eventually
* retire it. See crbug.com/991325.
*/
@Returns("sessionId")
String attachToTarget(
@ParamName("targetId") String targetId, @Optional @ParamName("flatten") Boolean flatten);
/** Attaches to the browser target, only uses flat sessionId mode. */
@Experimental
@Returns("sessionId")
String attachToBrowserTarget();
/**
* Closes the target. If the target is a page that gets closed too.
*
* @param targetId
*/
@Returns("success")
Boolean closeTarget(@ParamName("targetId") String targetId);
/**
* Inject object to the target's main frame that provides a communication channel with browser
* target.
*
* <p>Injected object will be available as `window[bindingName]`.
*
* <p>The object has the follwing API: - `binding.send(json)` - a method to send messages over the
* remote debugging protocol - `binding.onmessage = json => handleMessage(json)` - a callback that
* will be called for the protocol notifications and command responses.
*
* @param targetId
*/
@Experimental
void exposeDevToolsProtocol(@ParamName("targetId") String targetId);
/**
* Inject object to the target's main frame that provides a communication channel with browser
* target.
*
* <p>Injected object will be available as `window[bindingName]`.
*
* <p>The object has the follwing API: - `binding.send(json)` - a method to send messages over the
* remote debugging protocol - `binding.onmessage = json => handleMessage(json)` - a callback that
* will be called for the protocol notifications and command responses.
*
* @param targetId
* @param bindingName Binding name, 'cdp' if not specified.
*/
@Experimental
void exposeDevToolsProtocol(
@ParamName("targetId") String targetId,
@Optional @ParamName("bindingName") String bindingName);
/**
* Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than
* one.
*/
@Experimental
@Returns("browserContextId")
String createBrowserContext();
/**
* Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than
* one.
*
* @param disposeOnDetach If specified, disposes this context when debugging session disconnects.
* @param proxyServer Proxy server, similar to the one passed to --proxy-server
* @param proxyBypassList Proxy bypass list, similar to the one passed to --proxy-bypass-list
* @param originsWithUniversalNetworkAccess An optional list of origins to grant unlimited
* cross-origin access to. Parts of the URL other than those constituting origin are ignored.
*/
@Experimental
@Returns("browserContextId")
String createBrowserContext(
@Optional @ParamName("disposeOnDetach") Boolean disposeOnDetach,
@Optional @ParamName("proxyServer") String proxyServer,
@Optional @ParamName("proxyBypassList") String proxyBypassList,
@Optional @ParamName("originsWithUniversalNetworkAccess")
List<String> originsWithUniversalNetworkAccess);
/** Returns all browser contexts created with `Target.createBrowserContext` method. */
@Experimental
@Returns("browserContextIds")
@ReturnTypeParameter(String.class)
List<String> getBrowserContexts();
/**
* Creates a new page.
*
* @param url The initial URL the page will be navigated to. An empty string indicates
* about:blank.
*/
@Returns("targetId")
String createTarget(@ParamName("url") String url);
/**
* Creates a new page.
*
* @param url The initial URL the page will be navigated to. An empty string indicates
* about:blank.
* @param width Frame width in DIP (headless chrome only).
* @param height Frame height in DIP (headless chrome only).
* @param browserContextId The browser context to create the page in.
* @param enableBeginFrameControl Whether BeginFrames for this target will be controlled via
* DevTools (headless chrome only, not supported on MacOS yet, false by default).
* @param newWindow Whether to create a new Window or Tab (chrome-only, false by default).
* @param background Whether to create the target in background or foreground (chrome-only, false
* by default).
* @param forTab Whether to create the target of type "tab".
*/
@Returns("targetId")
String createTarget(
@ParamName("url") String url,
@Optional @ParamName("width") Integer width,
@Optional @ParamName("height") Integer height,
@Experimental @Optional @ParamName("browserContextId") String browserContextId,
@Experimental @Optional @ParamName("enableBeginFrameControl") Boolean enableBeginFrameControl,
@Optional @ParamName("newWindow") Boolean newWindow,
@Optional @ParamName("background") Boolean background,
@Experimental @Optional @ParamName("forTab") Boolean forTab);
/** Detaches session with given id. */
void detachFromTarget();
/**
* Detaches session with given id.
*
* @param sessionId Session to detach.
* @param targetId Deprecated.
*/
void detachFromTarget(
@Optional @ParamName("sessionId") String sessionId,
@Deprecated @Optional @ParamName("targetId") String targetId);
/**
* Deletes a BrowserContext. All the belonging pages will be closed without calling their
* beforeunload hooks.
*
* @param browserContextId
*/
@Experimental
void disposeBrowserContext(@ParamName("browserContextId") String browserContextId);
/** Returns information about a target. */
@Experimental
@Returns("targetInfo")
TargetInfo getTargetInfo();
/**
* Returns information about a target.
*
* @param targetId
*/
@Experimental
@Returns("targetInfo")
TargetInfo getTargetInfo(@Optional @ParamName("targetId") String targetId);
/** Retrieves a list of available targets. */
@Returns("targetInfos")
@ReturnTypeParameter(TargetInfo.class)
List<TargetInfo> getTargets();
/**
* Retrieves a list of available targets.
*
* @param filter Only targets matching filter will be reported. If filter is not specified and
* target discovery is currently enabled, a filter used for target discovery is used for
* consistency.
*/
@Returns("targetInfos")
@ReturnTypeParameter(TargetInfo.class)
List<TargetInfo> getTargets(
@Experimental @Optional @ParamName("filter") List<FilterEntry> filter);
/**
* Sends protocol message over session with given id. Consider using flat mode instead; see
* commands attachToTarget, setAutoAttach, and crbug.com/991325.
*
* @param message
*/
@Deprecated
void sendMessageToTarget(@ParamName("message") String message);
/**
* Sends protocol message over session with given id. Consider using flat mode instead; see
* commands attachToTarget, setAutoAttach, and crbug.com/991325.
*
* @param message
* @param sessionId Identifier of the session.
* @param targetId Deprecated.
*/
@Deprecated
void sendMessageToTarget(
@ParamName("message") String message,
@Optional @ParamName("sessionId") String sessionId,
@Deprecated @Optional @ParamName("targetId") String targetId);
/**
* Controls whether to automatically attach to new targets which are considered to be related to
* this one. When turned on, attaches to all existing related targets as well. When turned off,
* automatically detaches from all currently attached targets. This also clears all targets added
* by `autoAttachRelated` from the list of targets to watch for creation of related targets.
*
* @param autoAttach Whether to auto-attach to related targets.
* @param waitForDebuggerOnStart Whether to pause new targets when attaching to them. Use
* `Runtime.runIfWaitingForDebugger` to run paused targets.
*/
@Experimental
void setAutoAttach(
@ParamName("autoAttach") Boolean autoAttach,
@ParamName("waitForDebuggerOnStart") Boolean waitForDebuggerOnStart);
/**
* Controls whether to automatically attach to new targets which are considered to be related to
* this one. When turned on, attaches to all existing related targets as well. When turned off,
* automatically detaches from all currently attached targets. This also clears all targets added
* by `autoAttachRelated` from the list of targets to watch for creation of related targets.
*
* @param autoAttach Whether to auto-attach to related targets.
* @param waitForDebuggerOnStart Whether to pause new targets when attaching to them. Use
* `Runtime.runIfWaitingForDebugger` to run paused targets.
* @param flatten Enables "flat" access to the session via specifying sessionId attribute in the
* commands. We plan to make this the default, deprecate non-flattened mode, and eventually
* retire it. See crbug.com/991325.
* @param filter Only targets matching filter will be attached.
*/
@Experimental
void setAutoAttach(
@ParamName("autoAttach") Boolean autoAttach,
@ParamName("waitForDebuggerOnStart") Boolean waitForDebuggerOnStart,
@Optional @ParamName("flatten") Boolean flatten,
@Experimental @Optional @ParamName("filter") List<FilterEntry> filter);
/**
* Adds the specified target to the list of targets that will be monitored for any related target
* creation (such as child frames, child workers and new versions of service worker) and reported
* through `attachedToTarget`. The specified target is also auto-attached. This cancels the effect
* of any previous `setAutoAttach` and is also cancelled by subsequent `setAutoAttach`. Only
* available at the Browser target.
*
* @param targetId
* @param waitForDebuggerOnStart Whether to pause new targets when attaching to them. Use
* `Runtime.runIfWaitingForDebugger` to run paused targets.
*/
@Experimental
void autoAttachRelated(
@ParamName("targetId") String targetId,
@ParamName("waitForDebuggerOnStart") Boolean waitForDebuggerOnStart);
/**
* Adds the specified target to the list of targets that will be monitored for any related target
* creation (such as child frames, child workers and new versions of service worker) and reported
* through `attachedToTarget`. The specified target is also auto-attached. This cancels the effect
* of any previous `setAutoAttach` and is also cancelled by subsequent `setAutoAttach`. Only
* available at the Browser target.
*
* @param targetId
* @param waitForDebuggerOnStart Whether to pause new targets when attaching to them. Use
* `Runtime.runIfWaitingForDebugger` to run paused targets.
* @param filter Only targets matching filter will be attached.
*/
@Experimental
void autoAttachRelated(
@ParamName("targetId") String targetId,
@ParamName("waitForDebuggerOnStart") Boolean waitForDebuggerOnStart,
@Experimental @Optional @ParamName("filter") List<FilterEntry> filter);
/**
* Controls whether to discover available targets and notify via
* `targetCreated/targetInfoChanged/targetDestroyed` events.
*
* @param discover Whether to discover available targets.
*/
void setDiscoverTargets(@ParamName("discover") Boolean discover);
/**
* Controls whether to discover available targets and notify via
* `targetCreated/targetInfoChanged/targetDestroyed` events.
*
* @param discover Whether to discover available targets.
* @param filter Only targets matching filter will be attached. If `discover` is false, `filter`
* must be omitted or empty.
*/
void setDiscoverTargets(
@ParamName("discover") Boolean discover,
@Experimental @Optional @ParamName("filter") List<FilterEntry> filter);
/**
* Enables target discovery for the specified locations, when `setDiscoverTargets` was set to
* `true`.
*
* @param locations List of remote locations.
*/
@Experimental
void setRemoteLocations(@ParamName("locations") List<RemoteLocation> locations);
/** Issued when attached to target because of auto-attach or `attachToTarget` command. */
@EventName("attachedToTarget")
@Experimental
EventListener onAttachedToTarget(EventHandler<AttachedToTarget> eventListener);
/**
* Issued when detached from target for any reason (including `detachFromTarget` command). Can be
* issued multiple times per target if multiple sessions have been attached to it.
*/
@EventName("detachedFromTarget")
@Experimental
EventListener onDetachedFromTarget(EventHandler<DetachedFromTarget> eventListener);
/**
* Notifies about a new protocol message received from the session (as reported in
* `attachedToTarget` event).
*/
@EventName("receivedMessageFromTarget")
EventListener onReceivedMessageFromTarget(EventHandler<ReceivedMessageFromTarget> eventListener);
/** Issued when a possible inspection target is created. */
@EventName("targetCreated")
EventListener onTargetCreated(EventHandler<TargetCreated> eventListener);
/** Issued when a target is destroyed. */
@EventName("targetDestroyed")
EventListener onTargetDestroyed(EventHandler<TargetDestroyed> eventListener);
/** Issued when a target has crashed. */
@EventName("targetCrashed")
EventListener onTargetCrashed(EventHandler<TargetCrashed> eventListener);
/**
* Issued when some information about a target has changed. This only happens between
* `targetCreated` and `targetDestroyed`.
*/
@EventName("targetInfoChanged")
EventListener onTargetInfoChanged(EventHandler<TargetInfoChanged> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Tethering.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.tethering.Accepted;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.EventName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ParamName;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
/** The Tethering domain defines methods and events for browser port binding. */
@Experimental
public interface Tethering {
/**
* Request browser port binding.
*
* @param port Port number to bind.
*/
void bind(@ParamName("port") Integer port);
/**
* Request browser port unbinding.
*
* @param port Port number to unbind.
*/
void unbind(@ParamName("port") Integer port);
/** Informs that port was successfully bound and got a specified connection id. */
@EventName("accepted")
EventListener onAccepted(EventHandler<Accepted> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/Tracing.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.tracing.BufferUsage;
import com.github.kklisura.cdt.protocol.v2023.events.tracing.DataCollected;
import com.github.kklisura.cdt.protocol.v2023.events.tracing.TracingComplete;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.*;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.tracing.*;
import java.util.List;
@Experimental
public interface Tracing {
/** Stop trace events collection. */
void end();
/** Gets supported tracing categories. */
@Returns("categories")
@ReturnTypeParameter(String.class)
List<String> getCategories();
/**
* Record a clock sync marker in the trace.
*
* @param syncId The ID of this clock sync marker
*/
void recordClockSyncMarker(@ParamName("syncId") String syncId);
/** Request a global memory dump. */
RequestMemoryDump requestMemoryDump();
/**
* Request a global memory dump.
*
* @param deterministic Enables more deterministic results by forcing garbage collection
* @param levelOfDetail Specifies level of details in memory dump. Defaults to "detailed".
*/
RequestMemoryDump requestMemoryDump(
@Optional @ParamName("deterministic") Boolean deterministic,
@Optional @ParamName("levelOfDetail") MemoryDumpLevelOfDetail levelOfDetail);
/** Start trace events collection. */
void start();
/**
* Start trace events collection.
*
* @param categories Category/tag filter
* @param options Tracing options
* @param bufferUsageReportingInterval If set, the agent will issue bufferUsage events at this
* interval, specified in milliseconds
* @param transferMode Whether to report trace events as series of dataCollected events or to save
* trace to a stream (defaults to `ReportEvents`).
* @param streamFormat Trace data format to use. This only applies when using `ReturnAsStream`
* transfer mode (defaults to `json`).
* @param streamCompression Compression format to use. This only applies when using
* `ReturnAsStream` transfer mode (defaults to `none`)
* @param traceConfig
* @param perfettoConfig Base64-encoded serialized perfetto.protos.TraceConfig protobuf message
* When specified, the parameters `categories`, `options`, `traceConfig` are ignored. (Encoded
* as a base64 string when passed over JSON)
* @param tracingBackend Backend type (defaults to `auto`)
*/
void start(
@Deprecated @Optional @ParamName("categories") String categories,
@Deprecated @Optional @ParamName("options") String options,
@Optional @ParamName("bufferUsageReportingInterval") Double bufferUsageReportingInterval,
@Optional @ParamName("transferMode") StartTransferMode transferMode,
@Optional @ParamName("streamFormat") StreamFormat streamFormat,
@Optional @ParamName("streamCompression") StreamCompression streamCompression,
@Optional @ParamName("traceConfig") TraceConfig traceConfig,
@Optional @ParamName("perfettoConfig") String perfettoConfig,
@Optional @ParamName("tracingBackend") TracingBackend tracingBackend);
@EventName("bufferUsage")
EventListener onBufferUsage(EventHandler<BufferUsage> eventListener);
/**
* Contains a bucket of collected trace events. When tracing is stopped collected events will be
* sent as a sequence of dataCollected events followed by tracingComplete event.
*/
@EventName("dataCollected")
EventListener onDataCollected(EventHandler<DataCollected> eventListener);
/**
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
* delivered via dataCollected events.
*/
@EventName("tracingComplete")
EventListener onTracingComplete(EventHandler<TracingComplete> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/WebAudio.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.webaudio.*;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.EventName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.ParamName;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Returns;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.webaudio.ContextRealtimeData;
/** This domain allows inspection of Web Audio API. https://webaudio.github.io/web-audio-api/ */
@Experimental
public interface WebAudio {
/** Enables the WebAudio domain and starts sending context lifetime events. */
void enable();
/** Disables the WebAudio domain. */
void disable();
/**
* Fetch the realtime data from the registered contexts.
*
* @param contextId
*/
@Returns("realtimeData")
ContextRealtimeData getRealtimeData(@ParamName("contextId") String contextId);
/** Notifies that a new BaseAudioContext has been created. */
@EventName("contextCreated")
EventListener onContextCreated(EventHandler<ContextCreated> eventListener);
/** Notifies that an existing BaseAudioContext will be destroyed. */
@EventName("contextWillBeDestroyed")
EventListener onContextWillBeDestroyed(EventHandler<ContextWillBeDestroyed> eventListener);
/** Notifies that existing BaseAudioContext has changed some properties (id stays the same).. */
@EventName("contextChanged")
EventListener onContextChanged(EventHandler<ContextChanged> eventListener);
/** Notifies that the construction of an AudioListener has finished. */
@EventName("audioListenerCreated")
EventListener onAudioListenerCreated(EventHandler<AudioListenerCreated> eventListener);
/** Notifies that a new AudioListener has been created. */
@EventName("audioListenerWillBeDestroyed")
EventListener onAudioListenerWillBeDestroyed(
EventHandler<AudioListenerWillBeDestroyed> eventListener);
/** Notifies that a new AudioNode has been created. */
@EventName("audioNodeCreated")
EventListener onAudioNodeCreated(EventHandler<AudioNodeCreated> eventListener);
/** Notifies that an existing AudioNode has been destroyed. */
@EventName("audioNodeWillBeDestroyed")
EventListener onAudioNodeWillBeDestroyed(EventHandler<AudioNodeWillBeDestroyed> eventListener);
/** Notifies that a new AudioParam has been created. */
@EventName("audioParamCreated")
EventListener onAudioParamCreated(EventHandler<AudioParamCreated> eventListener);
/** Notifies that an existing AudioParam has been destroyed. */
@EventName("audioParamWillBeDestroyed")
EventListener onAudioParamWillBeDestroyed(EventHandler<AudioParamWillBeDestroyed> eventListener);
/** Notifies that two AudioNodes are connected. */
@EventName("nodesConnected")
EventListener onNodesConnected(EventHandler<NodesConnected> eventListener);
/**
* Notifies that AudioNodes are disconnected. The destination can be null, and it means all the
* outgoing connections from the source are disconnected.
*/
@EventName("nodesDisconnected")
EventListener onNodesDisconnected(EventHandler<NodesDisconnected> eventListener);
/** Notifies that an AudioNode is connected to an AudioParam. */
@EventName("nodeParamConnected")
EventListener onNodeParamConnected(EventHandler<NodeParamConnected> eventListener);
/** Notifies that an AudioNode is disconnected to an AudioParam. */
@EventName("nodeParamDisconnected")
EventListener onNodeParamDisconnected(EventHandler<NodeParamDisconnected> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/commands/WebAuthn.java
|
package com.github.kklisura.cdt.protocol.v2023.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.events.webauthn.CredentialAdded;
import com.github.kklisura.cdt.protocol.v2023.events.webauthn.CredentialAsserted;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.*;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventHandler;
import com.github.kklisura.cdt.protocol.v2023.support.types.EventListener;
import com.github.kklisura.cdt.protocol.v2023.types.webauthn.Credential;
import com.github.kklisura.cdt.protocol.v2023.types.webauthn.VirtualAuthenticatorOptions;
import java.util.List;
/** This domain allows configuring virtual authenticators to test the WebAuthn API. */
@Experimental
public interface WebAuthn {
/**
* Enable the WebAuthn domain and start intercepting credential storage and retrieval with a
* virtual authenticator.
*/
void enable();
/**
* Enable the WebAuthn domain and start intercepting credential storage and retrieval with a
* virtual authenticator.
*
* @param enableUI Whether to enable the WebAuthn user interface. Enabling the UI is recommended
* for debugging and demo purposes, as it is closer to the real experience. Disabling the UI
* is recommended for automated testing. Supported at the embedder's discretion if UI is
* available. Defaults to false.
*/
void enable(@Optional @ParamName("enableUI") Boolean enableUI);
/** Disable the WebAuthn domain. */
void disable();
/**
* Creates and adds a virtual authenticator.
*
* @param options
*/
@Returns("authenticatorId")
String addVirtualAuthenticator(@ParamName("options") VirtualAuthenticatorOptions options);
/**
* Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are not present.
*
* @param authenticatorId
*/
void setResponseOverrideBits(@ParamName("authenticatorId") String authenticatorId);
/**
* Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are not present.
*
* @param authenticatorId
* @param isBogusSignature If isBogusSignature is set, overrides the signature in the
* authenticator response to be zero. Defaults to false.
* @param isBadUV If isBadUV is set, overrides the UV bit in the flags in the authenticator
* response to be zero. Defaults to false.
* @param isBadUP If isBadUP is set, overrides the UP bit in the flags in the authenticator
* response to be zero. Defaults to false.
*/
void setResponseOverrideBits(
@ParamName("authenticatorId") String authenticatorId,
@Optional @ParamName("isBogusSignature") Boolean isBogusSignature,
@Optional @ParamName("isBadUV") Boolean isBadUV,
@Optional @ParamName("isBadUP") Boolean isBadUP);
/**
* Removes the given authenticator.
*
* @param authenticatorId
*/
void removeVirtualAuthenticator(@ParamName("authenticatorId") String authenticatorId);
/**
* Adds the credential to the specified authenticator.
*
* @param authenticatorId
* @param credential
*/
void addCredential(
@ParamName("authenticatorId") String authenticatorId,
@ParamName("credential") Credential credential);
/**
* Returns a single credential stored in the given virtual authenticator that matches the
* credential ID.
*
* @param authenticatorId
* @param credentialId
*/
@Returns("credential")
Credential getCredential(
@ParamName("authenticatorId") String authenticatorId,
@ParamName("credentialId") String credentialId);
/**
* Returns all the credentials stored in the given virtual authenticator.
*
* @param authenticatorId
*/
@Returns("credentials")
@ReturnTypeParameter(Credential.class)
List<Credential> getCredentials(@ParamName("authenticatorId") String authenticatorId);
/**
* Removes a credential from the authenticator.
*
* @param authenticatorId
* @param credentialId
*/
void removeCredential(
@ParamName("authenticatorId") String authenticatorId,
@ParamName("credentialId") String credentialId);
/**
* Clears all the credentials from the specified device.
*
* @param authenticatorId
*/
void clearCredentials(@ParamName("authenticatorId") String authenticatorId);
/**
* Sets whether User Verification succeeds or fails for an authenticator. The default is true.
*
* @param authenticatorId
* @param isUserVerified
*/
void setUserVerified(
@ParamName("authenticatorId") String authenticatorId,
@ParamName("isUserVerified") Boolean isUserVerified);
/**
* Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if
* false) for an authenticator. The default is true.
*
* @param authenticatorId
* @param enabled
*/
void setAutomaticPresenceSimulation(
@ParamName("authenticatorId") String authenticatorId, @ParamName("enabled") Boolean enabled);
/** Triggered when a credential is added to an authenticator. */
@EventName("credentialAdded")
EventListener onCredentialAdded(EventHandler<CredentialAdded> eventListener);
/** Triggered when a credential is used in a webauthn assertion. */
@EventName("credentialAsserted")
EventListener onCredentialAsserted(EventHandler<CredentialAsserted> eventListener);
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/accessibility/LoadComplete.java
|
package com.github.kklisura.cdt.protocol.v2023.events.accessibility;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.types.accessibility.AXNode;
/**
* The loadComplete event mirrors the load complete event sent by the browser to assistive
* technology when the web page has finished loading.
*/
@Experimental
public class LoadComplete {
private AXNode root;
/** New document root node. */
public AXNode getRoot() {
return root;
}
/** New document root node. */
public void setRoot(AXNode root) {
this.root = root;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/accessibility/NodesUpdated.java
|
package com.github.kklisura.cdt.protocol.v2023.events.accessibility;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.types.accessibility.AXNode;
import java.util.List;
/**
* The nodesUpdated event is sent every time a previously requested node has changed the in tree.
*/
@Experimental
public class NodesUpdated {
private List<AXNode> nodes;
/** Updated node data. */
public List<AXNode> getNodes() {
return nodes;
}
/** Updated node data. */
public void setNodes(List<AXNode> nodes) {
this.nodes = nodes;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/animation/AnimationCanceled.java
|
package com.github.kklisura.cdt.protocol.v2023.events.animation;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Event for when an animation has been cancelled. */
public class AnimationCanceled {
private String id;
/** Id of the animation that was cancelled. */
public String getId() {
return id;
}
/** Id of the animation that was cancelled. */
public void setId(String id) {
this.id = id;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/animation/AnimationCreated.java
|
package com.github.kklisura.cdt.protocol.v2023.events.animation;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Event for each animation that has been created. */
public class AnimationCreated {
private String id;
/** Id of the animation that was created. */
public String getId() {
return id;
}
/** Id of the animation that was created. */
public void setId(String id) {
this.id = id;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/animation/AnimationStarted.java
|
package com.github.kklisura.cdt.protocol.v2023.events.animation;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.animation.Animation;
/** Event for animation that has been started. */
public class AnimationStarted {
private Animation animation;
/** Animation that was started. */
public Animation getAnimation() {
return animation;
}
/** Animation that was started. */
public void setAnimation(Animation animation) {
this.animation = animation;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/audits/IssueAdded.java
|
package com.github.kklisura.cdt.protocol.v2023.events.audits;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.audits.InspectorIssue;
public class IssueAdded {
private InspectorIssue issue;
public InspectorIssue getIssue() {
return issue;
}
public void setIssue(InspectorIssue issue) {
this.issue = issue;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/backgroundservice/BackgroundServiceEventReceived.java
|
package com.github.kklisura.cdt.protocol.v2023.events.backgroundservice;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.backgroundservice.BackgroundServiceEvent;
/**
* Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if
* enabled and recording.
*/
public class BackgroundServiceEventReceived {
private BackgroundServiceEvent backgroundServiceEvent;
public BackgroundServiceEvent getBackgroundServiceEvent() {
return backgroundServiceEvent;
}
public void setBackgroundServiceEvent(BackgroundServiceEvent backgroundServiceEvent) {
this.backgroundServiceEvent = backgroundServiceEvent;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/backgroundservice/RecordingStateChanged.java
|
package com.github.kklisura.cdt.protocol.v2023.events.backgroundservice;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.backgroundservice.ServiceName;
/** Called when the recording state for the service has been updated. */
public class RecordingStateChanged {
private Boolean isRecording;
private ServiceName service;
public Boolean getIsRecording() {
return isRecording;
}
public void setIsRecording(Boolean isRecording) {
this.isRecording = isRecording;
}
public ServiceName getService() {
return service;
}
public void setService(ServiceName service) {
this.service = service;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/browser/DownloadProgress.java
|
package com.github.kklisura.cdt.protocol.v2023.events.browser;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
/** Fired when download makes progress. Last call has |done| == true. */
@Experimental
public class DownloadProgress {
private String guid;
private Double totalBytes;
private Double receivedBytes;
private DownloadProgressState state;
/** Global unique identifier of the download. */
public String getGuid() {
return guid;
}
/** Global unique identifier of the download. */
public void setGuid(String guid) {
this.guid = guid;
}
/** Total expected bytes to download. */
public Double getTotalBytes() {
return totalBytes;
}
/** Total expected bytes to download. */
public void setTotalBytes(Double totalBytes) {
this.totalBytes = totalBytes;
}
/** Total bytes received. */
public Double getReceivedBytes() {
return receivedBytes;
}
/** Total bytes received. */
public void setReceivedBytes(Double receivedBytes) {
this.receivedBytes = receivedBytes;
}
/** Download status. */
public DownloadProgressState getState() {
return state;
}
/** Download status. */
public void setState(DownloadProgressState state) {
this.state = state;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/browser/DownloadProgressState.java
|
package com.github.kklisura.cdt.protocol.v2023.events.browser;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.fasterxml.jackson.annotation.JsonProperty;
/** Download status. */
public enum DownloadProgressState {
@JsonProperty("inProgress")
IN_PROGRESS,
@JsonProperty("completed")
COMPLETED,
@JsonProperty("canceled")
CANCELED
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/browser/DownloadWillBegin.java
|
package com.github.kklisura.cdt.protocol.v2023.events.browser;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
/** Fired when page is about to start a download. */
@Experimental
public class DownloadWillBegin {
private String frameId;
private String guid;
private String url;
private String suggestedFilename;
/** Id of the frame that caused the download to begin. */
public String getFrameId() {
return frameId;
}
/** Id of the frame that caused the download to begin. */
public void setFrameId(String frameId) {
this.frameId = frameId;
}
/** Global unique identifier of the download. */
public String getGuid() {
return guid;
}
/** Global unique identifier of the download. */
public void setGuid(String guid) {
this.guid = guid;
}
/** URL of the resource being downloaded. */
public String getUrl() {
return url;
}
/** URL of the resource being downloaded. */
public void setUrl(String url) {
this.url = url;
}
/** Suggested file name of the resource (the actual name of the file saved on disk may differ). */
public String getSuggestedFilename() {
return suggestedFilename;
}
/** Suggested file name of the resource (the actual name of the file saved on disk may differ). */
public void setSuggestedFilename(String suggestedFilename) {
this.suggestedFilename = suggestedFilename;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/cast/IssueUpdated.java
|
package com.github.kklisura.cdt.protocol.v2023.events.cast;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/**
* This is fired whenever the outstanding issue/error message changes. |issueMessage| is empty if
* there is no issue.
*/
public class IssueUpdated {
private String issueMessage;
public String getIssueMessage() {
return issueMessage;
}
public void setIssueMessage(String issueMessage) {
this.issueMessage = issueMessage;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/cast/SinksUpdated.java
|
package com.github.kklisura.cdt.protocol.v2023.events.cast;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.cast.Sink;
import java.util.List;
/**
* This is fired whenever the list of available sinks changes. A sink is a device or a software
* surface that you can cast to.
*/
public class SinksUpdated {
private List<Sink> sinks;
public List<Sink> getSinks() {
return sinks;
}
public void setSinks(List<Sink> sinks) {
this.sinks = sinks;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/console/MessageAdded.java
|
package com.github.kklisura.cdt.protocol.v2023.events.console;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.console.ConsoleMessage;
/** Issued when new console message is added. */
public class MessageAdded {
private ConsoleMessage message;
/** Console message that has been added. */
public ConsoleMessage getMessage() {
return message;
}
/** Console message that has been added. */
public void setMessage(ConsoleMessage message) {
this.message = message;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/css/FontsUpdated.java
|
package com.github.kklisura.cdt.protocol.v2023.events.css;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Optional;
import com.github.kklisura.cdt.protocol.v2023.types.css.FontFace;
/**
* Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded
* web font.
*/
public class FontsUpdated {
@Optional
private FontFace font;
/** The web font that has loaded. */
public FontFace getFont() {
return font;
}
/** The web font that has loaded. */
public void setFont(FontFace font) {
this.font = font;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/css/MediaQueryResultChanged.java
|
package com.github.kklisura.cdt.protocol.v2023.events.css;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/**
* Fires whenever a MediaQuery result changes (for example, after a browser window has been
* resized.) The current implementation considers only viewport-dependent media features.
*/
public class MediaQueryResultChanged {}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/css/StyleSheetAdded.java
|
package com.github.kklisura.cdt.protocol.v2023.events.css;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.css.CSSStyleSheetHeader;
/** Fired whenever an active document stylesheet is added. */
public class StyleSheetAdded {
private CSSStyleSheetHeader header;
/** Added stylesheet metainfo. */
public CSSStyleSheetHeader getHeader() {
return header;
}
/** Added stylesheet metainfo. */
public void setHeader(CSSStyleSheetHeader header) {
this.header = header;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/css/StyleSheetChanged.java
|
package com.github.kklisura.cdt.protocol.v2023.events.css;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Fired whenever a stylesheet is changed as a result of the client operation. */
public class StyleSheetChanged {
private String styleSheetId;
public String getStyleSheetId() {
return styleSheetId;
}
public void setStyleSheetId(String styleSheetId) {
this.styleSheetId = styleSheetId;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/css/StyleSheetRemoved.java
|
package com.github.kklisura.cdt.protocol.v2023.events.css;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Fired whenever an active document stylesheet is removed. */
public class StyleSheetRemoved {
private String styleSheetId;
/** Identifier of the removed stylesheet. */
public String getStyleSheetId() {
return styleSheetId;
}
/** Identifier of the removed stylesheet. */
public void setStyleSheetId(String styleSheetId) {
this.styleSheetId = styleSheetId;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/database/AddDatabase.java
|
package com.github.kklisura.cdt.protocol.v2023.events.database;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.database.Database;
public class AddDatabase {
private Database database;
public Database getDatabase() {
return database;
}
public void setDatabase(Database database) {
this.database = database;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/debugger/BreakpointResolved.java
|
package com.github.kklisura.cdt.protocol.v2023.events.debugger;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.debugger.Location;
/** Fired when breakpoint is resolved to an actual script and location. */
public class BreakpointResolved {
private String breakpointId;
private Location location;
/** Breakpoint unique identifier. */
public String getBreakpointId() {
return breakpointId;
}
/** Breakpoint unique identifier. */
public void setBreakpointId(String breakpointId) {
this.breakpointId = breakpointId;
}
/** Actual breakpoint location. */
public Location getLocation() {
return location;
}
/** Actual breakpoint location. */
public void setLocation(Location location) {
this.location = location;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/debugger/Paused.java
|
package com.github.kklisura.cdt.protocol.v2023.events.debugger;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Optional;
import com.github.kklisura.cdt.protocol.v2023.types.debugger.CallFrame;
import com.github.kklisura.cdt.protocol.v2023.types.runtime.StackTrace;
import com.github.kklisura.cdt.protocol.v2023.types.runtime.StackTraceId;
import java.util.List;
import java.util.Map;
/** Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. */
public class Paused {
private List<CallFrame> callFrames;
private PausedReason reason;
@Optional
private Map<String, Object> data;
@Optional private List<String> hitBreakpoints;
@Optional private StackTrace asyncStackTrace;
@Experimental
@Optional private StackTraceId asyncStackTraceId;
@Deprecated @Experimental @Optional private StackTraceId asyncCallStackTraceId;
/** Call stack the virtual machine stopped on. */
public List<CallFrame> getCallFrames() {
return callFrames;
}
/** Call stack the virtual machine stopped on. */
public void setCallFrames(List<CallFrame> callFrames) {
this.callFrames = callFrames;
}
/** Pause reason. */
public PausedReason getReason() {
return reason;
}
/** Pause reason. */
public void setReason(PausedReason reason) {
this.reason = reason;
}
/** Object containing break-specific auxiliary properties. */
public Map<String, Object> getData() {
return data;
}
/** Object containing break-specific auxiliary properties. */
public void setData(Map<String, Object> data) {
this.data = data;
}
/** Hit breakpoints IDs */
public List<String> getHitBreakpoints() {
return hitBreakpoints;
}
/** Hit breakpoints IDs */
public void setHitBreakpoints(List<String> hitBreakpoints) {
this.hitBreakpoints = hitBreakpoints;
}
/** Async stack trace, if any. */
public StackTrace getAsyncStackTrace() {
return asyncStackTrace;
}
/** Async stack trace, if any. */
public void setAsyncStackTrace(StackTrace asyncStackTrace) {
this.asyncStackTrace = asyncStackTrace;
}
/** Async stack trace, if any. */
public StackTraceId getAsyncStackTraceId() {
return asyncStackTraceId;
}
/** Async stack trace, if any. */
public void setAsyncStackTraceId(StackTraceId asyncStackTraceId) {
this.asyncStackTraceId = asyncStackTraceId;
}
/** Never present, will be removed. */
public StackTraceId getAsyncCallStackTraceId() {
return asyncCallStackTraceId;
}
/** Never present, will be removed. */
public void setAsyncCallStackTraceId(StackTraceId asyncCallStackTraceId) {
this.asyncCallStackTraceId = asyncCallStackTraceId;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/debugger/PausedReason.java
|
package com.github.kklisura.cdt.protocol.v2023.events.debugger;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.fasterxml.jackson.annotation.JsonProperty;
/** Pause reason. */
public enum PausedReason {
@JsonProperty("ambiguous")
AMBIGUOUS,
@JsonProperty("assert")
ASSERT,
@JsonProperty("CSPViolation")
CSP_VIOLATION,
@JsonProperty("debugCommand")
DEBUG_COMMAND,
@JsonProperty("DOM")
DOM,
@JsonProperty("EventListener")
EVENT_LISTENER,
@JsonProperty("exception")
EXCEPTION,
@JsonProperty("instrumentation")
INSTRUMENTATION,
@JsonProperty("OOM")
OOM,
@JsonProperty("other")
OTHER,
@JsonProperty("promiseRejection")
PROMISE_REJECTION,
@JsonProperty("XHR")
XHR,
@JsonProperty("step")
STEP
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/debugger/Resumed.java
|
package com.github.kklisura.cdt.protocol.v2023.events.debugger;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Fired when the virtual machine resumed execution. */
public class Resumed {}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/debugger/ScriptFailedToParse.java
|
package com.github.kklisura.cdt.protocol.v2023.events.debugger;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Optional;
import com.github.kklisura.cdt.protocol.v2023.types.debugger.ScriptLanguage;
import com.github.kklisura.cdt.protocol.v2023.types.runtime.StackTrace;
import java.util.Map;
/** Fired when virtual machine fails to parse the script. */
public class ScriptFailedToParse {
private String scriptId;
private String url;
private Integer startLine;
private Integer startColumn;
private Integer endLine;
private Integer endColumn;
private Integer executionContextId;
private String hash;
@Optional
private Map<String, Object> executionContextAuxData;
@Optional private String sourceMapURL;
@Optional private Boolean hasSourceURL;
@Optional private Boolean isModule;
@Optional private Integer length;
@Experimental
@Optional private StackTrace stackTrace;
@Experimental @Optional private Integer codeOffset;
@Experimental @Optional private ScriptLanguage scriptLanguage;
@Experimental @Optional private String embedderName;
/** Identifier of the script parsed. */
public String getScriptId() {
return scriptId;
}
/** Identifier of the script parsed. */
public void setScriptId(String scriptId) {
this.scriptId = scriptId;
}
/** URL or name of the script parsed (if any). */
public String getUrl() {
return url;
}
/** URL or name of the script parsed (if any). */
public void setUrl(String url) {
this.url = url;
}
/** Line offset of the script within the resource with given URL (for script tags). */
public Integer getStartLine() {
return startLine;
}
/** Line offset of the script within the resource with given URL (for script tags). */
public void setStartLine(Integer startLine) {
this.startLine = startLine;
}
/** Column offset of the script within the resource with given URL. */
public Integer getStartColumn() {
return startColumn;
}
/** Column offset of the script within the resource with given URL. */
public void setStartColumn(Integer startColumn) {
this.startColumn = startColumn;
}
/** Last line of the script. */
public Integer getEndLine() {
return endLine;
}
/** Last line of the script. */
public void setEndLine(Integer endLine) {
this.endLine = endLine;
}
/** Length of the last line of the script. */
public Integer getEndColumn() {
return endColumn;
}
/** Length of the last line of the script. */
public void setEndColumn(Integer endColumn) {
this.endColumn = endColumn;
}
/** Specifies script creation context. */
public Integer getExecutionContextId() {
return executionContextId;
}
/** Specifies script creation context. */
public void setExecutionContextId(Integer executionContextId) {
this.executionContextId = executionContextId;
}
/** Content hash of the script, SHA-256. */
public String getHash() {
return hash;
}
/** Content hash of the script, SHA-256. */
public void setHash(String hash) {
this.hash = hash;
}
/**
* Embedder-specific auxiliary data likely matching {isDefault: boolean, type:
* 'default'|'isolated'|'worker', frameId: string}
*/
public Map<String, Object> getExecutionContextAuxData() {
return executionContextAuxData;
}
/**
* Embedder-specific auxiliary data likely matching {isDefault: boolean, type:
* 'default'|'isolated'|'worker', frameId: string}
*/
public void setExecutionContextAuxData(Map<String, Object> executionContextAuxData) {
this.executionContextAuxData = executionContextAuxData;
}
/** URL of source map associated with script (if any). */
public String getSourceMapURL() {
return sourceMapURL;
}
/** URL of source map associated with script (if any). */
public void setSourceMapURL(String sourceMapURL) {
this.sourceMapURL = sourceMapURL;
}
/** True, if this script has sourceURL. */
public Boolean getHasSourceURL() {
return hasSourceURL;
}
/** True, if this script has sourceURL. */
public void setHasSourceURL(Boolean hasSourceURL) {
this.hasSourceURL = hasSourceURL;
}
/** True, if this script is ES6 module. */
public Boolean getIsModule() {
return isModule;
}
/** True, if this script is ES6 module. */
public void setIsModule(Boolean isModule) {
this.isModule = isModule;
}
/** This script length. */
public Integer getLength() {
return length;
}
/** This script length. */
public void setLength(Integer length) {
this.length = length;
}
/** JavaScript top stack frame of where the script parsed event was triggered if available. */
public StackTrace getStackTrace() {
return stackTrace;
}
/** JavaScript top stack frame of where the script parsed event was triggered if available. */
public void setStackTrace(StackTrace stackTrace) {
this.stackTrace = stackTrace;
}
/** If the scriptLanguage is WebAssembly, the code section offset in the module. */
public Integer getCodeOffset() {
return codeOffset;
}
/** If the scriptLanguage is WebAssembly, the code section offset in the module. */
public void setCodeOffset(Integer codeOffset) {
this.codeOffset = codeOffset;
}
/** The language of the script. */
public ScriptLanguage getScriptLanguage() {
return scriptLanguage;
}
/** The language of the script. */
public void setScriptLanguage(ScriptLanguage scriptLanguage) {
this.scriptLanguage = scriptLanguage;
}
/** The name the embedder supplied for this script. */
public String getEmbedderName() {
return embedderName;
}
/** The name the embedder supplied for this script. */
public void setEmbedderName(String embedderName) {
this.embedderName = embedderName;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/debugger/ScriptParsed.java
|
package com.github.kklisura.cdt.protocol.v2023.events.debugger;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Optional;
import com.github.kklisura.cdt.protocol.v2023.types.debugger.DebugSymbols;
import com.github.kklisura.cdt.protocol.v2023.types.debugger.ScriptLanguage;
import com.github.kklisura.cdt.protocol.v2023.types.runtime.StackTrace;
import java.util.Map;
/**
* Fired when virtual machine parses script. This event is also fired for all known and uncollected
* scripts upon enabling debugger.
*/
public class ScriptParsed {
private String scriptId;
private String url;
private Integer startLine;
private Integer startColumn;
private Integer endLine;
private Integer endColumn;
private Integer executionContextId;
private String hash;
@Optional
private Map<String, Object> executionContextAuxData;
@Experimental
@Optional private Boolean isLiveEdit;
@Optional private String sourceMapURL;
@Optional private Boolean hasSourceURL;
@Optional private Boolean isModule;
@Optional private Integer length;
@Experimental @Optional private StackTrace stackTrace;
@Experimental @Optional private Integer codeOffset;
@Experimental @Optional private ScriptLanguage scriptLanguage;
@Experimental @Optional private DebugSymbols debugSymbols;
@Experimental @Optional private String embedderName;
/** Identifier of the script parsed. */
public String getScriptId() {
return scriptId;
}
/** Identifier of the script parsed. */
public void setScriptId(String scriptId) {
this.scriptId = scriptId;
}
/** URL or name of the script parsed (if any). */
public String getUrl() {
return url;
}
/** URL or name of the script parsed (if any). */
public void setUrl(String url) {
this.url = url;
}
/** Line offset of the script within the resource with given URL (for script tags). */
public Integer getStartLine() {
return startLine;
}
/** Line offset of the script within the resource with given URL (for script tags). */
public void setStartLine(Integer startLine) {
this.startLine = startLine;
}
/** Column offset of the script within the resource with given URL. */
public Integer getStartColumn() {
return startColumn;
}
/** Column offset of the script within the resource with given URL. */
public void setStartColumn(Integer startColumn) {
this.startColumn = startColumn;
}
/** Last line of the script. */
public Integer getEndLine() {
return endLine;
}
/** Last line of the script. */
public void setEndLine(Integer endLine) {
this.endLine = endLine;
}
/** Length of the last line of the script. */
public Integer getEndColumn() {
return endColumn;
}
/** Length of the last line of the script. */
public void setEndColumn(Integer endColumn) {
this.endColumn = endColumn;
}
/** Specifies script creation context. */
public Integer getExecutionContextId() {
return executionContextId;
}
/** Specifies script creation context. */
public void setExecutionContextId(Integer executionContextId) {
this.executionContextId = executionContextId;
}
/** Content hash of the script, SHA-256. */
public String getHash() {
return hash;
}
/** Content hash of the script, SHA-256. */
public void setHash(String hash) {
this.hash = hash;
}
/**
* Embedder-specific auxiliary data likely matching {isDefault: boolean, type:
* 'default'|'isolated'|'worker', frameId: string}
*/
public Map<String, Object> getExecutionContextAuxData() {
return executionContextAuxData;
}
/**
* Embedder-specific auxiliary data likely matching {isDefault: boolean, type:
* 'default'|'isolated'|'worker', frameId: string}
*/
public void setExecutionContextAuxData(Map<String, Object> executionContextAuxData) {
this.executionContextAuxData = executionContextAuxData;
}
/** True, if this script is generated as a result of the live edit operation. */
public Boolean getIsLiveEdit() {
return isLiveEdit;
}
/** True, if this script is generated as a result of the live edit operation. */
public void setIsLiveEdit(Boolean isLiveEdit) {
this.isLiveEdit = isLiveEdit;
}
/** URL of source map associated with script (if any). */
public String getSourceMapURL() {
return sourceMapURL;
}
/** URL of source map associated with script (if any). */
public void setSourceMapURL(String sourceMapURL) {
this.sourceMapURL = sourceMapURL;
}
/** True, if this script has sourceURL. */
public Boolean getHasSourceURL() {
return hasSourceURL;
}
/** True, if this script has sourceURL. */
public void setHasSourceURL(Boolean hasSourceURL) {
this.hasSourceURL = hasSourceURL;
}
/** True, if this script is ES6 module. */
public Boolean getIsModule() {
return isModule;
}
/** True, if this script is ES6 module. */
public void setIsModule(Boolean isModule) {
this.isModule = isModule;
}
/** This script length. */
public Integer getLength() {
return length;
}
/** This script length. */
public void setLength(Integer length) {
this.length = length;
}
/** JavaScript top stack frame of where the script parsed event was triggered if available. */
public StackTrace getStackTrace() {
return stackTrace;
}
/** JavaScript top stack frame of where the script parsed event was triggered if available. */
public void setStackTrace(StackTrace stackTrace) {
this.stackTrace = stackTrace;
}
/** If the scriptLanguage is WebAssembly, the code section offset in the module. */
public Integer getCodeOffset() {
return codeOffset;
}
/** If the scriptLanguage is WebAssembly, the code section offset in the module. */
public void setCodeOffset(Integer codeOffset) {
this.codeOffset = codeOffset;
}
/** The language of the script. */
public ScriptLanguage getScriptLanguage() {
return scriptLanguage;
}
/** The language of the script. */
public void setScriptLanguage(ScriptLanguage scriptLanguage) {
this.scriptLanguage = scriptLanguage;
}
/** If the scriptLanguage is WebASsembly, the source of debug symbols for the module. */
public DebugSymbols getDebugSymbols() {
return debugSymbols;
}
/** If the scriptLanguage is WebASsembly, the source of debug symbols for the module. */
public void setDebugSymbols(DebugSymbols debugSymbols) {
this.debugSymbols = debugSymbols;
}
/** The name the embedder supplied for this script. */
public String getEmbedderName() {
return embedderName;
}
/** The name the embedder supplied for this script. */
public void setEmbedderName(String embedderName) {
this.embedderName = embedderName;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/deviceaccess/DeviceRequestPrompted.java
|
package com.github.kklisura.cdt.protocol.v2023.events.deviceaccess;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.deviceaccess.PromptDevice;
import java.util.List;
/**
* A device request opened a user prompt to select a device. Respond with the selectPrompt or
* cancelPrompt command.
*/
public class DeviceRequestPrompted {
private String id;
private List<PromptDevice> devices;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public List<PromptDevice> getDevices() {
return devices;
}
public void setDevices(List<PromptDevice> devices) {
this.devices = devices;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/AttributeModified.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Fired when `Element`'s attribute is modified. */
public class AttributeModified {
private Integer nodeId;
private String name;
private String value;
/** Id of the node that has changed. */
public Integer getNodeId() {
return nodeId;
}
/** Id of the node that has changed. */
public void setNodeId(Integer nodeId) {
this.nodeId = nodeId;
}
/** Attribute name. */
public String getName() {
return name;
}
/** Attribute name. */
public void setName(String name) {
this.name = name;
}
/** Attribute value. */
public String getValue() {
return value;
}
/** Attribute value. */
public void setValue(String value) {
this.value = value;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/AttributeRemoved.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Fired when `Element`'s attribute is removed. */
public class AttributeRemoved {
private Integer nodeId;
private String name;
/** Id of the node that has changed. */
public Integer getNodeId() {
return nodeId;
}
/** Id of the node that has changed. */
public void setNodeId(Integer nodeId) {
this.nodeId = nodeId;
}
/** A ttribute name. */
public String getName() {
return name;
}
/** A ttribute name. */
public void setName(String name) {
this.name = name;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/CharacterDataModified.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Mirrors `DOMCharacterDataModified` event. */
public class CharacterDataModified {
private Integer nodeId;
private String characterData;
/** Id of the node that has changed. */
public Integer getNodeId() {
return nodeId;
}
/** Id of the node that has changed. */
public void setNodeId(Integer nodeId) {
this.nodeId = nodeId;
}
/** New text value. */
public String getCharacterData() {
return characterData;
}
/** New text value. */
public void setCharacterData(String characterData) {
this.characterData = characterData;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/ChildNodeCountUpdated.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Fired when `Container`'s child node count has changed. */
public class ChildNodeCountUpdated {
private Integer nodeId;
private Integer childNodeCount;
/** Id of the node that has changed. */
public Integer getNodeId() {
return nodeId;
}
/** Id of the node that has changed. */
public void setNodeId(Integer nodeId) {
this.nodeId = nodeId;
}
/** New node count. */
public Integer getChildNodeCount() {
return childNodeCount;
}
/** New node count. */
public void setChildNodeCount(Integer childNodeCount) {
this.childNodeCount = childNodeCount;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/ChildNodeInserted.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.dom.Node;
/** Mirrors `DOMNodeInserted` event. */
public class ChildNodeInserted {
private Integer parentNodeId;
private Integer previousNodeId;
private Node node;
/** Id of the node that has changed. */
public Integer getParentNodeId() {
return parentNodeId;
}
/** Id of the node that has changed. */
public void setParentNodeId(Integer parentNodeId) {
this.parentNodeId = parentNodeId;
}
/** Id of the previous sibling. */
public Integer getPreviousNodeId() {
return previousNodeId;
}
/** Id of the previous sibling. */
public void setPreviousNodeId(Integer previousNodeId) {
this.previousNodeId = previousNodeId;
}
/** Inserted node data. */
public Node getNode() {
return node;
}
/** Inserted node data. */
public void setNode(Node node) {
this.node = node;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/ChildNodeRemoved.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Mirrors `DOMNodeRemoved` event. */
public class ChildNodeRemoved {
private Integer parentNodeId;
private Integer nodeId;
/** Parent id. */
public Integer getParentNodeId() {
return parentNodeId;
}
/** Parent id. */
public void setParentNodeId(Integer parentNodeId) {
this.parentNodeId = parentNodeId;
}
/** Id of the node that has been removed. */
public Integer getNodeId() {
return nodeId;
}
/** Id of the node that has been removed. */
public void setNodeId(Integer nodeId) {
this.nodeId = nodeId;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/DistributedNodesUpdated.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.types.dom.BackendNode;
import java.util.List;
/** Called when distribution is changed. */
@Experimental
public class DistributedNodesUpdated {
private Integer insertionPointId;
private List<BackendNode> distributedNodes;
/** Insertion point where distributed nodes were updated. */
public Integer getInsertionPointId() {
return insertionPointId;
}
/** Insertion point where distributed nodes were updated. */
public void setInsertionPointId(Integer insertionPointId) {
this.insertionPointId = insertionPointId;
}
/** Distributed nodes for given insertion point. */
public List<BackendNode> getDistributedNodes() {
return distributedNodes;
}
/** Distributed nodes for given insertion point. */
public void setDistributedNodes(List<BackendNode> distributedNodes) {
this.distributedNodes = distributedNodes;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/DocumentUpdated.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Fired when `Document` has been totally updated. Node ids are no longer valid. */
public class DocumentUpdated {}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/InlineStyleInvalidated.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import java.util.List;
/** Fired when `Element`'s inline style is modified via a CSS property modification. */
@Experimental
public class InlineStyleInvalidated {
private List<Integer> nodeIds;
/** Ids of the nodes for which the inline styles have been invalidated. */
public List<Integer> getNodeIds() {
return nodeIds;
}
/** Ids of the nodes for which the inline styles have been invalidated. */
public void setNodeIds(List<Integer> nodeIds) {
this.nodeIds = nodeIds;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/PseudoElementAdded.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.types.dom.Node;
/** Called when a pseudo element is added to an element. */
@Experimental
public class PseudoElementAdded {
private Integer parentId;
private Node pseudoElement;
/** Pseudo element's parent element id. */
public Integer getParentId() {
return parentId;
}
/** Pseudo element's parent element id. */
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
/** The added pseudo element. */
public Node getPseudoElement() {
return pseudoElement;
}
/** The added pseudo element. */
public void setPseudoElement(Node pseudoElement) {
this.pseudoElement = pseudoElement;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/PseudoElementRemoved.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
/** Called when a pseudo element is removed from an element. */
@Experimental
public class PseudoElementRemoved {
private Integer parentId;
private Integer pseudoElementId;
/** Pseudo element's parent element id. */
public Integer getParentId() {
return parentId;
}
/** Pseudo element's parent element id. */
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
/** The removed pseudo element id. */
public Integer getPseudoElementId() {
return pseudoElementId;
}
/** The removed pseudo element id. */
public void setPseudoElementId(Integer pseudoElementId) {
this.pseudoElementId = pseudoElementId;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/SetChildNodes.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.dom.Node;
import java.util.List;
/**
* Fired when backend wants to provide client with the missing DOM structure. This happens upon most
* of the calls requesting node ids.
*/
public class SetChildNodes {
private Integer parentId;
private List<Node> nodes;
/** Parent node id to populate with children. */
public Integer getParentId() {
return parentId;
}
/** Parent node id to populate with children. */
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
/** Child nodes array. */
public List<Node> getNodes() {
return nodes;
}
/** Child nodes array. */
public void setNodes(List<Node> nodes) {
this.nodes = nodes;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/ShadowRootPopped.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
/** Called when shadow root is popped from the element. */
@Experimental
public class ShadowRootPopped {
private Integer hostId;
private Integer rootId;
/** Host element id. */
public Integer getHostId() {
return hostId;
}
/** Host element id. */
public void setHostId(Integer hostId) {
this.hostId = hostId;
}
/** Shadow root id. */
public Integer getRootId() {
return rootId;
}
/** Shadow root id. */
public void setRootId(Integer rootId) {
this.rootId = rootId;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/ShadowRootPushed.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.types.dom.Node;
/** Called when shadow root is pushed into the element. */
@Experimental
public class ShadowRootPushed {
private Integer hostId;
private Node root;
/** Host element id. */
public Integer getHostId() {
return hostId;
}
/** Host element id. */
public void setHostId(Integer hostId) {
this.hostId = hostId;
}
/** Shadow root. */
public Node getRoot() {
return root;
}
/** Shadow root. */
public void setRoot(Node root) {
this.root = root;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/dom/TopLayerElementsUpdated.java
|
package com.github.kklisura.cdt.protocol.v2023.events.dom;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
/** Called when top layer elements are changed. */
@Experimental
public class TopLayerElementsUpdated {}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/domstorage/DomStorageItemAdded.java
|
package com.github.kklisura.cdt.protocol.v2023.events.domstorage;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.domstorage.StorageId;
public class DomStorageItemAdded {
private StorageId storageId;
private String key;
private String newValue;
public StorageId getStorageId() {
return storageId;
}
public void setStorageId(StorageId storageId) {
this.storageId = storageId;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getNewValue() {
return newValue;
}
public void setNewValue(String newValue) {
this.newValue = newValue;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/domstorage/DomStorageItemRemoved.java
|
package com.github.kklisura.cdt.protocol.v2023.events.domstorage;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.domstorage.StorageId;
public class DomStorageItemRemoved {
private StorageId storageId;
private String key;
public StorageId getStorageId() {
return storageId;
}
public void setStorageId(StorageId storageId) {
this.storageId = storageId;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/domstorage/DomStorageItemUpdated.java
|
package com.github.kklisura.cdt.protocol.v2023.events.domstorage;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.domstorage.StorageId;
public class DomStorageItemUpdated {
private StorageId storageId;
private String key;
private String oldValue;
private String newValue;
public StorageId getStorageId() {
return storageId;
}
public void setStorageId(StorageId storageId) {
this.storageId = storageId;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getOldValue() {
return oldValue;
}
public void setOldValue(String oldValue) {
this.oldValue = oldValue;
}
public String getNewValue() {
return newValue;
}
public void setNewValue(String newValue) {
this.newValue = newValue;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/domstorage/DomStorageItemsCleared.java
|
package com.github.kklisura.cdt.protocol.v2023.events.domstorage;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.domstorage.StorageId;
public class DomStorageItemsCleared {
private StorageId storageId;
public StorageId getStorageId() {
return storageId;
}
public void setStorageId(StorageId storageId) {
this.storageId = storageId;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/emulation/VirtualTimeBudgetExpired.java
|
package com.github.kklisura.cdt.protocol.v2023.events.emulation;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
/**
* Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
*/
@Experimental
public class VirtualTimeBudgetExpired {}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/fedcm/DialogShown.java
|
package com.github.kklisura.cdt.protocol.v2023.events.fedcm;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Optional;
import com.github.kklisura.cdt.protocol.v2023.types.fedcm.Account;
import com.github.kklisura.cdt.protocol.v2023.types.fedcm.DialogType;
import java.util.List;
public class DialogShown {
private String dialogId;
private DialogType dialogType;
private List<Account> accounts;
private String title;
@Optional
private String subtitle;
public String getDialogId() {
return dialogId;
}
public void setDialogId(String dialogId) {
this.dialogId = dialogId;
}
public DialogType getDialogType() {
return dialogType;
}
public void setDialogType(DialogType dialogType) {
this.dialogType = dialogType;
}
public List<Account> getAccounts() {
return accounts;
}
public void setAccounts(List<Account> accounts) {
this.accounts = accounts;
}
/** These exist primarily so that the caller can verify the RP context was used appropriately. */
public String getTitle() {
return title;
}
/** These exist primarily so that the caller can verify the RP context was used appropriately. */
public void setTitle(String title) {
this.title = title;
}
public String getSubtitle() {
return subtitle;
}
public void setSubtitle(String subtitle) {
this.subtitle = subtitle;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/fetch/AuthRequired.java
|
package com.github.kklisura.cdt.protocol.v2023.events.fetch;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.fetch.AuthChallenge;
import com.github.kklisura.cdt.protocol.v2023.types.network.Request;
import com.github.kklisura.cdt.protocol.v2023.types.network.ResourceType;
/**
* Issued when the domain is enabled with handleAuthRequests set to true. The request is paused
* until client responds with continueWithAuth.
*/
public class AuthRequired {
private String requestId;
private Request request;
private String frameId;
private ResourceType resourceType;
private AuthChallenge authChallenge;
/** Each request the page makes will have a unique id. */
public String getRequestId() {
return requestId;
}
/** Each request the page makes will have a unique id. */
public void setRequestId(String requestId) {
this.requestId = requestId;
}
/** The details of the request. */
public Request getRequest() {
return request;
}
/** The details of the request. */
public void setRequest(Request request) {
this.request = request;
}
/** The id of the frame that initiated the request. */
public String getFrameId() {
return frameId;
}
/** The id of the frame that initiated the request. */
public void setFrameId(String frameId) {
this.frameId = frameId;
}
/** How the requested resource will be used. */
public ResourceType getResourceType() {
return resourceType;
}
/** How the requested resource will be used. */
public void setResourceType(ResourceType resourceType) {
this.resourceType = resourceType;
}
/**
* Details of the Authorization Challenge encountered. If this is set, client should respond with
* continueRequest that contains AuthChallengeResponse.
*/
public AuthChallenge getAuthChallenge() {
return authChallenge;
}
/**
* Details of the Authorization Challenge encountered. If this is set, client should respond with
* continueRequest that contains AuthChallengeResponse.
*/
public void setAuthChallenge(AuthChallenge authChallenge) {
this.authChallenge = authChallenge;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/fetch/RequestPaused.java
|
package com.github.kklisura.cdt.protocol.v2023.events.fetch;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Optional;
import com.github.kklisura.cdt.protocol.v2023.types.fetch.HeaderEntry;
import com.github.kklisura.cdt.protocol.v2023.types.network.ErrorReason;
import com.github.kklisura.cdt.protocol.v2023.types.network.Request;
import com.github.kklisura.cdt.protocol.v2023.types.network.ResourceType;
import java.util.List;
/**
* Issued when the domain is enabled and the request URL matches the specified filter. The request
* is paused until the client responds with one of continueRequest, failRequest or fulfillRequest.
* The stage of the request can be determined by presence of responseErrorReason and
* responseStatusCode -- the request is at the response stage if either of these fields is present
* and in the request stage otherwise. Redirect responses and subsequent requests are reported
* similarly to regular responses and requests. Redirect responses may be distinguished by the value
* of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with presence of the
* `location` header. Requests resulting from a redirect will have `redirectedRequestId` field set.
*/
public class RequestPaused {
private String requestId;
private Request request;
private String frameId;
private ResourceType resourceType;
@Optional
private ErrorReason responseErrorReason;
@Optional private Integer responseStatusCode;
@Optional private String responseStatusText;
@Optional private List<HeaderEntry> responseHeaders;
@Optional private String networkId;
@Experimental
@Optional private String redirectedRequestId;
/** Each request the page makes will have a unique id. */
public String getRequestId() {
return requestId;
}
/** Each request the page makes will have a unique id. */
public void setRequestId(String requestId) {
this.requestId = requestId;
}
/** The details of the request. */
public Request getRequest() {
return request;
}
/** The details of the request. */
public void setRequest(Request request) {
this.request = request;
}
/** The id of the frame that initiated the request. */
public String getFrameId() {
return frameId;
}
/** The id of the frame that initiated the request. */
public void setFrameId(String frameId) {
this.frameId = frameId;
}
/** How the requested resource will be used. */
public ResourceType getResourceType() {
return resourceType;
}
/** How the requested resource will be used. */
public void setResourceType(ResourceType resourceType) {
this.resourceType = resourceType;
}
/** Response error if intercepted at response stage. */
public ErrorReason getResponseErrorReason() {
return responseErrorReason;
}
/** Response error if intercepted at response stage. */
public void setResponseErrorReason(ErrorReason responseErrorReason) {
this.responseErrorReason = responseErrorReason;
}
/** Response code if intercepted at response stage. */
public Integer getResponseStatusCode() {
return responseStatusCode;
}
/** Response code if intercepted at response stage. */
public void setResponseStatusCode(Integer responseStatusCode) {
this.responseStatusCode = responseStatusCode;
}
/** Response status text if intercepted at response stage. */
public String getResponseStatusText() {
return responseStatusText;
}
/** Response status text if intercepted at response stage. */
public void setResponseStatusText(String responseStatusText) {
this.responseStatusText = responseStatusText;
}
/** Response headers if intercepted at the response stage. */
public List<HeaderEntry> getResponseHeaders() {
return responseHeaders;
}
/** Response headers if intercepted at the response stage. */
public void setResponseHeaders(List<HeaderEntry> responseHeaders) {
this.responseHeaders = responseHeaders;
}
/**
* If the intercepted request had a corresponding Network.requestWillBeSent event fired for it,
* then this networkId will be the same as the requestId present in the requestWillBeSent event.
*/
public String getNetworkId() {
return networkId;
}
/**
* If the intercepted request had a corresponding Network.requestWillBeSent event fired for it,
* then this networkId will be the same as the requestId present in the requestWillBeSent event.
*/
public void setNetworkId(String networkId) {
this.networkId = networkId;
}
/**
* If the request is due to a redirect response from the server, the id of the request that has
* caused the redirect.
*/
public String getRedirectedRequestId() {
return redirectedRequestId;
}
/**
* If the request is due to a redirect response from the server, the id of the request that has
* caused the redirect.
*/
public void setRedirectedRequestId(String redirectedRequestId) {
this.redirectedRequestId = redirectedRequestId;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/heapprofiler/AddHeapSnapshotChunk.java
|
package com.github.kklisura.cdt.protocol.v2023.events.heapprofiler;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
public class AddHeapSnapshotChunk {
private String chunk;
public String getChunk() {
return chunk;
}
public void setChunk(String chunk) {
this.chunk = chunk;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/heapprofiler/HeapStatsUpdate.java
|
package com.github.kklisura.cdt.protocol.v2023.events.heapprofiler;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import java.util.List;
/**
* If heap objects tracking has been started then backend may send update for one or more fragments
*/
public class HeapStatsUpdate {
private List<Integer> statsUpdate;
/**
* An array of triplets. Each triplet describes a fragment. The first integer is the fragment
* index, the second integer is a total count of objects for the fragment, the third integer is a
* total size of the objects for the fragment.
*/
public List<Integer> getStatsUpdate() {
return statsUpdate;
}
/**
* An array of triplets. Each triplet describes a fragment. The first integer is the fragment
* index, the second integer is a total count of objects for the fragment, the third integer is a
* total size of the objects for the fragment.
*/
public void setStatsUpdate(List<Integer> statsUpdate) {
this.statsUpdate = statsUpdate;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/heapprofiler/LastSeenObjectId.java
|
package com.github.kklisura.cdt.protocol.v2023.events.heapprofiler;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/**
* If heap objects tracking has been started then backend regularly sends a current value for last
* seen object id and corresponding timestamp. If the were changes in the heap since last event then
* one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
*/
public class LastSeenObjectId {
private Integer lastSeenObjectId;
private Double timestamp;
public Integer getLastSeenObjectId() {
return lastSeenObjectId;
}
public void setLastSeenObjectId(Integer lastSeenObjectId) {
this.lastSeenObjectId = lastSeenObjectId;
}
public Double getTimestamp() {
return timestamp;
}
public void setTimestamp(Double timestamp) {
this.timestamp = timestamp;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/heapprofiler/ReportHeapSnapshotProgress.java
|
package com.github.kklisura.cdt.protocol.v2023.events.heapprofiler;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Optional;
public class ReportHeapSnapshotProgress {
private Integer done;
private Integer total;
@Optional
private Boolean finished;
public Integer getDone() {
return done;
}
public void setDone(Integer done) {
this.done = done;
}
public Integer getTotal() {
return total;
}
public void setTotal(Integer total) {
this.total = total;
}
public Boolean getFinished() {
return finished;
}
public void setFinished(Boolean finished) {
this.finished = finished;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/heapprofiler/ResetProfiles.java
|
package com.github.kklisura.cdt.protocol.v2023.events.heapprofiler;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
public class ResetProfiles {}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/input/DragIntercepted.java
|
package com.github.kklisura.cdt.protocol.v2023.events.input;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Experimental;
import com.github.kklisura.cdt.protocol.v2023.types.input.DragData;
/**
* Emitted only when `Input.setInterceptDrags` is enabled. Use this data with
* `Input.dispatchDragEvent` to restore normal drag and drop behavior.
*/
@Experimental
public class DragIntercepted {
private DragData data;
public DragData getData() {
return data;
}
public void setData(DragData data) {
this.data = data;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/inspector/Detached.java
|
package com.github.kklisura.cdt.protocol.v2023.events.inspector;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Fired when remote debugging connection is about to be terminated. Contains detach reason. */
public class Detached {
private String reason;
/** The reason why connection has been terminated. */
public String getReason() {
return reason;
}
/** The reason why connection has been terminated. */
public void setReason(String reason) {
this.reason = reason;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/inspector/TargetCrashed.java
|
package com.github.kklisura.cdt.protocol.v2023.events.inspector;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Fired when debugging target has crashed */
public class TargetCrashed {}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/inspector/TargetReloadedAfterCrash.java
|
package com.github.kklisura.cdt.protocol.v2023.events.inspector;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Fired when debugging target has reloaded after crash */
public class TargetReloadedAfterCrash {}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/layertree/LayerPainted.java
|
package com.github.kklisura.cdt.protocol.v2023.events.layertree;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.dom.Rect;
public class LayerPainted {
private String layerId;
private Rect clip;
/** The id of the painted layer. */
public String getLayerId() {
return layerId;
}
/** The id of the painted layer. */
public void setLayerId(String layerId) {
this.layerId = layerId;
}
/** Clip rectangle. */
public Rect getClip() {
return clip;
}
/** Clip rectangle. */
public void setClip(Rect clip) {
this.clip = clip;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/layertree/LayerTreeDidChange.java
|
package com.github.kklisura.cdt.protocol.v2023.events.layertree;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.support.annotations.Optional;
import com.github.kklisura.cdt.protocol.v2023.types.layertree.Layer;
import java.util.List;
public class LayerTreeDidChange {
@Optional
private List<Layer> layers;
/** Layer tree, absent if not in the comspositing mode. */
public List<Layer> getLayers() {
return layers;
}
/** Layer tree, absent if not in the comspositing mode. */
public void setLayers(List<Layer> layers) {
this.layers = layers;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/log/EntryAdded.java
|
package com.github.kklisura.cdt.protocol.v2023.events.log;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.log.LogEntry;
/** Issued when new message was logged. */
public class EntryAdded {
private LogEntry entry;
/** The entry. */
public LogEntry getEntry() {
return entry;
}
/** The entry. */
public void setEntry(LogEntry entry) {
this.entry = entry;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/media/PlayerErrorsRaised.java
|
package com.github.kklisura.cdt.protocol.v2023.events.media;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.media.PlayerError;
import java.util.List;
/** Send a list of any errors that need to be delivered. */
public class PlayerErrorsRaised {
private String playerId;
private List<PlayerError> errors;
public String getPlayerId() {
return playerId;
}
public void setPlayerId(String playerId) {
this.playerId = playerId;
}
public List<PlayerError> getErrors() {
return errors;
}
public void setErrors(List<PlayerError> errors) {
this.errors = errors;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/media/PlayerEventsAdded.java
|
package com.github.kklisura.cdt.protocol.v2023.events.media;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.media.PlayerEvent;
import java.util.List;
/**
* Send events as a list, allowing them to be batched on the browser for less congestion. If
* batched, events must ALWAYS be in chronological order.
*/
public class PlayerEventsAdded {
private String playerId;
private List<PlayerEvent> events;
public String getPlayerId() {
return playerId;
}
public void setPlayerId(String playerId) {
this.playerId = playerId;
}
public List<PlayerEvent> getEvents() {
return events;
}
public void setEvents(List<PlayerEvent> events) {
this.events = events;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/media/PlayerMessagesLogged.java
|
package com.github.kklisura.cdt.protocol.v2023.events.media;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.media.PlayerMessage;
import java.util.List;
/** Send a list of any messages that need to be delivered. */
public class PlayerMessagesLogged {
private String playerId;
private List<PlayerMessage> messages;
public String getPlayerId() {
return playerId;
}
public void setPlayerId(String playerId) {
this.playerId = playerId;
}
public List<PlayerMessage> getMessages() {
return messages;
}
public void setMessages(List<PlayerMessage> messages) {
this.messages = messages;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/media/PlayerPropertiesChanged.java
|
package com.github.kklisura.cdt.protocol.v2023.events.media;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.github.kklisura.cdt.protocol.v2023.types.media.PlayerProperty;
import java.util.List;
/**
* This can be called multiple times, and can be used to set / override / remove player properties.
* A null propValue indicates removal.
*/
public class PlayerPropertiesChanged {
private String playerId;
private List<PlayerProperty> properties;
public String getPlayerId() {
return playerId;
}
public void setPlayerId(String playerId) {
this.playerId = playerId;
}
public List<PlayerProperty> getProperties() {
return properties;
}
public void setProperties(List<PlayerProperty> properties) {
this.properties = properties;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/media/PlayersCreated.java
|
package com.github.kklisura.cdt.protocol.v2023.events.media;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import java.util.List;
/**
* Called whenever a player is created, or when a new agent joins and receives a list of active
* players. If an agent is restored, it will receive the full list of player ids and all events
* again.
*/
public class PlayersCreated {
private List<String> players;
public List<String> getPlayers() {
return players;
}
public void setPlayers(List<String> players) {
this.players = players;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/network/DataReceived.java
|
package com.github.kklisura.cdt.protocol.v2023.events.network;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Fired when data chunk was received over the network. */
public class DataReceived {
private String requestId;
private Double timestamp;
private Integer dataLength;
private Integer encodedDataLength;
/** Request identifier. */
public String getRequestId() {
return requestId;
}
/** Request identifier. */
public void setRequestId(String requestId) {
this.requestId = requestId;
}
/** Timestamp. */
public Double getTimestamp() {
return timestamp;
}
/** Timestamp. */
public void setTimestamp(Double timestamp) {
this.timestamp = timestamp;
}
/** Data chunk length. */
public Integer getDataLength() {
return dataLength;
}
/** Data chunk length. */
public void setDataLength(Integer dataLength) {
this.dataLength = dataLength;
}
/** Actual bytes received (might be less than dataLength for compressed encodings). */
public Integer getEncodedDataLength() {
return encodedDataLength;
}
/** Actual bytes received (might be less than dataLength for compressed encodings). */
public void setEncodedDataLength(Integer encodedDataLength) {
this.encodedDataLength = encodedDataLength;
}
}
|
0
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events
|
java-sources/ai/platon/pulsar/pulsar-browser/3.0.15/com/github/kklisura/cdt/protocol/v2023/events/network/EventSourceMessageReceived.java
|
package com.github.kklisura.cdt.protocol.v2023.events.network;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2023 Kenan Klisura
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
/** Fired when EventSource message is received. */
public class EventSourceMessageReceived {
private String requestId;
private Double timestamp;
private String eventName;
private String eventId;
private String data;
/** Request identifier. */
public String getRequestId() {
return requestId;
}
/** Request identifier. */
public void setRequestId(String requestId) {
this.requestId = requestId;
}
/** Timestamp. */
public Double getTimestamp() {
return timestamp;
}
/** Timestamp. */
public void setTimestamp(Double timestamp) {
this.timestamp = timestamp;
}
/** Message type. */
public String getEventName() {
return eventName;
}
/** Message type. */
public void setEventName(String eventName) {
this.eventName = eventName;
}
/** Message identifier. */
public String getEventId() {
return eventId;
}
/** Message identifier. */
public void setEventId(String eventId) {
this.eventId = eventId;
}
/** Message content. */
public String getData() {
return data;
}
/** Message content. */
public void setData(String data) {
this.data = data;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.