├── .gitignore ├── LICENSE.txt ├── Makefile ├── README.md ├── browser_protocol.json ├── cdt-examples ├── LICENSE.txt ├── README.md ├── pom.xml └── src │ ├── main │ └── java │ │ └── com │ │ └── github │ │ └── kklisura │ │ └── cdt │ │ └── examples │ │ ├── BlockUrlGivenPatternExample.java │ │ ├── BlockUrlsExample.java │ │ ├── ChromeLoggingExample.java │ │ ├── CssCoverageExample.java │ │ ├── DumpHtmlFromPageExample.java │ │ ├── FullPageScreenshotExample.java │ │ ├── HighlightElementExample.java │ │ ├── IncreasedIncomingBufferInTyrusExample.java │ │ ├── InterceptAndBlockUrlsExample.java │ │ ├── LogRequestsExample.java │ │ ├── PassingCustomHeadersToRequests.java │ │ ├── PerformanceMetricsExample.java │ │ ├── PrintingPageToPdf.java │ │ ├── SimpleNavigateToUrlExample.java │ │ ├── TakeScreenshotExample.java │ │ └── TracingExample.java │ └── resources │ └── logback.xml ├── cdt-java-client ├── .gitignore ├── LICENSE.txt ├── Makefile ├── README.md ├── THIRD-PARTY.txt ├── pom.xml └── src │ ├── main │ ├── .gitignore │ └── java │ │ └── com │ │ └── github │ │ └── kklisura │ │ └── cdt │ │ ├── launch │ │ ├── ChromeArguments.java │ │ ├── ChromeLauncher.java │ │ ├── config │ │ │ └── ChromeLauncherConfiguration.java │ │ ├── exceptions │ │ │ ├── ChromeProcessException.java │ │ │ └── ChromeProcessTimeoutException.java │ │ └── support │ │ │ ├── ProcessLauncher.java │ │ │ ├── annotations │ │ │ └── ChromeArgument.java │ │ │ └── impl │ │ │ └── ProcessLauncherImpl.java │ │ ├── protocol │ │ ├── ChromeDevTools.java │ │ ├── commands │ │ │ ├── Accessibility.java │ │ │ ├── Animation.java │ │ │ ├── ApplicationCache.java │ │ │ ├── Audits.java │ │ │ ├── BackgroundService.java │ │ │ ├── Browser.java │ │ │ ├── CSS.java │ │ │ ├── CacheStorage.java │ │ │ ├── Cast.java │ │ │ ├── Console.java │ │ │ ├── DOM.java │ │ │ ├── DOMDebugger.java │ │ │ ├── DOMSnapshot.java │ │ │ ├── DOMStorage.java │ │ │ ├── Database.java │ │ │ ├── Debugger.java │ │ │ ├── DeviceOrientation.java │ │ │ ├── Emulation.java │ │ │ ├── Fetch.java │ │ │ ├── HeadlessExperimental.java │ │ │ ├── HeapProfiler.java │ │ │ ├── IO.java │ │ │ ├── IndexedDB.java │ │ │ ├── Input.java │ │ │ ├── Inspector.java │ │ │ ├── LayerTree.java │ │ │ ├── Log.java │ │ │ ├── Media.java │ │ │ ├── Memory.java │ │ │ ├── Network.java │ │ │ ├── Overlay.java │ │ │ ├── Page.java │ │ │ ├── Performance.java │ │ │ ├── PerformanceTimeline.java │ │ │ ├── Profiler.java │ │ │ ├── Runtime.java │ │ │ ├── Schema.java │ │ │ ├── Security.java │ │ │ ├── ServiceWorker.java │ │ │ ├── Storage.java │ │ │ ├── SystemInfo.java │ │ │ ├── Target.java │ │ │ ├── Tethering.java │ │ │ ├── Tracing.java │ │ │ ├── WebAudio.java │ │ │ └── WebAuthn.java │ │ ├── events │ │ │ ├── animation │ │ │ │ ├── AnimationCanceled.java │ │ │ │ ├── AnimationCreated.java │ │ │ │ └── AnimationStarted.java │ │ │ ├── applicationcache │ │ │ │ ├── ApplicationCacheStatusUpdated.java │ │ │ │ └── NetworkStateUpdated.java │ │ │ ├── audits │ │ │ │ └── IssueAdded.java │ │ │ ├── backgroundservice │ │ │ │ ├── BackgroundServiceEventReceived.java │ │ │ │ └── RecordingStateChanged.java │ │ │ ├── browser │ │ │ │ ├── DownloadProgress.java │ │ │ │ ├── DownloadProgressState.java │ │ │ │ └── DownloadWillBegin.java │ │ │ ├── cast │ │ │ │ ├── IssueUpdated.java │ │ │ │ └── SinksUpdated.java │ │ │ ├── console │ │ │ │ └── MessageAdded.java │ │ │ ├── css │ │ │ │ ├── FontsUpdated.java │ │ │ │ ├── MediaQueryResultChanged.java │ │ │ │ ├── StyleSheetAdded.java │ │ │ │ ├── StyleSheetChanged.java │ │ │ │ └── StyleSheetRemoved.java │ │ │ ├── database │ │ │ │ └── AddDatabase.java │ │ │ ├── debugger │ │ │ │ ├── BreakpointResolved.java │ │ │ │ ├── Paused.java │ │ │ │ ├── PausedReason.java │ │ │ │ ├── Resumed.java │ │ │ │ ├── ScriptFailedToParse.java │ │ │ │ └── ScriptParsed.java │ │ │ ├── dom │ │ │ │ ├── AttributeModified.java │ │ │ │ ├── AttributeRemoved.java │ │ │ │ ├── CharacterDataModified.java │ │ │ │ ├── ChildNodeCountUpdated.java │ │ │ │ ├── ChildNodeInserted.java │ │ │ │ ├── ChildNodeRemoved.java │ │ │ │ ├── DistributedNodesUpdated.java │ │ │ │ ├── DocumentUpdated.java │ │ │ │ ├── InlineStyleInvalidated.java │ │ │ │ ├── PseudoElementAdded.java │ │ │ │ ├── PseudoElementRemoved.java │ │ │ │ ├── SetChildNodes.java │ │ │ │ ├── ShadowRootPopped.java │ │ │ │ └── ShadowRootPushed.java │ │ │ ├── domstorage │ │ │ │ ├── DomStorageItemAdded.java │ │ │ │ ├── DomStorageItemRemoved.java │ │ │ │ ├── DomStorageItemUpdated.java │ │ │ │ └── DomStorageItemsCleared.java │ │ │ ├── emulation │ │ │ │ └── VirtualTimeBudgetExpired.java │ │ │ ├── fetch │ │ │ │ ├── AuthRequired.java │ │ │ │ └── RequestPaused.java │ │ │ ├── headlessexperimental │ │ │ │ └── NeedsBeginFramesChanged.java │ │ │ ├── heapprofiler │ │ │ │ ├── AddHeapSnapshotChunk.java │ │ │ │ ├── HeapStatsUpdate.java │ │ │ │ ├── LastSeenObjectId.java │ │ │ │ ├── ReportHeapSnapshotProgress.java │ │ │ │ └── ResetProfiles.java │ │ │ ├── input │ │ │ │ └── DragIntercepted.java │ │ │ ├── inspector │ │ │ │ ├── Detached.java │ │ │ │ ├── TargetCrashed.java │ │ │ │ └── TargetReloadedAfterCrash.java │ │ │ ├── layertree │ │ │ │ ├── LayerPainted.java │ │ │ │ └── LayerTreeDidChange.java │ │ │ ├── log │ │ │ │ └── EntryAdded.java │ │ │ ├── media │ │ │ │ ├── PlayerErrorsRaised.java │ │ │ │ ├── PlayerEventsAdded.java │ │ │ │ ├── PlayerMessagesLogged.java │ │ │ │ ├── PlayerPropertiesChanged.java │ │ │ │ └── PlayersCreated.java │ │ │ ├── network │ │ │ │ ├── DataReceived.java │ │ │ │ ├── EventSourceMessageReceived.java │ │ │ │ ├── LoadingFailed.java │ │ │ │ ├── LoadingFinished.java │ │ │ │ ├── RequestIntercepted.java │ │ │ │ ├── RequestServedFromCache.java │ │ │ │ ├── RequestWillBeSent.java │ │ │ │ ├── RequestWillBeSentExtraInfo.java │ │ │ │ ├── ResourceChangedPriority.java │ │ │ │ ├── ResponseReceived.java │ │ │ │ ├── ResponseReceivedExtraInfo.java │ │ │ │ ├── SignedExchangeReceived.java │ │ │ │ ├── TrustTokenOperationDone.java │ │ │ │ ├── TrustTokenOperationDoneStatus.java │ │ │ │ ├── WebSocketClosed.java │ │ │ │ ├── WebSocketCreated.java │ │ │ │ ├── WebSocketFrameError.java │ │ │ │ ├── WebSocketFrameReceived.java │ │ │ │ ├── WebSocketFrameSent.java │ │ │ │ ├── WebSocketHandshakeResponseReceived.java │ │ │ │ ├── WebSocketWillSendHandshakeRequest.java │ │ │ │ ├── WebTransportClosed.java │ │ │ │ ├── WebTransportConnectionEstablished.java │ │ │ │ └── WebTransportCreated.java │ │ │ ├── overlay │ │ │ │ ├── InspectModeCanceled.java │ │ │ │ ├── InspectNodeRequested.java │ │ │ │ ├── NodeHighlightRequested.java │ │ │ │ └── ScreenshotRequested.java │ │ │ ├── page │ │ │ │ ├── BackForwardCacheNotUsed.java │ │ │ │ ├── CompilationCacheProduced.java │ │ │ │ ├── DocumentOpened.java │ │ │ │ ├── DomContentEventFired.java │ │ │ │ ├── DownloadProgress.java │ │ │ │ ├── DownloadProgressState.java │ │ │ │ ├── DownloadWillBegin.java │ │ │ │ ├── FileChooserOpened.java │ │ │ │ ├── FileChooserOpenedMode.java │ │ │ │ ├── FrameAttached.java │ │ │ │ ├── FrameClearedScheduledNavigation.java │ │ │ │ ├── FrameDetached.java │ │ │ │ ├── FrameDetachedReason.java │ │ │ │ ├── FrameNavigated.java │ │ │ │ ├── FrameRequestedNavigation.java │ │ │ │ ├── FrameResized.java │ │ │ │ ├── FrameScheduledNavigation.java │ │ │ │ ├── FrameStartedLoading.java │ │ │ │ ├── FrameStoppedLoading.java │ │ │ │ ├── InterstitialHidden.java │ │ │ │ ├── InterstitialShown.java │ │ │ │ ├── JavascriptDialogClosed.java │ │ │ │ ├── JavascriptDialogOpening.java │ │ │ │ ├── LifecycleEvent.java │ │ │ │ ├── LoadEventFired.java │ │ │ │ ├── NavigatedWithinDocument.java │ │ │ │ ├── ScreencastFrame.java │ │ │ │ ├── ScreencastVisibilityChanged.java │ │ │ │ └── WindowOpen.java │ │ │ ├── performance │ │ │ │ └── Metrics.java │ │ │ ├── performancetimeline │ │ │ │ └── TimelineEventAdded.java │ │ │ ├── profiler │ │ │ │ ├── ConsoleProfileFinished.java │ │ │ │ ├── ConsoleProfileStarted.java │ │ │ │ └── PreciseCoverageDeltaUpdate.java │ │ │ ├── runtime │ │ │ │ ├── BindingCalled.java │ │ │ │ ├── ConsoleAPICalled.java │ │ │ │ ├── ConsoleAPICalledType.java │ │ │ │ ├── ExceptionRevoked.java │ │ │ │ ├── ExceptionThrown.java │ │ │ │ ├── ExecutionContextCreated.java │ │ │ │ ├── ExecutionContextDestroyed.java │ │ │ │ ├── ExecutionContextsCleared.java │ │ │ │ └── InspectRequested.java │ │ │ ├── security │ │ │ │ ├── CertificateError.java │ │ │ │ ├── SecurityStateChanged.java │ │ │ │ └── VisibleSecurityStateChanged.java │ │ │ ├── serviceworker │ │ │ │ ├── WorkerErrorReported.java │ │ │ │ ├── WorkerRegistrationUpdated.java │ │ │ │ └── WorkerVersionUpdated.java │ │ │ ├── storage │ │ │ │ ├── CacheStorageContentUpdated.java │ │ │ │ ├── CacheStorageListUpdated.java │ │ │ │ ├── IndexedDBContentUpdated.java │ │ │ │ └── IndexedDBListUpdated.java │ │ │ ├── target │ │ │ │ ├── AttachedToTarget.java │ │ │ │ ├── DetachedFromTarget.java │ │ │ │ ├── ReceivedMessageFromTarget.java │ │ │ │ ├── TargetCrashed.java │ │ │ │ ├── TargetCreated.java │ │ │ │ ├── TargetDestroyed.java │ │ │ │ └── TargetInfoChanged.java │ │ │ ├── tethering │ │ │ │ └── Accepted.java │ │ │ ├── tracing │ │ │ │ ├── BufferUsage.java │ │ │ │ ├── DataCollected.java │ │ │ │ └── TracingComplete.java │ │ │ └── webaudio │ │ │ │ ├── AudioListenerCreated.java │ │ │ │ ├── AudioListenerWillBeDestroyed.java │ │ │ │ ├── AudioNodeCreated.java │ │ │ │ ├── AudioNodeWillBeDestroyed.java │ │ │ │ ├── AudioParamCreated.java │ │ │ │ ├── AudioParamWillBeDestroyed.java │ │ │ │ ├── ContextChanged.java │ │ │ │ ├── ContextCreated.java │ │ │ │ ├── ContextWillBeDestroyed.java │ │ │ │ ├── NodeParamConnected.java │ │ │ │ ├── NodeParamDisconnected.java │ │ │ │ ├── NodesConnected.java │ │ │ │ └── NodesDisconnected.java │ │ ├── support │ │ │ ├── annotations │ │ │ │ ├── EventName.java │ │ │ │ ├── Experimental.java │ │ │ │ ├── Optional.java │ │ │ │ ├── ParamName.java │ │ │ │ ├── ReturnTypeParameter.java │ │ │ │ └── Returns.java │ │ │ └── types │ │ │ │ ├── EventHandler.java │ │ │ │ └── EventListener.java │ │ └── types │ │ │ ├── accessibility │ │ │ ├── AXNode.java │ │ │ ├── AXProperty.java │ │ │ ├── AXPropertyName.java │ │ │ ├── AXRelatedNode.java │ │ │ ├── AXValue.java │ │ │ ├── AXValueNativeSourceType.java │ │ │ ├── AXValueSource.java │ │ │ ├── AXValueSourceType.java │ │ │ └── AXValueType.java │ │ │ ├── animation │ │ │ ├── Animation.java │ │ │ ├── AnimationEffect.java │ │ │ ├── AnimationType.java │ │ │ ├── KeyframeStyle.java │ │ │ └── KeyframesRule.java │ │ │ ├── applicationcache │ │ │ ├── ApplicationCache.java │ │ │ ├── ApplicationCacheResource.java │ │ │ └── FrameWithManifest.java │ │ │ ├── audits │ │ │ ├── AffectedCookie.java │ │ │ ├── AffectedFrame.java │ │ │ ├── AffectedRequest.java │ │ │ ├── AttributionReportingIssueDetails.java │ │ │ ├── AttributionReportingIssueType.java │ │ │ ├── BlockedByResponseIssueDetails.java │ │ │ ├── BlockedByResponseReason.java │ │ │ ├── ContentSecurityPolicyIssueDetails.java │ │ │ ├── ContentSecurityPolicyViolationType.java │ │ │ ├── CorsIssueDetails.java │ │ │ ├── EncodedResponse.java │ │ │ ├── GetEncodedResponseEncoding.java │ │ │ ├── HeavyAdIssueDetails.java │ │ │ ├── HeavyAdReason.java │ │ │ ├── HeavyAdResolutionStatus.java │ │ │ ├── InspectorIssue.java │ │ │ ├── InspectorIssueCode.java │ │ │ ├── InspectorIssueDetails.java │ │ │ ├── LowTextContrastIssueDetails.java │ │ │ ├── MixedContentIssueDetails.java │ │ │ ├── MixedContentResolutionStatus.java │ │ │ ├── MixedContentResourceType.java │ │ │ ├── SameSiteCookieExclusionReason.java │ │ │ ├── SameSiteCookieIssueDetails.java │ │ │ ├── SameSiteCookieOperation.java │ │ │ ├── SameSiteCookieWarningReason.java │ │ │ ├── SharedArrayBufferIssueDetails.java │ │ │ ├── SharedArrayBufferIssueType.java │ │ │ ├── SourceCodeLocation.java │ │ │ ├── TrustedWebActivityIssueDetails.java │ │ │ └── TwaQualityEnforcementViolationType.java │ │ │ ├── backgroundservice │ │ │ ├── BackgroundServiceEvent.java │ │ │ ├── EventMetadata.java │ │ │ └── ServiceName.java │ │ │ ├── browser │ │ │ ├── Bounds.java │ │ │ ├── BrowserCommandId.java │ │ │ ├── Bucket.java │ │ │ ├── Histogram.java │ │ │ ├── PermissionDescriptor.java │ │ │ ├── PermissionSetting.java │ │ │ ├── PermissionType.java │ │ │ ├── SetDownloadBehaviorBehavior.java │ │ │ ├── Version.java │ │ │ ├── WindowForTarget.java │ │ │ └── WindowState.java │ │ │ ├── cachestorage │ │ │ ├── Cache.java │ │ │ ├── CachedResponse.java │ │ │ ├── CachedResponseType.java │ │ │ ├── DataEntry.java │ │ │ ├── Header.java │ │ │ └── RequestEntries.java │ │ │ ├── cast │ │ │ └── Sink.java │ │ │ ├── console │ │ │ ├── ConsoleMessage.java │ │ │ ├── ConsoleMessageLevel.java │ │ │ └── ConsoleMessageSource.java │ │ │ ├── css │ │ │ ├── BackgroundColors.java │ │ │ ├── CSSComputedStyleProperty.java │ │ │ ├── CSSKeyframeRule.java │ │ │ ├── CSSKeyframesRule.java │ │ │ ├── CSSMedia.java │ │ │ ├── CSSMediaSource.java │ │ │ ├── CSSProperty.java │ │ │ ├── CSSRule.java │ │ │ ├── CSSStyle.java │ │ │ ├── CSSStyleSheetHeader.java │ │ │ ├── FontFace.java │ │ │ ├── FontVariationAxis.java │ │ │ ├── InheritedStyleEntry.java │ │ │ ├── InlineStylesForNode.java │ │ │ ├── MatchedStylesForNode.java │ │ │ ├── MediaQuery.java │ │ │ ├── MediaQueryExpression.java │ │ │ ├── PlatformFontUsage.java │ │ │ ├── PseudoElementMatches.java │ │ │ ├── RuleMatch.java │ │ │ ├── RuleUsage.java │ │ │ ├── SelectorList.java │ │ │ ├── ShorthandEntry.java │ │ │ ├── SourceRange.java │ │ │ ├── StyleDeclarationEdit.java │ │ │ ├── StyleSheetOrigin.java │ │ │ ├── TakeCoverageDelta.java │ │ │ └── Value.java │ │ │ ├── database │ │ │ ├── Database.java │ │ │ ├── Error.java │ │ │ └── ExecuteSQL.java │ │ │ ├── debugger │ │ │ ├── BreakLocation.java │ │ │ ├── BreakLocationType.java │ │ │ ├── CallFrame.java │ │ │ ├── ContinueToLocationTargetCallFrames.java │ │ │ ├── DebugSymbols.java │ │ │ ├── DebugSymbolsType.java │ │ │ ├── EvaluateOnCallFrame.java │ │ │ ├── Location.java │ │ │ ├── LocationRange.java │ │ │ ├── RestartFrame.java │ │ │ ├── Scope.java │ │ │ ├── ScopeType.java │ │ │ ├── ScriptLanguage.java │ │ │ ├── ScriptPosition.java │ │ │ ├── ScriptSource.java │ │ │ ├── SearchMatch.java │ │ │ ├── SetBreakpoint.java │ │ │ ├── SetBreakpointByUrl.java │ │ │ ├── SetInstrumentationBreakpointInstrumentation.java │ │ │ ├── SetPauseOnExceptionsState.java │ │ │ └── SetScriptSource.java │ │ │ ├── dom │ │ │ ├── BackendNode.java │ │ │ ├── BoxModel.java │ │ │ ├── CSSComputedStyleProperty.java │ │ │ ├── FrameOwner.java │ │ │ ├── Node.java │ │ │ ├── NodeForLocation.java │ │ │ ├── PerformSearch.java │ │ │ ├── PseudoType.java │ │ │ ├── RGBA.java │ │ │ ├── Rect.java │ │ │ ├── ShadowRootType.java │ │ │ └── ShapeOutsideInfo.java │ │ │ ├── domdebugger │ │ │ ├── CSPViolationType.java │ │ │ ├── DOMBreakpointType.java │ │ │ └── EventListener.java │ │ │ ├── domsnapshot │ │ │ ├── CaptureSnapshot.java │ │ │ ├── ComputedStyle.java │ │ │ ├── DOMNode.java │ │ │ ├── DocumentSnapshot.java │ │ │ ├── InlineTextBox.java │ │ │ ├── LayoutTreeNode.java │ │ │ ├── LayoutTreeSnapshot.java │ │ │ ├── NameValue.java │ │ │ ├── NodeTreeSnapshot.java │ │ │ ├── RareBooleanData.java │ │ │ ├── RareIntegerData.java │ │ │ ├── RareStringData.java │ │ │ ├── Snapshot.java │ │ │ └── TextBoxSnapshot.java │ │ │ ├── domstorage │ │ │ └── StorageId.java │ │ │ ├── emulation │ │ │ ├── DisabledImageType.java │ │ │ ├── DisplayFeature.java │ │ │ ├── DisplayFeatureOrientation.java │ │ │ ├── MediaFeature.java │ │ │ ├── ScreenOrientation.java │ │ │ ├── ScreenOrientationType.java │ │ │ ├── SetEmitTouchEventsForMouseConfiguration.java │ │ │ ├── SetEmulatedVisionDeficiencyType.java │ │ │ ├── UserAgentBrandVersion.java │ │ │ ├── UserAgentMetadata.java │ │ │ └── VirtualTimePolicy.java │ │ │ ├── fetch │ │ │ ├── AuthChallenge.java │ │ │ ├── AuthChallengeResponse.java │ │ │ ├── AuthChallengeResponseResponse.java │ │ │ ├── AuthChallengeSource.java │ │ │ ├── HeaderEntry.java │ │ │ ├── RequestPattern.java │ │ │ ├── RequestStage.java │ │ │ └── ResponseBody.java │ │ │ ├── headlessexperimental │ │ │ ├── BeginFrame.java │ │ │ ├── ScreenshotParams.java │ │ │ └── ScreenshotParamsFormat.java │ │ │ ├── heapprofiler │ │ │ ├── SamplingHeapProfile.java │ │ │ ├── SamplingHeapProfileNode.java │ │ │ └── SamplingHeapProfileSample.java │ │ │ ├── indexeddb │ │ │ ├── DataEntry.java │ │ │ ├── DatabaseWithObjectStores.java │ │ │ ├── Key.java │ │ │ ├── KeyPath.java │ │ │ ├── KeyPathType.java │ │ │ ├── KeyRange.java │ │ │ ├── KeyType.java │ │ │ ├── Metadata.java │ │ │ ├── ObjectStore.java │ │ │ ├── ObjectStoreIndex.java │ │ │ └── RequestData.java │ │ │ ├── input │ │ │ ├── DispatchDragEventType.java │ │ │ ├── DispatchKeyEventType.java │ │ │ ├── DispatchMouseEventPointerType.java │ │ │ ├── DispatchMouseEventType.java │ │ │ ├── DispatchTouchEventType.java │ │ │ ├── DragData.java │ │ │ ├── DragDataItem.java │ │ │ ├── EmulateTouchFromMouseEventType.java │ │ │ ├── GestureSourceType.java │ │ │ ├── MouseButton.java │ │ │ └── TouchPoint.java │ │ │ ├── io │ │ │ └── Read.java │ │ │ ├── layertree │ │ │ ├── CompositingReasons.java │ │ │ ├── Layer.java │ │ │ ├── PictureTile.java │ │ │ ├── ScrollRect.java │ │ │ ├── ScrollRectType.java │ │ │ └── StickyPositionConstraint.java │ │ │ ├── log │ │ │ ├── LogEntry.java │ │ │ ├── LogEntryLevel.java │ │ │ ├── LogEntrySource.java │ │ │ ├── ViolationSetting.java │ │ │ └── ViolationSettingName.java │ │ │ ├── media │ │ │ ├── PlayerError.java │ │ │ ├── PlayerErrorType.java │ │ │ ├── PlayerEvent.java │ │ │ ├── PlayerMessage.java │ │ │ ├── PlayerMessageLevel.java │ │ │ └── PlayerProperty.java │ │ │ ├── memory │ │ │ ├── DOMCounters.java │ │ │ ├── Module.java │ │ │ ├── PressureLevel.java │ │ │ ├── SamplingProfile.java │ │ │ └── SamplingProfileNode.java │ │ │ ├── network │ │ │ ├── AuthChallenge.java │ │ │ ├── AuthChallengeResponse.java │ │ │ ├── AuthChallengeResponseResponse.java │ │ │ ├── AuthChallengeSource.java │ │ │ ├── BlockedCookieWithReason.java │ │ │ ├── BlockedReason.java │ │ │ ├── BlockedSetCookieWithReason.java │ │ │ ├── CachedResource.java │ │ │ ├── CertificateTransparencyCompliance.java │ │ │ ├── ClientSecurityState.java │ │ │ ├── ConnectionType.java │ │ │ ├── ContentEncoding.java │ │ │ ├── Cookie.java │ │ │ ├── CookieBlockedReason.java │ │ │ ├── CookieParam.java │ │ │ ├── CookiePriority.java │ │ │ ├── CookieSameSite.java │ │ │ ├── CookieSourceScheme.java │ │ │ ├── CorsError.java │ │ │ ├── CorsErrorStatus.java │ │ │ ├── CrossOriginEmbedderPolicyStatus.java │ │ │ ├── CrossOriginEmbedderPolicyValue.java │ │ │ ├── CrossOriginOpenerPolicyStatus.java │ │ │ ├── CrossOriginOpenerPolicyValue.java │ │ │ ├── ErrorReason.java │ │ │ ├── IPAddressSpace.java │ │ │ ├── Initiator.java │ │ │ ├── InitiatorType.java │ │ │ ├── InterceptionStage.java │ │ │ ├── LoadNetworkResourceOptions.java │ │ │ ├── LoadNetworkResourcePageResult.java │ │ │ ├── PostDataEntry.java │ │ │ ├── PrivateNetworkRequestPolicy.java │ │ │ ├── Request.java │ │ │ ├── RequestPattern.java │ │ │ ├── RequestReferrerPolicy.java │ │ │ ├── ResourcePriority.java │ │ │ ├── ResourceTiming.java │ │ │ ├── ResourceType.java │ │ │ ├── Response.java │ │ │ ├── ResponseBody.java │ │ │ ├── ResponseBodyForInterception.java │ │ │ ├── SecurityDetails.java │ │ │ ├── SecurityIsolationStatus.java │ │ │ ├── ServiceWorkerResponseSource.java │ │ │ ├── SetCookieBlockedReason.java │ │ │ ├── SignedCertificateTimestamp.java │ │ │ ├── SignedExchangeError.java │ │ │ ├── SignedExchangeErrorField.java │ │ │ ├── SignedExchangeHeader.java │ │ │ ├── SignedExchangeInfo.java │ │ │ ├── SignedExchangeSignature.java │ │ │ ├── TrustTokenOperationType.java │ │ │ ├── TrustTokenParams.java │ │ │ ├── TrustTokenParamsRefreshPolicy.java │ │ │ ├── WebSocketFrame.java │ │ │ ├── WebSocketRequest.java │ │ │ └── WebSocketResponse.java │ │ │ ├── overlay │ │ │ ├── BoxStyle.java │ │ │ ├── ColorFormat.java │ │ │ ├── ContrastAlgorithm.java │ │ │ ├── FlexContainerHighlightConfig.java │ │ │ ├── FlexItemHighlightConfig.java │ │ │ ├── FlexNodeHighlightConfig.java │ │ │ ├── GridHighlightConfig.java │ │ │ ├── GridNodeHighlightConfig.java │ │ │ ├── HighlightConfig.java │ │ │ ├── HingeConfig.java │ │ │ ├── InspectMode.java │ │ │ ├── LineStyle.java │ │ │ ├── LineStylePattern.java │ │ │ ├── ScrollSnapContainerHighlightConfig.java │ │ │ ├── ScrollSnapHighlightConfig.java │ │ │ └── SourceOrderConfig.java │ │ │ ├── page │ │ │ ├── AdFrameType.java │ │ │ ├── AppManifest.java │ │ │ ├── AppManifestError.java │ │ │ ├── AppManifestParsedProperties.java │ │ │ ├── CaptureScreenshotFormat.java │ │ │ ├── CaptureSnapshotFormat.java │ │ │ ├── ClientNavigationDisposition.java │ │ │ ├── ClientNavigationReason.java │ │ │ ├── CompilationCacheParams.java │ │ │ ├── CrossOriginIsolatedContextType.java │ │ │ ├── DialogType.java │ │ │ ├── FontFamilies.java │ │ │ ├── FontSizes.java │ │ │ ├── Frame.java │ │ │ ├── FrameResource.java │ │ │ ├── FrameResourceTree.java │ │ │ ├── FrameTree.java │ │ │ ├── GatedAPIFeatures.java │ │ │ ├── InstallabilityError.java │ │ │ ├── InstallabilityErrorArgument.java │ │ │ ├── LayoutMetrics.java │ │ │ ├── LayoutViewport.java │ │ │ ├── Navigate.java │ │ │ ├── NavigationEntry.java │ │ │ ├── NavigationHistory.java │ │ │ ├── NavigationType.java │ │ │ ├── PermissionsPolicyBlockLocator.java │ │ │ ├── PermissionsPolicyBlockReason.java │ │ │ ├── PermissionsPolicyFeature.java │ │ │ ├── PermissionsPolicyFeatureState.java │ │ │ ├── PrintToPDF.java │ │ │ ├── PrintToPDFTransferMode.java │ │ │ ├── ReferrerPolicy.java │ │ │ ├── ResourceContent.java │ │ │ ├── ScreencastFrameMetadata.java │ │ │ ├── SecureContextType.java │ │ │ ├── SetDownloadBehaviorBehavior.java │ │ │ ├── SetWebLifecycleStateState.java │ │ │ ├── StartScreencastFormat.java │ │ │ ├── TransitionType.java │ │ │ ├── Viewport.java │ │ │ └── VisualViewport.java │ │ │ ├── performance │ │ │ ├── EnableTimeDomain.java │ │ │ ├── Metric.java │ │ │ └── SetTimeDomainTimeDomain.java │ │ │ ├── performancetimeline │ │ │ ├── LargestContentfulPaint.java │ │ │ ├── LayoutShift.java │ │ │ ├── LayoutShiftAttribution.java │ │ │ └── TimelineEvent.java │ │ │ ├── profiler │ │ │ ├── CounterInfo.java │ │ │ ├── CoverageRange.java │ │ │ ├── FunctionCoverage.java │ │ │ ├── PositionTickInfo.java │ │ │ ├── Profile.java │ │ │ ├── ProfileNode.java │ │ │ ├── RuntimeCallCounterInfo.java │ │ │ ├── ScriptCoverage.java │ │ │ ├── ScriptTypeProfile.java │ │ │ ├── TakePreciseCoverage.java │ │ │ ├── TypeObject.java │ │ │ └── TypeProfileEntry.java │ │ │ ├── runtime │ │ │ ├── AwaitPromise.java │ │ │ ├── CallArgument.java │ │ │ ├── CallFrame.java │ │ │ ├── CallFunctionOn.java │ │ │ ├── CompileScript.java │ │ │ ├── CustomPreview.java │ │ │ ├── EntryPreview.java │ │ │ ├── Evaluate.java │ │ │ ├── ExceptionDetails.java │ │ │ ├── ExecutionContextDescription.java │ │ │ ├── HeapUsage.java │ │ │ ├── InternalPropertyDescriptor.java │ │ │ ├── ObjectPreview.java │ │ │ ├── ObjectPreviewSubtype.java │ │ │ ├── ObjectPreviewType.java │ │ │ ├── PrivatePropertyDescriptor.java │ │ │ ├── Properties.java │ │ │ ├── PropertyDescriptor.java │ │ │ ├── PropertyPreview.java │ │ │ ├── PropertyPreviewSubtype.java │ │ │ ├── PropertyPreviewType.java │ │ │ ├── RemoteObject.java │ │ │ ├── RemoteObjectSubtype.java │ │ │ ├── RemoteObjectType.java │ │ │ ├── RunScript.java │ │ │ ├── StackTrace.java │ │ │ └── StackTraceId.java │ │ │ ├── schema │ │ │ └── Domain.java │ │ │ ├── security │ │ │ ├── CertificateErrorAction.java │ │ │ ├── CertificateSecurityState.java │ │ │ ├── InsecureContentStatus.java │ │ │ ├── MixedContentType.java │ │ │ ├── SafetyTipInfo.java │ │ │ ├── SafetyTipStatus.java │ │ │ ├── SecurityState.java │ │ │ ├── SecurityStateExplanation.java │ │ │ └── VisibleSecurityState.java │ │ │ ├── serviceworker │ │ │ ├── ServiceWorkerErrorMessage.java │ │ │ ├── ServiceWorkerRegistration.java │ │ │ ├── ServiceWorkerVersion.java │ │ │ ├── ServiceWorkerVersionRunningStatus.java │ │ │ └── ServiceWorkerVersionStatus.java │ │ │ ├── storage │ │ │ ├── StorageType.java │ │ │ ├── TrustTokens.java │ │ │ ├── UsageAndQuota.java │ │ │ └── UsageForType.java │ │ │ ├── systeminfo │ │ │ ├── GPUDevice.java │ │ │ ├── GPUInfo.java │ │ │ ├── ImageDecodeAcceleratorCapability.java │ │ │ ├── ImageType.java │ │ │ ├── Info.java │ │ │ ├── ProcessInfo.java │ │ │ ├── Size.java │ │ │ ├── SubsamplingFormat.java │ │ │ ├── VideoDecodeAcceleratorCapability.java │ │ │ └── VideoEncodeAcceleratorCapability.java │ │ │ ├── target │ │ │ ├── RemoteLocation.java │ │ │ └── TargetInfo.java │ │ │ ├── tracing │ │ │ ├── MemoryDumpLevelOfDetail.java │ │ │ ├── RequestMemoryDump.java │ │ │ ├── StartTransferMode.java │ │ │ ├── StreamCompression.java │ │ │ ├── StreamFormat.java │ │ │ ├── TraceConfig.java │ │ │ ├── TraceConfigRecordMode.java │ │ │ └── TracingBackend.java │ │ │ ├── webaudio │ │ │ ├── AudioListener.java │ │ │ ├── AudioNode.java │ │ │ ├── AudioParam.java │ │ │ ├── AutomationRate.java │ │ │ ├── BaseAudioContext.java │ │ │ ├── ChannelCountMode.java │ │ │ ├── ChannelInterpretation.java │ │ │ ├── ContextRealtimeData.java │ │ │ ├── ContextState.java │ │ │ └── ContextType.java │ │ │ └── webauthn │ │ │ ├── AuthenticatorProtocol.java │ │ │ ├── AuthenticatorTransport.java │ │ │ ├── Credential.java │ │ │ ├── Ctap2Version.java │ │ │ └── VirtualAuthenticatorOptions.java │ │ ├── services │ │ ├── ChromeDevToolsService.java │ │ ├── ChromeService.java │ │ ├── WebSocketService.java │ │ ├── config │ │ │ └── ChromeDevToolsServiceConfiguration.java │ │ ├── exceptions │ │ │ ├── ChromeDevToolsInvocationException.java │ │ │ ├── ChromeServiceException.java │ │ │ └── WebSocketServiceException.java │ │ ├── executors │ │ │ ├── DefaultEventExecutorService.java │ │ │ └── EventExecutorService.java │ │ ├── factory │ │ │ ├── WebSocketContainerFactory.java │ │ │ ├── WebSocketServiceFactory.java │ │ │ └── impl │ │ │ │ └── DefaultWebSocketContainerFactory.java │ │ ├── impl │ │ │ ├── ChromeDevToolsServiceImpl.java │ │ │ ├── ChromeServiceImpl.java │ │ │ ├── WebSocketServiceImpl.java │ │ │ └── utils │ │ │ │ └── WebSocketUtils.java │ │ ├── invocation │ │ │ └── CommandInvocationHandler.java │ │ ├── types │ │ │ ├── ChromeTab.java │ │ │ ├── ChromeVersion.java │ │ │ ├── EventListenerImpl.java │ │ │ └── MethodInvocation.java │ │ └── utils │ │ │ ├── ConfigurationUtils.java │ │ │ └── ProxyUtils.java │ │ └── utils │ │ ├── ChromeDevToolsUtils.java │ │ └── FilesUtils.java │ └── test │ ├── java │ └── com │ │ └── github │ │ └── kklisura │ │ └── cdt │ │ ├── launch │ │ ├── ChromeArgumentsTest.java │ │ ├── ChromeLauncherTest.java │ │ ├── support │ │ │ └── impl │ │ │ │ └── ProcessLauncherImplTest.java │ │ └── utils │ │ │ └── LogCollector.java │ │ ├── services │ │ ├── impl │ │ │ ├── ChromeDevToolsServiceImplTest.java │ │ │ ├── ChromeServiceImplTest.java │ │ │ ├── WebSocketServiceImplTest.java │ │ │ └── utils │ │ │ │ └── TestUtils.java │ │ ├── invocation │ │ │ └── CommandInvocationHandlerTest.java │ │ └── utils │ │ │ ├── ConfigurationUtilsTest.java │ │ │ └── ProxyUtilsTest.java │ │ └── utils │ │ └── ChromeDevToolsUtilsTest.java │ └── resources │ └── fixture │ └── chrome │ ├── tab.json │ ├── tabs.json │ └── version.json ├── cdt-java-protocol-builder ├── LICENSE.txt ├── Makefile ├── README.md ├── THIRD-PARTY.txt ├── pom.xml └── src │ ├── license │ └── THIRD-PARTY.properties │ ├── main │ └── java │ │ └── com │ │ └── github │ │ └── kklisura │ │ └── cdt │ │ └── definition │ │ └── builder │ │ ├── Application.java │ │ ├── Configuration.java │ │ └── support │ │ ├── java │ │ └── builder │ │ │ ├── Builder.java │ │ │ ├── JavaBuilderFactory.java │ │ │ ├── JavaClassBuilder.java │ │ │ ├── JavaEnumBuilder.java │ │ │ ├── JavaImportAwareBuilder.java │ │ │ ├── JavaInterfaceBuilder.java │ │ │ ├── SourceProject.java │ │ │ ├── impl │ │ │ ├── BaseBuilder.java │ │ │ ├── JavaClassBuilderImpl.java │ │ │ ├── JavaEnumBuilderImpl.java │ │ │ ├── JavaInterfaceBuilderImpl.java │ │ │ ├── SourceProjectImpl.java │ │ │ └── utils │ │ │ │ └── CompilationUnitUtils.java │ │ │ ├── support │ │ │ ├── CombinedBuilders.java │ │ │ └── MethodParam.java │ │ │ └── utils │ │ │ └── JavadocUtils.java │ │ ├── protocol │ │ └── builder │ │ │ ├── CommandBuilder.java │ │ │ ├── EventBuilder.java │ │ │ ├── TypesBuilder.java │ │ │ └── support │ │ │ ├── DomainTypeResolver.java │ │ │ ├── PropertyHandlerResult.java │ │ │ └── TypeBuildRequest.java │ │ └── utils │ │ ├── DomainUtils.java │ │ └── StringUtils.java │ └── test │ └── java │ └── com │ └── github │ └── kklisura │ └── cdt │ └── definition │ └── builder │ └── support │ ├── java │ └── builder │ │ └── impl │ │ ├── JavaClassBuilderImplTest.java │ │ ├── JavaEnumBuilderImplTest.java │ │ ├── JavaInterfaceBuilderImplTest.java │ │ └── SourceProjectImplTest.java │ ├── protocol │ └── builder │ │ ├── CommandBuilderTest.java │ │ ├── EventBuilderTest.java │ │ └── TypesBuilderTest.java │ └── utils │ ├── DomainUtilsTest.java │ └── StringUtilsTest.java ├── cdt-protocol-parser ├── LICENSE.txt ├── THIRD-PARTY.txt ├── pom.xml └── src │ ├── main │ └── java │ │ └── com │ │ └── github │ │ └── kklisura │ │ └── cdt │ │ └── protocol │ │ └── definition │ │ ├── DevToolsProtocol.java │ │ ├── deserializers │ │ ├── BaseSubTypeJsonDeserializer.java │ │ └── impl │ │ │ ├── properties │ │ │ ├── PropertyArrayItemSubTypeJsonDeserializer.java │ │ │ └── PropertySubTypeJsonDeserializer.java │ │ │ └── types │ │ │ ├── TypeArrayItemSubTypeJsonDeserializer.java │ │ │ └── TypeSubTypeJsonDeserializer.java │ │ ├── types │ │ ├── Command.java │ │ ├── Domain.java │ │ ├── Event.java │ │ ├── Type.java │ │ ├── Version.java │ │ └── type │ │ │ ├── ArrayType.java │ │ │ ├── EnumType.java │ │ │ ├── IntegerType.java │ │ │ ├── NumberType.java │ │ │ ├── StringType.java │ │ │ ├── array │ │ │ ├── ArrayItem.java │ │ │ └── items │ │ │ │ ├── IntegerArrayItem.java │ │ │ │ ├── NumberArrayItem.java │ │ │ │ ├── RefArrayItem.java │ │ │ │ ├── StringArrayItem.java │ │ │ │ └── TypedArrayItem.java │ │ │ └── object │ │ │ ├── ObjectType.java │ │ │ ├── Property.java │ │ │ └── properties │ │ │ ├── AnyProperty.java │ │ │ ├── ArrayProperty.java │ │ │ ├── BooleanProperty.java │ │ │ ├── EnumProperty.java │ │ │ ├── IntegerProperty.java │ │ │ ├── NumberProperty.java │ │ │ ├── ObjectProperty.java │ │ │ ├── RefProperty.java │ │ │ ├── StringProperty.java │ │ │ └── array │ │ │ ├── ArrayItem.java │ │ │ └── items │ │ │ ├── AnyArrayItem.java │ │ │ ├── EnumArrayItem.java │ │ │ ├── IntegerArrayItem.java │ │ │ ├── NumberArrayItem.java │ │ │ ├── ObjectArrayItem.java │ │ │ ├── RefArrayItem.java │ │ │ └── StringArrayItem.java │ │ └── utils │ │ └── DevToolsProtocolUtils.java │ └── test │ ├── java │ └── com │ │ └── github │ │ └── kklisura │ │ └── cdt │ │ └── protocol │ │ └── definition │ │ └── utils │ │ └── DevToolsProtocolUtilsTest.java │ └── resources │ ├── browser_protocol.json │ └── js_protocol.json ├── js_protocol.json ├── pom.xml └── utils └── intellij-java-google-style.xml /cdt-examples/README.md: -------------------------------------------------------------------------------- 1 | # Chrome DevTools Java Client Examples 2 | 3 | ## Description 4 | 5 | This directory contains example usage of Chrome DevTools java client. 6 | 7 | ## Usage 8 | 9 | To run an example run: 10 | ``` 11 | mvn clean compile exec:java -Dexec.mainClass="com.github.kklisura.cdt.examples.LogRequestsExample" 12 | ``` 13 | 14 | Replace `LogRequestsExample` with some example class name. -------------------------------------------------------------------------------- /cdt-examples/src/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{5} - %msg%n 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /cdt-java-client/.gitignore: -------------------------------------------------------------------------------- 1 | settings.xml -------------------------------------------------------------------------------- /cdt-java-client/Makefile: -------------------------------------------------------------------------------- 1 | 2 | MVN=mvn 3 | 4 | SONAR_HOST=http://localhost:9999 5 | SONAR_COVERAGE_EXCLUSIONS="**/com/github/kklisura/cdt/protocol/**/*,**/com/github/kklisura/cdt/App.java" 6 | 7 | sonar-analysis: 8 | # Running sonar analysis 9 | $(MVN) clean test -P coverage && \ 10 | $(MVN) org.jacoco:jacoco-maven-plugin:restore-instrumented-classes 11 | $(MVN) sonar:sonar -Dsonar.host.url=$(SONAR_HOST) \ 12 | -Dsonar.tests="src/test" \ 13 | -Dsonar.exclusions="$(SONAR_COVERAGE_EXCLUSIONS)" \ 14 | -Dsonar.coverage.exclusions="$(SONAR_COVERAGE_EXCLUSIONS)" 15 | 16 | clean: 17 | $(MVN) clean 18 | 19 | verify: 20 | # Running tests 21 | $(MVN) clean test 22 | 23 | build: 24 | # Building... 25 | $(MVN) clean package 26 | 27 | deploy: 28 | # Deploying 29 | GPG_TTY=$$(tty) $(MVN) clean compile deploy -P release 30 | 31 | snapshot: 32 | $(MVN) versions:set -DnewVersion=${version}-SNAPSHOT 33 | $(MVN) versions:commit 34 | 35 | release: 36 | $(MVN) versions:set -DnewVersion=${version} 37 | $(MVN) versions:commit 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/.gitignore: -------------------------------------------------------------------------------- 1 | # Exclude target from main 2 | !target/ -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/launch/support/annotations/ChromeArgument.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.launch.support.annotations; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import java.lang.annotation.ElementType; 24 | import java.lang.annotation.Retention; 25 | import java.lang.annotation.RetentionPolicy; 26 | import java.lang.annotation.Target; 27 | 28 | /** Chrome argument. */ 29 | @Retention(RetentionPolicy.RUNTIME) 30 | @Target(value = {ElementType.FIELD}) 31 | public @interface ChromeArgument { 32 | String value(); 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/animation/AnimationCanceled.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.animation; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Event for when an animation has been cancelled. */ 24 | public class AnimationCanceled { 25 | 26 | private String id; 27 | 28 | /** Id of the animation that was cancelled. */ 29 | public String getId() { 30 | return id; 31 | } 32 | 33 | /** Id of the animation that was cancelled. */ 34 | public void setId(String id) { 35 | this.id = id; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/animation/AnimationCreated.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.animation; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Event for each animation that has been created. */ 24 | public class AnimationCreated { 25 | 26 | private String id; 27 | 28 | /** Id of the animation that was created. */ 29 | public String getId() { 30 | return id; 31 | } 32 | 33 | /** Id of the animation that was created. */ 34 | public void setId(String id) { 35 | this.id = id; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/applicationcache/NetworkStateUpdated.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.applicationcache; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | public class NetworkStateUpdated { 24 | 25 | private Boolean isNowOnline; 26 | 27 | public Boolean getIsNowOnline() { 28 | return isNowOnline; 29 | } 30 | 31 | public void setIsNowOnline(Boolean isNowOnline) { 32 | this.isNowOnline = isNowOnline; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/audits/IssueAdded.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.audits; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.github.kklisura.cdt.protocol.types.audits.InspectorIssue; 24 | 25 | public class IssueAdded { 26 | 27 | private InspectorIssue issue; 28 | 29 | public InspectorIssue getIssue() { 30 | return issue; 31 | } 32 | 33 | public void setIssue(InspectorIssue issue) { 34 | this.issue = issue; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/browser/DownloadProgressState.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.browser; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Download status. */ 26 | public enum DownloadProgressState { 27 | @JsonProperty("inProgress") 28 | IN_PROGRESS, 29 | @JsonProperty("completed") 30 | COMPLETED, 31 | @JsonProperty("canceled") 32 | CANCELED 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/cast/IssueUpdated.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.cast; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** 24 | * This is fired whenever the outstanding issue/error message changes. |issueMessage| is empty if 25 | * there is no issue. 26 | */ 27 | public class IssueUpdated { 28 | 29 | private String issueMessage; 30 | 31 | public String getIssueMessage() { 32 | return issueMessage; 33 | } 34 | 35 | public void setIssueMessage(String issueMessage) { 36 | this.issueMessage = issueMessage; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/css/MediaQueryResultChanged.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.css; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** 24 | * Fires whenever a MediaQuery result changes (for example, after a browser window has been 25 | * resized.) The current implementation considers only viewport-dependent media features. 26 | */ 27 | public class MediaQueryResultChanged {} 28 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/css/StyleSheetChanged.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.css; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Fired whenever a stylesheet is changed as a result of the client operation. */ 24 | public class StyleSheetChanged { 25 | 26 | private String styleSheetId; 27 | 28 | public String getStyleSheetId() { 29 | return styleSheetId; 30 | } 31 | 32 | public void setStyleSheetId(String styleSheetId) { 33 | this.styleSheetId = styleSheetId; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/css/StyleSheetRemoved.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.css; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Fired whenever an active document stylesheet is removed. */ 24 | public class StyleSheetRemoved { 25 | 26 | private String styleSheetId; 27 | 28 | /** Identifier of the removed stylesheet. */ 29 | public String getStyleSheetId() { 30 | return styleSheetId; 31 | } 32 | 33 | /** Identifier of the removed stylesheet. */ 34 | public void setStyleSheetId(String styleSheetId) { 35 | this.styleSheetId = styleSheetId; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/database/AddDatabase.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.database; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.github.kklisura.cdt.protocol.types.database.Database; 24 | 25 | public class AddDatabase { 26 | 27 | private Database database; 28 | 29 | public Database getDatabase() { 30 | return database; 31 | } 32 | 33 | public void setDatabase(Database database) { 34 | this.database = database; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/debugger/Resumed.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.debugger; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Fired when the virtual machine resumed execution. */ 24 | public class Resumed {} 25 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/dom/DocumentUpdated.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.dom; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Fired when `Document` has been totally updated. Node ids are no longer valid. */ 24 | public class DocumentUpdated {} 25 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/domstorage/DomStorageItemsCleared.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.domstorage; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.github.kklisura.cdt.protocol.types.domstorage.StorageId; 24 | 25 | public class DomStorageItemsCleared { 26 | 27 | private StorageId storageId; 28 | 29 | public StorageId getStorageId() { 30 | return storageId; 31 | } 32 | 33 | public void setStorageId(StorageId storageId) { 34 | this.storageId = storageId; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/emulation/VirtualTimeBudgetExpired.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.emulation; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.github.kklisura.cdt.protocol.support.annotations.Experimental; 24 | 25 | /** 26 | * Notification sent after the virtual time budget for the current VirtualTimePolicy has run out. 27 | */ 28 | @Experimental 29 | public class VirtualTimeBudgetExpired {} 30 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/heapprofiler/AddHeapSnapshotChunk.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.heapprofiler; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | public class AddHeapSnapshotChunk { 24 | 25 | private String chunk; 26 | 27 | public String getChunk() { 28 | return chunk; 29 | } 30 | 31 | public void setChunk(String chunk) { 32 | this.chunk = chunk; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/heapprofiler/ResetProfiles.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.heapprofiler; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | public class ResetProfiles {} 24 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/inspector/TargetCrashed.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.inspector; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Fired when debugging target has crashed */ 24 | public class TargetCrashed {} 25 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/inspector/TargetReloadedAfterCrash.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.inspector; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Fired when debugging target has reloaded after crash */ 24 | public class TargetReloadedAfterCrash {} 25 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/log/EntryAdded.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.log; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.github.kklisura.cdt.protocol.types.log.LogEntry; 24 | 25 | /** Issued when new message was logged. */ 26 | public class EntryAdded { 27 | 28 | private LogEntry entry; 29 | 30 | /** The entry. */ 31 | public LogEntry getEntry() { 32 | return entry; 33 | } 34 | 35 | /** The entry. */ 36 | public void setEntry(LogEntry entry) { 37 | this.entry = entry; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/network/RequestServedFromCache.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Fired if request ended up loading from cache. */ 24 | public class RequestServedFromCache { 25 | 26 | private String requestId; 27 | 28 | /** Request identifier. */ 29 | public String getRequestId() { 30 | return requestId; 31 | } 32 | 33 | /** Request identifier. */ 34 | public void setRequestId(String requestId) { 35 | this.requestId = requestId; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/overlay/InspectModeCanceled.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.overlay; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Fired when user cancels the inspect mode. */ 24 | public class InspectModeCanceled {} 25 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/overlay/NodeHighlightRequested.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.overlay; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Fired when the node should be highlighted. This happens after call to `setInspectMode`. */ 24 | public class NodeHighlightRequested { 25 | 26 | private Integer nodeId; 27 | 28 | public Integer getNodeId() { 29 | return nodeId; 30 | } 31 | 32 | public void setNodeId(Integer nodeId) { 33 | this.nodeId = nodeId; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/page/DomContentEventFired.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | public class DomContentEventFired { 24 | 25 | private Double timestamp; 26 | 27 | public Double getTimestamp() { 28 | return timestamp; 29 | } 30 | 31 | public void setTimestamp(Double timestamp) { 32 | this.timestamp = timestamp; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/page/DownloadProgressState.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Download status. */ 26 | public enum DownloadProgressState { 27 | @JsonProperty("inProgress") 28 | IN_PROGRESS, 29 | @JsonProperty("completed") 30 | COMPLETED, 31 | @JsonProperty("canceled") 32 | CANCELED 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/page/FileChooserOpenedMode.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Input mode. */ 26 | public enum FileChooserOpenedMode { 27 | @JsonProperty("selectSingle") 28 | SELECT_SINGLE, 29 | @JsonProperty("selectMultiple") 30 | SELECT_MULTIPLE 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/page/FrameDetachedReason.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum FrameDetachedReason { 26 | @JsonProperty("remove") 27 | REMOVE, 28 | @JsonProperty("swap") 29 | SWAP 30 | } 31 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/page/FrameResized.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.github.kklisura.cdt.protocol.support.annotations.Experimental; 24 | 25 | @Experimental 26 | public class FrameResized {} 27 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/page/InterstitialHidden.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Fired when interstitial page was hidden */ 24 | public class InterstitialHidden {} 25 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/page/InterstitialShown.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Fired when interstitial page was shown */ 24 | public class InterstitialShown {} 25 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/page/LoadEventFired.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | public class LoadEventFired { 24 | 25 | private Double timestamp; 26 | 27 | public Double getTimestamp() { 28 | return timestamp; 29 | } 30 | 31 | public void setTimestamp(Double timestamp) { 32 | this.timestamp = timestamp; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/runtime/ExecutionContextsCleared.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.runtime; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Issued when all executionContexts were cleared in browser */ 24 | public class ExecutionContextsCleared {} 25 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/storage/CacheStorageListUpdated.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.storage; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** A cache has been added/deleted. */ 24 | public class CacheStorageListUpdated { 25 | 26 | private String origin; 27 | 28 | /** Origin to update. */ 29 | public String getOrigin() { 30 | return origin; 31 | } 32 | 33 | /** Origin to update. */ 34 | public void setOrigin(String origin) { 35 | this.origin = origin; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/storage/IndexedDBListUpdated.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.storage; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** The origin's IndexedDB database list has been modified. */ 24 | public class IndexedDBListUpdated { 25 | 26 | private String origin; 27 | 28 | /** Origin to update. */ 29 | public String getOrigin() { 30 | return origin; 31 | } 32 | 33 | /** Origin to update. */ 34 | public void setOrigin(String origin) { 35 | this.origin = origin; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/target/TargetCreated.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.target; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.github.kklisura.cdt.protocol.types.target.TargetInfo; 24 | 25 | /** Issued when a possible inspection target is created. */ 26 | public class TargetCreated { 27 | 28 | private TargetInfo targetInfo; 29 | 30 | public TargetInfo getTargetInfo() { 31 | return targetInfo; 32 | } 33 | 34 | public void setTargetInfo(TargetInfo targetInfo) { 35 | this.targetInfo = targetInfo; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/target/TargetDestroyed.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.target; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Issued when a target is destroyed. */ 24 | public class TargetDestroyed { 25 | 26 | private String targetId; 27 | 28 | public String getTargetId() { 29 | return targetId; 30 | } 31 | 32 | public void setTargetId(String targetId) { 33 | this.targetId = targetId; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/webaudio/AudioListenerCreated.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.webaudio; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.github.kklisura.cdt.protocol.types.webaudio.AudioListener; 24 | 25 | /** Notifies that the construction of an AudioListener has finished. */ 26 | public class AudioListenerCreated { 27 | 28 | private AudioListener listener; 29 | 30 | public AudioListener getListener() { 31 | return listener; 32 | } 33 | 34 | public void setListener(AudioListener listener) { 35 | this.listener = listener; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/webaudio/AudioNodeCreated.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.webaudio; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.github.kklisura.cdt.protocol.types.webaudio.AudioNode; 24 | 25 | /** Notifies that a new AudioNode has been created. */ 26 | public class AudioNodeCreated { 27 | 28 | private AudioNode node; 29 | 30 | public AudioNode getNode() { 31 | return node; 32 | } 33 | 34 | public void setNode(AudioNode node) { 35 | this.node = node; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/webaudio/AudioParamCreated.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.webaudio; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.github.kklisura.cdt.protocol.types.webaudio.AudioParam; 24 | 25 | /** Notifies that a new AudioParam has been created. */ 26 | public class AudioParamCreated { 27 | 28 | private AudioParam param; 29 | 30 | public AudioParam getParam() { 31 | return param; 32 | } 33 | 34 | public void setParam(AudioParam param) { 35 | this.param = param; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/webaudio/ContextCreated.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.webaudio; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.github.kklisura.cdt.protocol.types.webaudio.BaseAudioContext; 24 | 25 | /** Notifies that a new BaseAudioContext has been created. */ 26 | public class ContextCreated { 27 | 28 | private BaseAudioContext context; 29 | 30 | public BaseAudioContext getContext() { 31 | return context; 32 | } 33 | 34 | public void setContext(BaseAudioContext context) { 35 | this.context = context; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/events/webaudio/ContextWillBeDestroyed.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.events.webaudio; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Notifies that an existing BaseAudioContext will be destroyed. */ 24 | public class ContextWillBeDestroyed { 25 | 26 | private String contextId; 27 | 28 | public String getContextId() { 29 | return contextId; 30 | } 31 | 32 | public void setContextId(String contextId) { 33 | this.contextId = contextId; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/support/annotations/EventName.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.support.annotations; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import java.lang.annotation.ElementType; 24 | import java.lang.annotation.Retention; 25 | import java.lang.annotation.RetentionPolicy; 26 | import java.lang.annotation.Target; 27 | 28 | /** 29 | * Event name. 30 | * 31 | * @author Kenan Klisura 32 | */ 33 | @Retention(RetentionPolicy.RUNTIME) 34 | @Target(value = {ElementType.METHOD}) 35 | public @interface EventName { 36 | String value(); 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/support/annotations/Experimental.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.support.annotations; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import static java.lang.annotation.ElementType.*; 24 | 25 | import java.lang.annotation.Retention; 26 | import java.lang.annotation.RetentionPolicy; 27 | import java.lang.annotation.Target; 28 | 29 | /** 30 | * Experimental annotation type. 31 | * 32 | * @author Kenan Klisura 33 | */ 34 | @Retention(RetentionPolicy.RUNTIME) 35 | @Target(value = {FIELD, METHOD, PARAMETER, TYPE}) 36 | public @interface Experimental {} 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/support/annotations/Optional.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.support.annotations; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import static java.lang.annotation.ElementType.*; 24 | 25 | import java.lang.annotation.Retention; 26 | import java.lang.annotation.RetentionPolicy; 27 | import java.lang.annotation.Target; 28 | 29 | /** 30 | * Optional annotation. 31 | * 32 | * @author Kenan Klisura 33 | */ 34 | @Retention(RetentionPolicy.RUNTIME) 35 | @Target(value = {FIELD, METHOD, PARAMETER, TYPE}) 36 | public @interface Optional {} 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/support/annotations/ParamName.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.support.annotations; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import java.lang.annotation.ElementType; 24 | import java.lang.annotation.Retention; 25 | import java.lang.annotation.RetentionPolicy; 26 | import java.lang.annotation.Target; 27 | 28 | /** Param value. */ 29 | @Retention(RetentionPolicy.RUNTIME) 30 | @Target(value = {ElementType.PARAMETER}) 31 | public @interface ParamName { 32 | String value(); 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/support/annotations/Returns.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.support.annotations; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import static java.lang.annotation.ElementType.METHOD; 24 | 25 | import java.lang.annotation.Retention; 26 | import java.lang.annotation.RetentionPolicy; 27 | import java.lang.annotation.Target; 28 | 29 | /** 30 | * Indicates return property. 31 | * 32 | * @author Kenan Klisura 33 | */ 34 | @Retention(RetentionPolicy.RUNTIME) 35 | @Target(value = {METHOD}) 36 | public @interface Returns { 37 | String value(); 38 | } 39 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/support/types/EventHandler.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.support.types; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** 24 | * Event handler definition. 25 | * 26 | * @author Kenan Klisura 27 | */ 28 | @FunctionalInterface 29 | public interface EventHandler { 30 | /** 31 | * Handles the event of type T. 32 | * 33 | * @param event Event 34 | */ 35 | void onEvent(T event); 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/support/types/EventListener.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.support.types; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** 24 | * Event listener interface. 25 | * 26 | * @author Kenan Klisura 27 | */ 28 | public interface EventListener { 29 | /** Alias to unsubscribe. */ 30 | void off(); 31 | 32 | /** Unsubscribe this event listener. */ 33 | void unsubscribe(); 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/animation/AnimationType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.animation; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Animation type of `Animation`. */ 26 | public enum AnimationType { 27 | @JsonProperty("CSSTransition") 28 | CSS_TRANSITION, 29 | @JsonProperty("CSSAnimation") 30 | CSS_ANIMATION, 31 | @JsonProperty("WebAnimation") 32 | WEB_ANIMATION 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/audits/AffectedFrame.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.audits; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Information about the frame affected by an inspector issue. */ 24 | public class AffectedFrame { 25 | 26 | private String frameId; 27 | 28 | public String getFrameId() { 29 | return frameId; 30 | } 31 | 32 | public void setFrameId(String frameId) { 33 | this.frameId = frameId; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/audits/GetEncodedResponseEncoding.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.audits; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** The encoding to use. */ 26 | public enum GetEncodedResponseEncoding { 27 | @JsonProperty("webp") 28 | WEBP, 29 | @JsonProperty("jpeg") 30 | JPEG, 31 | @JsonProperty("png") 32 | PNG 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/audits/HeavyAdReason.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.audits; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum HeavyAdReason { 26 | @JsonProperty("NetworkTotalLimit") 27 | NETWORK_TOTAL_LIMIT, 28 | @JsonProperty("CpuTotalLimit") 29 | CPU_TOTAL_LIMIT, 30 | @JsonProperty("CpuPeakLimit") 31 | CPU_PEAK_LIMIT 32 | } 33 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/audits/HeavyAdResolutionStatus.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.audits; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum HeavyAdResolutionStatus { 26 | @JsonProperty("HeavyAdBlocked") 27 | HEAVY_AD_BLOCKED, 28 | @JsonProperty("HeavyAdWarning") 29 | HEAVY_AD_WARNING 30 | } 31 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/audits/MixedContentResolutionStatus.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.audits; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum MixedContentResolutionStatus { 26 | @JsonProperty("MixedContentBlocked") 27 | MIXED_CONTENT_BLOCKED, 28 | @JsonProperty("MixedContentAutomaticallyUpgraded") 29 | MIXED_CONTENT_AUTOMATICALLY_UPGRADED, 30 | @JsonProperty("MixedContentWarning") 31 | MIXED_CONTENT_WARNING 32 | } 33 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/audits/SameSiteCookieOperation.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.audits; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum SameSiteCookieOperation { 26 | @JsonProperty("SetCookie") 27 | SET_COOKIE, 28 | @JsonProperty("ReadCookie") 29 | READ_COOKIE 30 | } 31 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/audits/SharedArrayBufferIssueType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.audits; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum SharedArrayBufferIssueType { 26 | @JsonProperty("TransferIssue") 27 | TRANSFER_ISSUE, 28 | @JsonProperty("CreationIssue") 29 | CREATION_ISSUE 30 | } 31 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/audits/TwaQualityEnforcementViolationType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.audits; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum TwaQualityEnforcementViolationType { 26 | @JsonProperty("kHttpError") 27 | K_HTTP_ERROR, 28 | @JsonProperty("kUnavailableOffline") 29 | K_UNAVAILABLE_OFFLINE, 30 | @JsonProperty("kDigitalAssetLinks") 31 | K_DIGITAL_ASSET_LINKS 32 | } 33 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/browser/BrowserCommandId.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.browser; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Browser command ids used by executeBrowserCommand. */ 26 | public enum BrowserCommandId { 27 | @JsonProperty("openTabSearch") 28 | OPEN_TAB_SEARCH, 29 | @JsonProperty("closeTabSearch") 30 | CLOSE_TAB_SEARCH 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/browser/PermissionSetting.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.browser; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum PermissionSetting { 26 | @JsonProperty("granted") 27 | GRANTED, 28 | @JsonProperty("denied") 29 | DENIED, 30 | @JsonProperty("prompt") 31 | PROMPT 32 | } 33 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/browser/WindowState.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.browser; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** The state of the browser window. */ 26 | public enum WindowState { 27 | @JsonProperty("normal") 28 | NORMAL, 29 | @JsonProperty("minimized") 30 | MINIMIZED, 31 | @JsonProperty("maximized") 32 | MAXIMIZED, 33 | @JsonProperty("fullscreen") 34 | FULLSCREEN 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/cachestorage/CachedResponse.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.cachestorage; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Cached response */ 24 | public class CachedResponse { 25 | 26 | private String body; 27 | 28 | /** Entry content, base64-encoded. (Encoded as a base64 string when passed over JSON) */ 29 | public String getBody() { 30 | return body; 31 | } 32 | 33 | /** Entry content, base64-encoded. (Encoded as a base64 string when passed over JSON) */ 34 | public void setBody(String body) { 35 | this.body = body; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/cachestorage/Header.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.cachestorage; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | public class Header { 24 | 25 | private String name; 26 | 27 | private String value; 28 | 29 | public String getName() { 30 | return name; 31 | } 32 | 33 | public void setName(String name) { 34 | this.name = name; 35 | } 36 | 37 | public String getValue() { 38 | return value; 39 | } 40 | 41 | public void setValue(String value) { 42 | this.value = value; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/console/ConsoleMessageLevel.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.console; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Message severity. */ 26 | public enum ConsoleMessageLevel { 27 | @JsonProperty("log") 28 | LOG, 29 | @JsonProperty("warning") 30 | WARNING, 31 | @JsonProperty("error") 32 | ERROR, 33 | @JsonProperty("debug") 34 | DEBUG, 35 | @JsonProperty("info") 36 | INFO 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/debugger/BreakLocationType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.debugger; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum BreakLocationType { 26 | @JsonProperty("debuggerStatement") 27 | DEBUGGER_STATEMENT, 28 | @JsonProperty("call") 29 | CALL, 30 | @JsonProperty("return") 31 | RETURN 32 | } 33 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/debugger/ContinueToLocationTargetCallFrames.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.debugger; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum ContinueToLocationTargetCallFrames { 26 | @JsonProperty("any") 27 | ANY, 28 | @JsonProperty("current") 29 | CURRENT 30 | } 31 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/debugger/DebugSymbolsType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.debugger; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Type of the debug symbols. */ 26 | public enum DebugSymbolsType { 27 | @JsonProperty("None") 28 | NONE, 29 | @JsonProperty("SourceMap") 30 | SOURCE_MAP, 31 | @JsonProperty("EmbeddedDWARF") 32 | EMBEDDED_DWARF, 33 | @JsonProperty("ExternalDWARF") 34 | EXTERNAL_DWARF 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/debugger/ScriptLanguage.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.debugger; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Enum of possible script languages. */ 26 | public enum ScriptLanguage { 27 | @JsonProperty("JavaScript") 28 | JAVA_SCRIPT, 29 | @JsonProperty("WebAssembly") 30 | WEB_ASSEMBLY 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/debugger/SetInstrumentationBreakpointInstrumentation.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.debugger; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Instrumentation name. */ 26 | public enum SetInstrumentationBreakpointInstrumentation { 27 | @JsonProperty("beforeScriptExecution") 28 | BEFORE_SCRIPT_EXECUTION, 29 | @JsonProperty("beforeScriptWithSourceMapExecution") 30 | BEFORE_SCRIPT_WITH_SOURCE_MAP_EXECUTION 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/debugger/SetPauseOnExceptionsState.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.debugger; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Pause on exceptions mode. */ 26 | public enum SetPauseOnExceptionsState { 27 | @JsonProperty("none") 28 | NONE, 29 | @JsonProperty("uncaught") 30 | UNCAUGHT, 31 | @JsonProperty("all") 32 | ALL 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/dom/ShadowRootType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.dom; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Shadow root type. */ 26 | public enum ShadowRootType { 27 | @JsonProperty("user-agent") 28 | USER_AGENT, 29 | @JsonProperty("open") 30 | OPEN, 31 | @JsonProperty("closed") 32 | CLOSED 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/domdebugger/CSPViolationType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.domdebugger; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** CSP Violation type. */ 26 | public enum CSPViolationType { 27 | @JsonProperty("trustedtype-sink-violation") 28 | TRUSTEDTYPE_SINK_VIOLATION, 29 | @JsonProperty("trustedtype-policy-violation") 30 | TRUSTEDTYPE_POLICY_VIOLATION 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/domdebugger/DOMBreakpointType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.domdebugger; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** DOM breakpoint type. */ 26 | public enum DOMBreakpointType { 27 | @JsonProperty("subtree-modified") 28 | SUBTREE_MODIFIED, 29 | @JsonProperty("attribute-modified") 30 | ATTRIBUTE_MODIFIED, 31 | @JsonProperty("node-removed") 32 | NODE_REMOVED 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/domsnapshot/RareBooleanData.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.domsnapshot; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import java.util.List; 24 | 25 | public class RareBooleanData { 26 | 27 | private List index; 28 | 29 | public List getIndex() { 30 | return index; 31 | } 32 | 33 | public void setIndex(List index) { 34 | this.index = index; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/emulation/DisabledImageType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.emulation; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Enum of image types that can be disabled. */ 26 | public enum DisabledImageType { 27 | @JsonProperty("avif") 28 | AVIF, 29 | @JsonProperty("jxl") 30 | JXL, 31 | @JsonProperty("webp") 32 | WEBP 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/emulation/DisplayFeatureOrientation.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.emulation; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Orientation of a display feature in relation to screen */ 26 | public enum DisplayFeatureOrientation { 27 | @JsonProperty("vertical") 28 | VERTICAL, 29 | @JsonProperty("horizontal") 30 | HORIZONTAL 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/emulation/MediaFeature.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.emulation; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | public class MediaFeature { 24 | 25 | private String name; 26 | 27 | private String value; 28 | 29 | public String getName() { 30 | return name; 31 | } 32 | 33 | public void setName(String name) { 34 | this.name = name; 35 | } 36 | 37 | public String getValue() { 38 | return value; 39 | } 40 | 41 | public void setValue(String value) { 42 | this.value = value; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/emulation/ScreenOrientationType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.emulation; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Orientation type. */ 26 | public enum ScreenOrientationType { 27 | @JsonProperty("portraitPrimary") 28 | PORTRAIT_PRIMARY, 29 | @JsonProperty("portraitSecondary") 30 | PORTRAIT_SECONDARY, 31 | @JsonProperty("landscapePrimary") 32 | LANDSCAPE_PRIMARY, 33 | @JsonProperty("landscapeSecondary") 34 | LANDSCAPE_SECONDARY 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/emulation/SetEmitTouchEventsForMouseConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.emulation; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Touch/gesture events configuration. Default: current platform. */ 26 | public enum SetEmitTouchEventsForMouseConfiguration { 27 | @JsonProperty("mobile") 28 | MOBILE, 29 | @JsonProperty("desktop") 30 | DESKTOP 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/fetch/AuthChallengeSource.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.fetch; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Source of the authentication challenge. */ 26 | public enum AuthChallengeSource { 27 | @JsonProperty("Server") 28 | SERVER, 29 | @JsonProperty("Proxy") 30 | PROXY 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/fetch/HeaderEntry.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.fetch; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** Response HTTP header entry */ 24 | public class HeaderEntry { 25 | 26 | private String name; 27 | 28 | private String value; 29 | 30 | public String getName() { 31 | return name; 32 | } 33 | 34 | public void setName(String name) { 35 | this.name = name; 36 | } 37 | 38 | public String getValue() { 39 | return value; 40 | } 41 | 42 | public void setValue(String value) { 43 | this.value = value; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/fetch/RequestStage.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.fetch; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * Stages of the request to handle. Request will intercept before the request is sent. Response will 27 | * intercept after the response is received (but before response body is received. 28 | */ 29 | public enum RequestStage { 30 | @JsonProperty("Request") 31 | REQUEST, 32 | @JsonProperty("Response") 33 | RESPONSE 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/headlessexperimental/ScreenshotParamsFormat.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.headlessexperimental; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Image compression format (defaults to png). */ 26 | public enum ScreenshotParamsFormat { 27 | @JsonProperty("jpeg") 28 | JPEG, 29 | @JsonProperty("png") 30 | PNG 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/indexeddb/KeyPathType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.indexeddb; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Key path type. */ 26 | public enum KeyPathType { 27 | @JsonProperty("null") 28 | NULL, 29 | @JsonProperty("string") 30 | STRING, 31 | @JsonProperty("array") 32 | ARRAY 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/indexeddb/KeyType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.indexeddb; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Key type. */ 26 | public enum KeyType { 27 | @JsonProperty("number") 28 | NUMBER, 29 | @JsonProperty("string") 30 | STRING, 31 | @JsonProperty("date") 32 | DATE, 33 | @JsonProperty("array") 34 | ARRAY 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/input/DispatchDragEventType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.input; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Type of the drag event. */ 26 | public enum DispatchDragEventType { 27 | @JsonProperty("dragEnter") 28 | DRAG_ENTER, 29 | @JsonProperty("dragOver") 30 | DRAG_OVER, 31 | @JsonProperty("drop") 32 | DROP, 33 | @JsonProperty("dragCancel") 34 | DRAG_CANCEL 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/input/DispatchKeyEventType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.input; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Type of the key event. */ 26 | public enum DispatchKeyEventType { 27 | @JsonProperty("keyDown") 28 | KEY_DOWN, 29 | @JsonProperty("keyUp") 30 | KEY_UP, 31 | @JsonProperty("rawKeyDown") 32 | RAW_KEY_DOWN, 33 | @JsonProperty("char") 34 | CHAR 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/input/DispatchMouseEventPointerType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.input; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Pointer type (default: "mouse"). */ 26 | public enum DispatchMouseEventPointerType { 27 | @JsonProperty("mouse") 28 | MOUSE, 29 | @JsonProperty("pen") 30 | PEN 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/input/DispatchMouseEventType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.input; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Type of the mouse event. */ 26 | public enum DispatchMouseEventType { 27 | @JsonProperty("mousePressed") 28 | MOUSE_PRESSED, 29 | @JsonProperty("mouseReleased") 30 | MOUSE_RELEASED, 31 | @JsonProperty("mouseMoved") 32 | MOUSE_MOVED, 33 | @JsonProperty("mouseWheel") 34 | MOUSE_WHEEL 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/input/EmulateTouchFromMouseEventType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.input; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Type of the mouse event. */ 26 | public enum EmulateTouchFromMouseEventType { 27 | @JsonProperty("mousePressed") 28 | MOUSE_PRESSED, 29 | @JsonProperty("mouseReleased") 30 | MOUSE_RELEASED, 31 | @JsonProperty("mouseMoved") 32 | MOUSE_MOVED, 33 | @JsonProperty("mouseWheel") 34 | MOUSE_WHEEL 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/input/GestureSourceType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.input; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum GestureSourceType { 26 | @JsonProperty("default") 27 | DEFAULT, 28 | @JsonProperty("touch") 29 | TOUCH, 30 | @JsonProperty("mouse") 31 | MOUSE 32 | } 33 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/input/MouseButton.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.input; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum MouseButton { 26 | @JsonProperty("none") 27 | NONE, 28 | @JsonProperty("left") 29 | LEFT, 30 | @JsonProperty("middle") 31 | MIDDLE, 32 | @JsonProperty("right") 33 | RIGHT, 34 | @JsonProperty("back") 35 | BACK, 36 | @JsonProperty("forward") 37 | FORWARD 38 | } 39 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/layertree/ScrollRectType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.layertree; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Reason for rectangle to force scrolling on the main thread */ 26 | public enum ScrollRectType { 27 | @JsonProperty("RepaintsOnScroll") 28 | REPAINTS_ON_SCROLL, 29 | @JsonProperty("TouchEventHandler") 30 | TOUCH_EVENT_HANDLER, 31 | @JsonProperty("WheelEventHandler") 32 | WHEEL_EVENT_HANDLER 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/log/LogEntryLevel.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.log; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Log entry severity. */ 26 | public enum LogEntryLevel { 27 | @JsonProperty("verbose") 28 | VERBOSE, 29 | @JsonProperty("info") 30 | INFO, 31 | @JsonProperty("warning") 32 | WARNING, 33 | @JsonProperty("error") 34 | ERROR 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/media/PlayerErrorType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.media; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum PlayerErrorType { 26 | @JsonProperty("pipeline_error") 27 | PIPELINE_ERROR, 28 | @JsonProperty("media_error") 29 | MEDIA_ERROR 30 | } 31 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/memory/PressureLevel.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.memory; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Memory pressure level. */ 26 | public enum PressureLevel { 27 | @JsonProperty("moderate") 28 | MODERATE, 29 | @JsonProperty("critical") 30 | CRITICAL 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/AuthChallengeSource.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Source of the authentication challenge. */ 26 | public enum AuthChallengeSource { 27 | @JsonProperty("Server") 28 | SERVER, 29 | @JsonProperty("Proxy") 30 | PROXY 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/CertificateTransparencyCompliance.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Whether the request complied with Certificate Transparency policy. */ 26 | public enum CertificateTransparencyCompliance { 27 | @JsonProperty("unknown") 28 | UNKNOWN, 29 | @JsonProperty("not-compliant") 30 | NOT_COMPLIANT, 31 | @JsonProperty("compliant") 32 | COMPLIANT 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/ContentEncoding.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** List of content encodings supported by the backend. */ 26 | public enum ContentEncoding { 27 | @JsonProperty("deflate") 28 | DEFLATE, 29 | @JsonProperty("gzip") 30 | GZIP, 31 | @JsonProperty("br") 32 | BR 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/CookiePriority.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * Represents the cookie's 'Priority' status: 27 | * https://tools.ietf.org/html/draft-west-cookie-priority-00 28 | */ 29 | public enum CookiePriority { 30 | @JsonProperty("Low") 31 | LOW, 32 | @JsonProperty("Medium") 33 | MEDIUM, 34 | @JsonProperty("High") 35 | HIGH 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/CookieSameSite.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * Represents the cookie's 'SameSite' status: 27 | * https://tools.ietf.org/html/draft-west-first-party-cookies 28 | */ 29 | public enum CookieSameSite { 30 | @JsonProperty("Strict") 31 | STRICT, 32 | @JsonProperty("Lax") 33 | LAX, 34 | @JsonProperty("None") 35 | NONE 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/CrossOriginEmbedderPolicyValue.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum CrossOriginEmbedderPolicyValue { 26 | @JsonProperty("None") 27 | NONE, 28 | @JsonProperty("CorsOrCredentialless") 29 | CORS_OR_CREDENTIALLESS, 30 | @JsonProperty("RequireCorp") 31 | REQUIRE_CORP 32 | } 33 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/CrossOriginOpenerPolicyValue.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum CrossOriginOpenerPolicyValue { 26 | @JsonProperty("SameOrigin") 27 | SAME_ORIGIN, 28 | @JsonProperty("SameOriginAllowPopups") 29 | SAME_ORIGIN_ALLOW_POPUPS, 30 | @JsonProperty("UnsafeNone") 31 | UNSAFE_NONE, 32 | @JsonProperty("SameOriginPlusCoep") 33 | SAME_ORIGIN_PLUS_COEP 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/IPAddressSpace.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum IPAddressSpace { 26 | @JsonProperty("Local") 27 | LOCAL, 28 | @JsonProperty("Private") 29 | PRIVATE, 30 | @JsonProperty("Public") 31 | PUBLIC, 32 | @JsonProperty("Unknown") 33 | UNKNOWN 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/InitiatorType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Type of this initiator. */ 26 | public enum InitiatorType { 27 | @JsonProperty("parser") 28 | PARSER, 29 | @JsonProperty("script") 30 | SCRIPT, 31 | @JsonProperty("preload") 32 | PRELOAD, 33 | @JsonProperty("SignedExchange") 34 | SIGNED_EXCHANGE, 35 | @JsonProperty("preflight") 36 | PREFLIGHT, 37 | @JsonProperty("other") 38 | OTHER 39 | } 40 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/InterceptionStage.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * Stages of the interception to begin intercepting. Request will intercept before the request is 27 | * sent. Response will intercept after the response is received. 28 | */ 29 | public enum InterceptionStage { 30 | @JsonProperty("Request") 31 | REQUEST, 32 | @JsonProperty("HeadersReceived") 33 | HEADERS_RECEIVED 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/PostDataEntry.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.github.kklisura.cdt.protocol.support.annotations.Optional; 24 | 25 | /** Post data entry for HTTP request */ 26 | public class PostDataEntry { 27 | 28 | @Optional private String bytes; 29 | 30 | public String getBytes() { 31 | return bytes; 32 | } 33 | 34 | public void setBytes(String bytes) { 35 | this.bytes = bytes; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/PrivateNetworkRequestPolicy.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum PrivateNetworkRequestPolicy { 26 | @JsonProperty("Allow") 27 | ALLOW, 28 | @JsonProperty("BlockFromInsecureToMorePrivate") 29 | BLOCK_FROM_INSECURE_TO_MORE_PRIVATE, 30 | @JsonProperty("WarnFromInsecureToMorePrivate") 31 | WARN_FROM_INSECURE_TO_MORE_PRIVATE 32 | } 33 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/ResourcePriority.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Loading priority of a resource request. */ 26 | public enum ResourcePriority { 27 | @JsonProperty("VeryLow") 28 | VERY_LOW, 29 | @JsonProperty("Low") 30 | LOW, 31 | @JsonProperty("Medium") 32 | MEDIUM, 33 | @JsonProperty("High") 34 | HIGH, 35 | @JsonProperty("VeryHigh") 36 | VERY_HIGH 37 | } 38 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/ServiceWorkerResponseSource.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Source of serviceworker response. */ 26 | public enum ServiceWorkerResponseSource { 27 | @JsonProperty("cache-storage") 28 | CACHE_STORAGE, 29 | @JsonProperty("http-cache") 30 | HTTP_CACHE, 31 | @JsonProperty("fallback-code") 32 | FALLBACK_CODE, 33 | @JsonProperty("network") 34 | NETWORK 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/TrustTokenOperationType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum TrustTokenOperationType { 26 | @JsonProperty("Issuance") 27 | ISSUANCE, 28 | @JsonProperty("Redemption") 29 | REDEMPTION, 30 | @JsonProperty("Signing") 31 | SIGNING 32 | } 33 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/TrustTokenParamsRefreshPolicy.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * Only set for "token-redemption" type and determine whether to request a fresh SRR or use a still 27 | * valid cached SRR. 28 | */ 29 | public enum TrustTokenParamsRefreshPolicy { 30 | @JsonProperty("UseCached") 31 | USE_CACHED, 32 | @JsonProperty("Refresh") 33 | REFRESH 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/network/WebSocketRequest.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.network; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import java.util.Map; 24 | 25 | /** WebSocket request data. */ 26 | public class WebSocketRequest { 27 | 28 | private Map headers; 29 | 30 | /** HTTP request headers. */ 31 | public Map getHeaders() { 32 | return headers; 33 | } 34 | 35 | /** HTTP request headers. */ 36 | public void setHeaders(Map headers) { 37 | this.headers = headers; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/overlay/ColorFormat.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.overlay; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum ColorFormat { 26 | @JsonProperty("rgb") 27 | RGB, 28 | @JsonProperty("hsl") 29 | HSL, 30 | @JsonProperty("hex") 31 | HEX 32 | } 33 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/overlay/ContrastAlgorithm.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.overlay; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum ContrastAlgorithm { 26 | @JsonProperty("aa") 27 | AA, 28 | @JsonProperty("aaa") 29 | AAA, 30 | @JsonProperty("apca") 31 | APCA 32 | } 33 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/overlay/InspectMode.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.overlay; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum InspectMode { 26 | @JsonProperty("searchForNode") 27 | SEARCH_FOR_NODE, 28 | @JsonProperty("searchForUAShadowDOM") 29 | SEARCH_FOR_UA_SHADOW_DOM, 30 | @JsonProperty("captureAreaScreenshot") 31 | CAPTURE_AREA_SCREENSHOT, 32 | @JsonProperty("showDistances") 33 | SHOW_DISTANCES, 34 | @JsonProperty("none") 35 | NONE 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/overlay/LineStylePattern.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.overlay; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** The line pattern (default: solid) */ 26 | public enum LineStylePattern { 27 | @JsonProperty("dashed") 28 | DASHED, 29 | @JsonProperty("dotted") 30 | DOTTED 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/page/AdFrameType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Indicates whether a frame has been identified as an ad. */ 26 | public enum AdFrameType { 27 | @JsonProperty("none") 28 | NONE, 29 | @JsonProperty("child") 30 | CHILD, 31 | @JsonProperty("root") 32 | ROOT 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/page/CaptureScreenshotFormat.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Image compression format (defaults to png). */ 26 | public enum CaptureScreenshotFormat { 27 | @JsonProperty("jpeg") 28 | JPEG, 29 | @JsonProperty("png") 30 | PNG 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/page/CaptureSnapshotFormat.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Format (defaults to mhtml). */ 26 | public enum CaptureSnapshotFormat { 27 | @JsonProperty("mhtml") 28 | MHTML 29 | } 30 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/page/ClientNavigationDisposition.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum ClientNavigationDisposition { 26 | @JsonProperty("currentTab") 27 | CURRENT_TAB, 28 | @JsonProperty("newTab") 29 | NEW_TAB, 30 | @JsonProperty("newWindow") 31 | NEW_WINDOW, 32 | @JsonProperty("download") 33 | DOWNLOAD 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/page/CrossOriginIsolatedContextType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Indicates whether the frame is cross-origin isolated and why it is the case. */ 26 | public enum CrossOriginIsolatedContextType { 27 | @JsonProperty("Isolated") 28 | ISOLATED, 29 | @JsonProperty("NotIsolated") 30 | NOT_ISOLATED, 31 | @JsonProperty("NotIsolatedFeatureDisabled") 32 | NOT_ISOLATED_FEATURE_DISABLED 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/page/DialogType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Javascript dialog type. */ 26 | public enum DialogType { 27 | @JsonProperty("alert") 28 | ALERT, 29 | @JsonProperty("confirm") 30 | CONFIRM, 31 | @JsonProperty("prompt") 32 | PROMPT, 33 | @JsonProperty("beforeunload") 34 | BEFOREUNLOAD 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/page/GatedAPIFeatures.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum GatedAPIFeatures { 26 | @JsonProperty("SharedArrayBuffers") 27 | SHARED_ARRAY_BUFFERS, 28 | @JsonProperty("SharedArrayBuffersTransferAllowed") 29 | SHARED_ARRAY_BUFFERS_TRANSFER_ALLOWED, 30 | @JsonProperty("PerformanceMeasureMemory") 31 | PERFORMANCE_MEASURE_MEMORY, 32 | @JsonProperty("PerformanceProfile") 33 | PERFORMANCE_PROFILE 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/page/NavigationType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** The type of a frameNavigated event. */ 26 | public enum NavigationType { 27 | @JsonProperty("Navigation") 28 | NAVIGATION, 29 | @JsonProperty("BackForwardCacheRestore") 30 | BACK_FORWARD_CACHE_RESTORE 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/page/PermissionsPolicyBlockReason.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Reason for a permissions policy feature to be disabled. */ 26 | public enum PermissionsPolicyBlockReason { 27 | @JsonProperty("Header") 28 | HEADER, 29 | @JsonProperty("IframeAttribute") 30 | IFRAME_ATTRIBUTE 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/page/PrintToPDFTransferMode.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** return as stream */ 26 | public enum PrintToPDFTransferMode { 27 | @JsonProperty("ReturnAsBase64") 28 | RETURN_AS_BASE_64, 29 | @JsonProperty("ReturnAsStream") 30 | RETURN_AS_STREAM 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/page/SecureContextType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Indicates whether the frame is a secure context and why it is the case. */ 26 | public enum SecureContextType { 27 | @JsonProperty("Secure") 28 | SECURE, 29 | @JsonProperty("SecureLocalhost") 30 | SECURE_LOCALHOST, 31 | @JsonProperty("InsecureScheme") 32 | INSECURE_SCHEME, 33 | @JsonProperty("InsecureAncestor") 34 | INSECURE_ANCESTOR 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/page/SetDownloadBehaviorBehavior.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * Whether to allow all or deny all download requests, or use default Chrome behavior if available 27 | * (otherwise deny). 28 | */ 29 | public enum SetDownloadBehaviorBehavior { 30 | @JsonProperty("deny") 31 | DENY, 32 | @JsonProperty("allow") 33 | ALLOW, 34 | @JsonProperty("default") 35 | DEFAULT 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/page/SetWebLifecycleStateState.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Target lifecycle state */ 26 | public enum SetWebLifecycleStateState { 27 | @JsonProperty("frozen") 28 | FROZEN, 29 | @JsonProperty("active") 30 | ACTIVE 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/page/StartScreencastFormat.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.page; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Image compression format. */ 26 | public enum StartScreencastFormat { 27 | @JsonProperty("jpeg") 28 | JPEG, 29 | @JsonProperty("png") 30 | PNG 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/performance/EnableTimeDomain.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.performance; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Time domain to use for collecting and reporting duration metrics. */ 26 | public enum EnableTimeDomain { 27 | @JsonProperty("timeTicks") 28 | TIME_TICKS, 29 | @JsonProperty("threadTicks") 30 | THREAD_TICKS 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/performance/SetTimeDomainTimeDomain.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.performance; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Time domain */ 26 | public enum SetTimeDomainTimeDomain { 27 | @JsonProperty("timeTicks") 28 | TIME_TICKS, 29 | @JsonProperty("threadTicks") 30 | THREAD_TICKS 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/security/CertificateErrorAction.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.security; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * The action to take when a certificate error occurs. continue will continue processing the request 27 | * and cancel will cancel the request. 28 | */ 29 | public enum CertificateErrorAction { 30 | @JsonProperty("continue") 31 | CONTINUE, 32 | @JsonProperty("cancel") 33 | CANCEL 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/security/MixedContentType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.security; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * A description of mixed content (HTTP resources on HTTPS pages), as defined by 27 | * https://www.w3.org/TR/mixed-content/#categories 28 | */ 29 | public enum MixedContentType { 30 | @JsonProperty("blockable") 31 | BLOCKABLE, 32 | @JsonProperty("optionally-blockable") 33 | OPTIONALLY_BLOCKABLE, 34 | @JsonProperty("none") 35 | NONE 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/security/SafetyTipStatus.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.security; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum SafetyTipStatus { 26 | @JsonProperty("badReputation") 27 | BAD_REPUTATION, 28 | @JsonProperty("lookalike") 29 | LOOKALIKE 30 | } 31 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/security/SecurityState.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.security; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** The security level of a page or resource. */ 26 | public enum SecurityState { 27 | @JsonProperty("unknown") 28 | UNKNOWN, 29 | @JsonProperty("neutral") 30 | NEUTRAL, 31 | @JsonProperty("insecure") 32 | INSECURE, 33 | @JsonProperty("secure") 34 | SECURE, 35 | @JsonProperty("info") 36 | INFO, 37 | @JsonProperty("insecure-broken") 38 | INSECURE_BROKEN 39 | } 40 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/serviceworker/ServiceWorkerVersionRunningStatus.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.serviceworker; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum ServiceWorkerVersionRunningStatus { 26 | @JsonProperty("stopped") 27 | STOPPED, 28 | @JsonProperty("starting") 29 | STARTING, 30 | @JsonProperty("running") 31 | RUNNING, 32 | @JsonProperty("stopping") 33 | STOPPING 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/serviceworker/ServiceWorkerVersionStatus.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.serviceworker; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum ServiceWorkerVersionStatus { 26 | @JsonProperty("new") 27 | NEW, 28 | @JsonProperty("installing") 29 | INSTALLING, 30 | @JsonProperty("installed") 31 | INSTALLED, 32 | @JsonProperty("activating") 33 | ACTIVATING, 34 | @JsonProperty("activated") 35 | ACTIVATED, 36 | @JsonProperty("redundant") 37 | REDUNDANT 38 | } 39 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/systeminfo/ImageType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.systeminfo; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Image format of a given image. */ 26 | public enum ImageType { 27 | @JsonProperty("jpeg") 28 | JPEG, 29 | @JsonProperty("webp") 30 | WEBP, 31 | @JsonProperty("unknown") 32 | UNKNOWN 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/systeminfo/SubsamplingFormat.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.systeminfo; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** YUV subsampling type of the pixels of a given image. */ 26 | public enum SubsamplingFormat { 27 | @JsonProperty("yuv420") 28 | YUV_420, 29 | @JsonProperty("yuv422") 30 | YUV_422, 31 | @JsonProperty("yuv444") 32 | YUV_444 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/tracing/MemoryDumpLevelOfDetail.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.tracing; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * Details exposed when memory request explicitly declared. Keep consistent with 27 | * memory_dump_request_args.h and memory_instrumentation.mojom 28 | */ 29 | public enum MemoryDumpLevelOfDetail { 30 | @JsonProperty("background") 31 | BACKGROUND, 32 | @JsonProperty("light") 33 | LIGHT, 34 | @JsonProperty("detailed") 35 | DETAILED 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/tracing/StartTransferMode.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.tracing; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * Whether to report trace events as series of dataCollected events or to save trace to a stream 27 | * (defaults to `ReportEvents`). 28 | */ 29 | public enum StartTransferMode { 30 | @JsonProperty("ReportEvents") 31 | REPORT_EVENTS, 32 | @JsonProperty("ReturnAsStream") 33 | RETURN_AS_STREAM 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/tracing/StreamCompression.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.tracing; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Compression type to use for traces returned via streams. */ 26 | public enum StreamCompression { 27 | @JsonProperty("none") 28 | NONE, 29 | @JsonProperty("gzip") 30 | GZIP 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/tracing/StreamFormat.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.tracing; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * Data format of a trace. Can be either the legacy JSON format or the protocol buffer format. Note 27 | * that the JSON format will be deprecated soon. 28 | */ 29 | public enum StreamFormat { 30 | @JsonProperty("json") 31 | JSON, 32 | @JsonProperty("proto") 33 | PROTO 34 | } 35 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/tracing/TraceConfigRecordMode.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.tracing; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Controls how the trace buffer stores data. */ 26 | public enum TraceConfigRecordMode { 27 | @JsonProperty("recordUntilFull") 28 | RECORD_UNTIL_FULL, 29 | @JsonProperty("recordContinuously") 30 | RECORD_CONTINUOUSLY, 31 | @JsonProperty("recordAsMuchAsPossible") 32 | RECORD_AS_MUCH_AS_POSSIBLE, 33 | @JsonProperty("echoToConsole") 34 | ECHO_TO_CONSOLE 35 | } 36 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/webaudio/AutomationRate.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.webaudio; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Enum of AudioParam::AutomationRate from the spec */ 26 | public enum AutomationRate { 27 | @JsonProperty("a-rate") 28 | A_RATE, 29 | @JsonProperty("k-rate") 30 | K_RATE 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/webaudio/ChannelCountMode.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.webaudio; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Enum of AudioNode::ChannelCountMode from the spec */ 26 | public enum ChannelCountMode { 27 | @JsonProperty("clamped-max") 28 | CLAMPED_MAX, 29 | @JsonProperty("explicit") 30 | EXPLICIT, 31 | @JsonProperty("max") 32 | MAX 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/webaudio/ChannelInterpretation.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.webaudio; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Enum of AudioNode::ChannelInterpretation from the spec */ 26 | public enum ChannelInterpretation { 27 | @JsonProperty("discrete") 28 | DISCRETE, 29 | @JsonProperty("speakers") 30 | SPEAKERS 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/webaudio/ContextState.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.webaudio; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Enum of AudioContextState from the spec */ 26 | public enum ContextState { 27 | @JsonProperty("suspended") 28 | SUSPENDED, 29 | @JsonProperty("running") 30 | RUNNING, 31 | @JsonProperty("closed") 32 | CLOSED 33 | } 34 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/webaudio/ContextType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.webaudio; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** Enum of BaseAudioContext types */ 26 | public enum ContextType { 27 | @JsonProperty("realtime") 28 | REALTIME, 29 | @JsonProperty("offline") 30 | OFFLINE 31 | } 32 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/webauthn/AuthenticatorProtocol.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.webauthn; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum AuthenticatorProtocol { 26 | @JsonProperty("u2f") 27 | U_2F, 28 | @JsonProperty("ctap2") 29 | CTAP_2 30 | } 31 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/webauthn/AuthenticatorTransport.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.webauthn; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum AuthenticatorTransport { 26 | @JsonProperty("usb") 27 | USB, 28 | @JsonProperty("nfc") 29 | NFC, 30 | @JsonProperty("ble") 31 | BLE, 32 | @JsonProperty("cable") 33 | CABLE, 34 | @JsonProperty("internal") 35 | INTERNAL 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/protocol/types/webauthn/Ctap2Version.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.types.webauthn; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | public enum Ctap2Version { 26 | @JsonProperty("ctap2_0") 27 | CTAP_2_0, 28 | @JsonProperty("ctap2_1") 29 | CTAP_2_1 30 | } 31 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/services/exceptions/ChromeServiceException.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.services.exceptions; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** 24 | * Chrome service exception. 25 | * 26 | * @author Kenan Klisura 27 | */ 28 | public class ChromeServiceException extends RuntimeException { 29 | public ChromeServiceException(String message) { 30 | super(message); 31 | } 32 | 33 | public ChromeServiceException(String message, Throwable cause) { 34 | super(message, cause); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/services/exceptions/WebSocketServiceException.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.services.exceptions; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** 24 | * Web socket service exception. 25 | * 26 | * @author Kenan Klisura 27 | */ 28 | public class WebSocketServiceException extends Exception { 29 | public WebSocketServiceException(String message) { 30 | super(message); 31 | } 32 | 33 | public WebSocketServiceException(String message, Throwable cause) { 34 | super(message, cause); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/services/executors/EventExecutorService.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.services.executors; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** 24 | * Event executor service. 25 | * 26 | * @author Kenan Klisura 27 | */ 28 | public interface EventExecutorService { 29 | /** 30 | * Executes a runnable in separate thread. 31 | * 32 | * @param runnable Runnable. 33 | */ 34 | void execute(Runnable runnable); 35 | 36 | /** Shutdowns executor service. */ 37 | void shutdown(); 38 | } 39 | -------------------------------------------------------------------------------- /cdt-java-client/src/main/java/com/github/kklisura/cdt/services/factory/WebSocketContainerFactory.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.services.factory; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-client 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import javax.websocket.WebSocketContainer; 24 | 25 | /** 26 | * WebSocketContainer factory creates and returns a WebSocketContainer. 27 | * 28 | * @author Kenan Klisura 29 | */ 30 | @FunctionalInterface 31 | public interface WebSocketContainerFactory { 32 | /** 33 | * Returns a WebSocket container. 34 | * 35 | * @return Web socket container. 36 | */ 37 | WebSocketContainer getWebSocketContainer(); 38 | } 39 | -------------------------------------------------------------------------------- /cdt-java-client/src/test/resources/fixture/chrome/tab.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "", 3 | "devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:54011/devtools/page/D4CEC22C995F1A9C8526737014CD436D", 4 | "id": "D4CEC22C995F1A9C8526737014CD436D", 5 | "title": "", 6 | "type": "page", 7 | "url": "about:blank", 8 | "webSocketDebuggerUrl": "ws://localhost:54011/devtools/page/D4CEC22C995F1A9C8526737014CD436D", 9 | "faviconUrl": "https://www.google.ba/images/branding/product/ico/googleg_lodp.ico" 10 | } -------------------------------------------------------------------------------- /cdt-java-client/src/test/resources/fixture/chrome/tabs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "", 4 | "devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:9222/devtools/page/(2C5C79DD1137419CC8839D61D91CEB2A)", 5 | "faviconUrl": "https://www.google.ba/images/branding/product/ico/googleg_lodp.ico", 6 | "id": "(2C5C79DD1137419CC8839D61D91CEB2A)", 7 | "title": "Google", 8 | "type": "page", 9 | "url": "https://www.google.ba/?gws_rd=cr&dcr=0&ei=93piWq2oKqqJmgWIzbdg", 10 | "webSocketDebuggerUrl": "ws://localhost:9222/devtools/page/(2C5C79DD1137419CC8839D61D91CEB2A)" 11 | }, 12 | { 13 | "description": "", 14 | "devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:9222/devtools/page/(199C89058E598898EA40AFA81EB69E60)", 15 | "id": "(199C89058E598898EA40AFA81EB69E60)", 16 | "title": "Example Domain", 17 | "type": "page", 18 | "url": "http://example.com/", 19 | "webSocketDebuggerUrl": "ws://localhost:9222/devtools/page/(199C89058E598898EA40AFA81EB69E60)" 20 | } 21 | ] -------------------------------------------------------------------------------- /cdt-java-client/src/test/resources/fixture/chrome/version.json: -------------------------------------------------------------------------------- 1 | { 2 | "Browser": "Chrome/63.0.3239.132", 3 | "Protocol-Version": "1.2", 4 | "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36", 5 | "V8-Version": "6.3.292.49", 6 | "WebKit-Version": "537.36 (@2e6edcfee630baa3775f37cb11796b1603a64360)", 7 | "webSocketDebuggerUrl": "ws://localhost:9222/devtools/browser/63318df0-09e4-4143-910e-f89525dda26b" 8 | } -------------------------------------------------------------------------------- /cdt-java-protocol-builder/Makefile: -------------------------------------------------------------------------------- 1 | 2 | MVN=mvn 3 | 4 | SONAR_HOST=http://localhost:9999 5 | 6 | sonar-analysis: 7 | # Running sonar analysis 8 | $(MVN) clean test && $(MVN) sonar:sonar -Dsonar.host.url=$(SONAR_HOST) \ 9 | -Dsonar.tests="src/test" 10 | 11 | clean: 12 | $(MVN) clean 13 | 14 | verify: 15 | $(MVN) clean test 16 | 17 | build: 18 | # Building... 19 | $(MVN) clean package 20 | -------------------------------------------------------------------------------- /cdt-java-protocol-builder/README.md: -------------------------------------------------------------------------------- 1 | # Chrome DevTools Java Protocol Builder 2 | 3 | ## Description 4 | 5 | Chrome DevTools Java Protocol Builder parses DevTools `protocol.json` - a protocol definition file and outputs the java classes and interfaces. 6 | 7 | ## Building 8 | 9 | To build jar file either run: 10 | 11 | `make build` or `mvn clean package` 12 | 13 | ## Running 14 | 15 | ``` 16 | java -jar target/cdt-java-protocol-builder.jar --base-package="com.github.kklisura.cdt.protocol" \ 17 | --output=../cdt-java-client \ 18 | --protocol=../protocol.json 19 | ``` 20 | 21 | This would parse `./protocol.json` file and it would create classes, interfaces, enums in `../cdt-java-client` with a package name of `com.github.kklisura.cdt.protocol`. 22 | 23 | ## Running unit tests 24 | 25 | `make verify` 26 | 27 | ## Sonar analysis 28 | 29 | `make sonar-analysis` 30 | 31 | ## License 32 | 33 | Chrome DevTools Java Protocol Builder is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE.txt) for the full license text. 34 | -------------------------------------------------------------------------------- /cdt-java-protocol-builder/src/license/THIRD-PARTY.properties: -------------------------------------------------------------------------------- 1 | # Generated by org.codehaus.mojo.license.AddThirdPartyMojo 2 | #------------------------------------------------------------------------------- 3 | # Already used licenses in project : 4 | # - BSD 3-Clause License 5 | # - Dual license consisting of the CDDL v1.1 and GPL v2 6 | # - Eclipse Public License v1.0 7 | # - GNU General Public License, version 2, with the Classpath Exception 8 | # - GNU Lesser General Public License 9 | # - MIT License 10 | # - MIT license 11 | # - Public Domain 12 | # - The Apache Software License, Version 2.0 13 | # - The MIT License 14 | #------------------------------------------------------------------------------- 15 | # Please fill the missing licenses for dependencies : 16 | # 17 | # 18 | #Tue Feb 06 00:25:40 CET 2018 19 | classworlds--classworlds--1.1-alpha-2=apache_v2 20 | com.github.kklisura.cdt--cdt-protocol-parser--1.0-SNAPSHOT=apache_v2 21 | commons-beanutils--commons-beanutils--1.7.0=apache_v2 22 | commons-codec--commons-codec--1.2=apache_v2 23 | commons-digester--commons-digester--1.6=apache_v2 24 | org.codehaus.plexus--plexus-container-default--1.0-alpha-9-stable-1=apache_v2 25 | org.codehaus.plexus--plexus-i18n--1.0-beta-7=apache_v2 26 | org.codehaus.plexus--plexus-velocity--1.1.7=apache_v2 27 | oro--oro--2.0.8=apache_v2 28 | -------------------------------------------------------------------------------- /cdt-java-protocol-builder/src/main/java/com/github/kklisura/cdt/definition/builder/support/java/builder/Builder.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.definition.builder.support.java.builder; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-protocol-builder 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import java.io.IOException; 24 | 25 | /** 26 | * Builder contract. 27 | * 28 | * @author Kenan Klisura 29 | */ 30 | public interface Builder { 31 | /** 32 | * Builds an item. Generates a code. 33 | * 34 | * @param sourceProject Source project. 35 | * @throws IOException If saving fails. 36 | */ 37 | void build(SourceProject sourceProject) throws IOException; 38 | } 39 | -------------------------------------------------------------------------------- /cdt-java-protocol-builder/src/main/java/com/github/kklisura/cdt/definition/builder/support/java/builder/JavaImportAwareBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.definition.builder.support.java.builder; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-protocol-builder 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | /** 24 | * Import aware builder. 25 | * 26 | * @author Kenan Klisura 27 | */ 28 | public interface JavaImportAwareBuilder extends Builder { 29 | /** 30 | * Adds import statement to this interface. 31 | * 32 | * @param packageName Package name. 33 | * @param object Object name. 34 | */ 35 | void addImport(String packageName, String object); 36 | } 37 | -------------------------------------------------------------------------------- /cdt-java-protocol-builder/src/main/java/com/github/kklisura/cdt/definition/builder/support/protocol/builder/support/DomainTypeResolver.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.definition.builder.support.protocol.builder.support; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-protocol-builder 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.github.kklisura.cdt.protocol.definition.types.Type; 24 | 25 | /** Domain type resolves type given a domain and its object. */ 26 | @FunctionalInterface 27 | public interface DomainTypeResolver { 28 | Type resolve(String domain, String object); 29 | } 30 | -------------------------------------------------------------------------------- /cdt-protocol-parser/THIRD-PARTY.txt: -------------------------------------------------------------------------------- 1 | 2 | Lists of 8 third-party dependencies. 3 | (The Apache Software License, Version 2.0) Jackson-annotations (com.fasterxml.jackson.core:jackson-annotations:2.11.3 - http://github.com/FasterXML/jackson) 4 | (The Apache Software License, Version 2.0) Jackson-core (com.fasterxml.jackson.core:jackson-core:2.11.3 - https://github.com/FasterXML/jackson-core) 5 | (The Apache Software License, Version 2.0) jackson-databind (com.fasterxml.jackson.core:jackson-databind:2.11.3 - http://github.com/FasterXML/jackson) 6 | (The Apache Software License, Version 2.0) JSON library from Android SDK (com.vaadin.external.google:android-json:0.0.20131108.vaadin1 - http://developer.android.com/sdk) 7 | (Eclipse Public License v1.0) JUnit (junit:junit:4.13.1 - http://junit.org) 8 | (BSD 3-Clause License) Hamcrest Core (org.hamcrest:hamcrest-core:1.3 - https://github.com/hamcrest/JavaHamcrest/hamcrest-core) 9 | (The MIT License) Project Lombok (org.projectlombok:lombok:1.18.2 - https://projectlombok.org) 10 | (The Apache Software License, Version 2.0) JSONassert (org.skyscreamer:jsonassert:1.5.0 - https://github.com/skyscreamer/JSONassert) 11 | -------------------------------------------------------------------------------- /cdt-protocol-parser/src/main/java/com/github/kklisura/cdt/protocol/definition/types/Version.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.definition.types; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-protocol-builder 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.annotation.JsonFormat; 24 | import lombok.Getter; 25 | 26 | /** 27 | * Dev tools protocol version. 28 | * 29 | * @author Kenan Klisura 30 | */ 31 | @Getter 32 | public class Version { 33 | @JsonFormat(shape = JsonFormat.Shape.STRING) 34 | private int major; 35 | 36 | @JsonFormat(shape = JsonFormat.Shape.STRING) 37 | private int minor; 38 | } 39 | -------------------------------------------------------------------------------- /cdt-protocol-parser/src/main/java/com/github/kklisura/cdt/protocol/definition/types/type/IntegerType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.definition.types.type; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-protocol-builder 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.databind.JsonDeserializer; 24 | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; 25 | import com.github.kklisura.cdt.protocol.definition.types.Type; 26 | 27 | /** 28 | * Integer type. 29 | * 30 | * @author Kenan Klisura 31 | */ 32 | @JsonDeserialize(using = JsonDeserializer.None.class) 33 | public class IntegerType extends Type {} 34 | -------------------------------------------------------------------------------- /cdt-protocol-parser/src/main/java/com/github/kklisura/cdt/protocol/definition/types/type/NumberType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.definition.types.type; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-protocol-builder 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.databind.JsonDeserializer; 24 | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; 25 | import com.github.kklisura.cdt.protocol.definition.types.Type; 26 | 27 | /** 28 | * Number type. 29 | * 30 | * @author Kenan Klisura 31 | */ 32 | @JsonDeserialize(using = JsonDeserializer.None.class) 33 | public class NumberType extends Type {} 34 | -------------------------------------------------------------------------------- /cdt-protocol-parser/src/main/java/com/github/kklisura/cdt/protocol/definition/types/type/StringType.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.definition.types.type; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-protocol-builder 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.databind.JsonDeserializer; 24 | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; 25 | import com.github.kklisura.cdt.protocol.definition.types.Type; 26 | 27 | /** 28 | * String type. 29 | * 30 | * @author Kenan Klisura 31 | */ 32 | @JsonDeserialize(using = JsonDeserializer.None.class) 33 | public class StringType extends Type {} 34 | -------------------------------------------------------------------------------- /cdt-protocol-parser/src/main/java/com/github/kklisura/cdt/protocol/definition/types/type/array/items/IntegerArrayItem.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.definition.types.type.array.items; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-protocol-builder 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.databind.JsonDeserializer; 24 | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; 25 | import lombok.Getter; 26 | 27 | /** 28 | * Integer array item type. 29 | * 30 | * @author Kenan Klisura 31 | */ 32 | @Getter 33 | @JsonDeserialize(using = JsonDeserializer.None.class) 34 | public class IntegerArrayItem extends TypedArrayItem {} 35 | -------------------------------------------------------------------------------- /cdt-protocol-parser/src/main/java/com/github/kklisura/cdt/protocol/definition/types/type/array/items/NumberArrayItem.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.definition.types.type.array.items; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-protocol-builder 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.databind.JsonDeserializer; 24 | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; 25 | import lombok.Getter; 26 | 27 | /** 28 | * Number array item type. 29 | * 30 | * @author Kenan Klisura 31 | */ 32 | @Getter 33 | @JsonDeserialize(using = JsonDeserializer.None.class) 34 | public class NumberArrayItem extends TypedArrayItem {} 35 | -------------------------------------------------------------------------------- /cdt-protocol-parser/src/main/java/com/github/kklisura/cdt/protocol/definition/types/type/array/items/StringArrayItem.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.definition.types.type.array.items; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-protocol-builder 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.fasterxml.jackson.databind.JsonDeserializer; 24 | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; 25 | import lombok.Getter; 26 | 27 | /** 28 | * String array item type. 29 | * 30 | * @author Kenan Klisura 31 | */ 32 | @Getter 33 | @JsonDeserialize(using = JsonDeserializer.None.class) 34 | public class StringArrayItem extends TypedArrayItem {} 35 | -------------------------------------------------------------------------------- /cdt-protocol-parser/src/main/java/com/github/kklisura/cdt/protocol/definition/types/type/array/items/TypedArrayItem.java: -------------------------------------------------------------------------------- 1 | package com.github.kklisura.cdt.protocol.definition.types.type.array.items; 2 | 3 | /*- 4 | * #%L 5 | * cdt-java-protocol-builder 6 | * %% 7 | * Copyright (C) 2018 - 2021 Kenan Klisura 8 | * %% 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | * #L% 21 | */ 22 | 23 | import com.github.kklisura.cdt.protocol.definition.types.type.array.ArrayItem; 24 | import lombok.Getter; 25 | 26 | /** 27 | * Typed array item. 28 | * 29 | * @author Kenan Klisura 30 | */ 31 | @Getter 32 | public abstract class TypedArrayItem extends ArrayItem { 33 | private String type; 34 | } 35 | --------------------------------------------------------------------------------