예제 #1
0
 public PageAdapter(DevToolsSession session)
 {
     m_session = session ?? throw new ArgumentNullException(nameof(session));
     m_session.DevToolsEventReceived              += OnDevToolsEventReceived;
     m_eventMap["domContentEventFired"]            = new DevToolsEventData(typeof(DomContentEventFiredEventArgs), OnDomContentEventFired);
     m_eventMap["frameAttached"]                   = new DevToolsEventData(typeof(FrameAttachedEventArgs), OnFrameAttached);
     m_eventMap["frameClearedScheduledNavigation"] = new DevToolsEventData(typeof(FrameClearedScheduledNavigationEventArgs), OnFrameClearedScheduledNavigation);
     m_eventMap["frameDetached"]                   = new DevToolsEventData(typeof(FrameDetachedEventArgs), OnFrameDetached);
     m_eventMap["frameNavigated"]                  = new DevToolsEventData(typeof(FrameNavigatedEventArgs), OnFrameNavigated);
     m_eventMap["frameResized"]                = new DevToolsEventData(typeof(FrameResizedEventArgs), OnFrameResized);
     m_eventMap["frameRequestedNavigation"]    = new DevToolsEventData(typeof(FrameRequestedNavigationEventArgs), OnFrameRequestedNavigation);
     m_eventMap["frameScheduledNavigation"]    = new DevToolsEventData(typeof(FrameScheduledNavigationEventArgs), OnFrameScheduledNavigation);
     m_eventMap["frameStartedLoading"]         = new DevToolsEventData(typeof(FrameStartedLoadingEventArgs), OnFrameStartedLoading);
     m_eventMap["frameStoppedLoading"]         = new DevToolsEventData(typeof(FrameStoppedLoadingEventArgs), OnFrameStoppedLoading);
     m_eventMap["interstitialHidden"]          = new DevToolsEventData(typeof(InterstitialHiddenEventArgs), OnInterstitialHidden);
     m_eventMap["interstitialShown"]           = new DevToolsEventData(typeof(InterstitialShownEventArgs), OnInterstitialShown);
     m_eventMap["javascriptDialogClosed"]      = new DevToolsEventData(typeof(JavascriptDialogClosedEventArgs), OnJavascriptDialogClosed);
     m_eventMap["javascriptDialogOpening"]     = new DevToolsEventData(typeof(JavascriptDialogOpeningEventArgs), OnJavascriptDialogOpening);
     m_eventMap["lifecycleEvent"]              = new DevToolsEventData(typeof(LifecycleEventEventArgs), OnLifecycleEvent);
     m_eventMap["loadEventFired"]              = new DevToolsEventData(typeof(LoadEventFiredEventArgs), OnLoadEventFired);
     m_eventMap["navigatedWithinDocument"]     = new DevToolsEventData(typeof(NavigatedWithinDocumentEventArgs), OnNavigatedWithinDocument);
     m_eventMap["screencastFrame"]             = new DevToolsEventData(typeof(ScreencastFrameEventArgs), OnScreencastFrame);
     m_eventMap["screencastVisibilityChanged"] = new DevToolsEventData(typeof(ScreencastVisibilityChangedEventArgs), OnScreencastVisibilityChanged);
     m_eventMap["windowOpen"] = new DevToolsEventData(typeof(WindowOpenEventArgs), OnWindowOpen);
     m_eventMap["compilationCacheProduced"] = new DevToolsEventData(typeof(CompilationCacheProducedEventArgs), OnCompilationCacheProduced);
 }
예제 #2
0
 public ProfilerAdapter(DevToolsSession session)
 {
     m_session = session ?? throw new ArgumentNullException(nameof(session));
     m_session.DevToolsEventReceived     += OnDevToolsEventReceived;
     m_eventMap["consoleProfileFinished"] = new DevToolsEventData(typeof(ConsoleProfileFinishedEventArgs), OnConsoleProfileFinished);
     m_eventMap["consoleProfileStarted"]  = new DevToolsEventData(typeof(ConsoleProfileStartedEventArgs), OnConsoleProfileStarted);
 }
예제 #3
0
 public SecurityAdapter(DevToolsSession session)
 {
     m_session = session ?? throw new ArgumentNullException(nameof(session));
     m_session.DevToolsEventReceived   += OnDevToolsEventReceived;
     m_eventMap["certificateError"]     = new DevToolsEventData(typeof(CertificateErrorEventArgs), OnCertificateError);
     m_eventMap["securityStateChanged"] = new DevToolsEventData(typeof(SecurityStateChangedEventArgs), OnSecurityStateChanged);
 }
예제 #4
0
 public DebuggerAdapter(DevToolsSession session)
 {
     m_session = session ?? throw new ArgumentNullException(nameof(session));
     m_session.DevToolsEventReceived  += OnDevToolsEventReceived;
     m_eventMap["breakpointResolved"]  = new DevToolsEventData(typeof(BreakpointResolvedEventArgs), OnBreakpointResolved);
     m_eventMap["paused"]              = new DevToolsEventData(typeof(PausedEventArgs), OnPaused);
     m_eventMap["resumed"]             = new DevToolsEventData(typeof(ResumedEventArgs), OnResumed);
     m_eventMap["scriptFailedToParse"] = new DevToolsEventData(typeof(ScriptFailedToParseEventArgs), OnScriptFailedToParse);
     m_eventMap["scriptParsed"]        = new DevToolsEventData(typeof(ScriptParsedEventArgs), OnScriptParsed);
 }
예제 #5
0
 public TargetAdapter(DevToolsSession session)
 {
     m_session = session ?? throw new ArgumentNullException(nameof(session));
     m_session.DevToolsEventReceived        += OnDevToolsEventReceived;
     m_eventMap["attachedToTarget"]          = new DevToolsEventData(typeof(AttachedToTargetEventArgs), OnAttachedToTarget);
     m_eventMap["detachedFromTarget"]        = new DevToolsEventData(typeof(DetachedFromTargetEventArgs), OnDetachedFromTarget);
     m_eventMap["receivedMessageFromTarget"] = new DevToolsEventData(typeof(ReceivedMessageFromTargetEventArgs), OnReceivedMessageFromTarget);
     m_eventMap["targetCreated"]             = new DevToolsEventData(typeof(TargetCreatedEventArgs), OnTargetCreated);
     m_eventMap["targetDestroyed"]           = new DevToolsEventData(typeof(TargetDestroyedEventArgs), OnTargetDestroyed);
     m_eventMap["targetCrashed"]             = new DevToolsEventData(typeof(TargetCrashedEventArgs), OnTargetCrashed);
     m_eventMap["targetInfoChanged"]         = new DevToolsEventData(typeof(TargetInfoChangedEventArgs), OnTargetInfoChanged);
 }
예제 #6
0
 public RuntimeAdapter(DevToolsSession session)
 {
     m_session = session ?? throw new ArgumentNullException(nameof(session));
     m_session.DevToolsEventReceived        += OnDevToolsEventReceived;
     m_eventMap["bindingCalled"]             = new DevToolsEventData(typeof(BindingCalledEventArgs), OnBindingCalled);
     m_eventMap["consoleAPICalled"]          = new DevToolsEventData(typeof(ConsoleAPICalledEventArgs), OnConsoleAPICalled);
     m_eventMap["exceptionRevoked"]          = new DevToolsEventData(typeof(ExceptionRevokedEventArgs), OnExceptionRevoked);
     m_eventMap["exceptionThrown"]           = new DevToolsEventData(typeof(ExceptionThrownEventArgs), OnExceptionThrown);
     m_eventMap["executionContextCreated"]   = new DevToolsEventData(typeof(ExecutionContextCreatedEventArgs), OnExecutionContextCreated);
     m_eventMap["executionContextDestroyed"] = new DevToolsEventData(typeof(ExecutionContextDestroyedEventArgs), OnExecutionContextDestroyed);
     m_eventMap["executionContextsCleared"]  = new DevToolsEventData(typeof(ExecutionContextsClearedEventArgs), OnExecutionContextsCleared);
     m_eventMap["inspectRequested"]          = new DevToolsEventData(typeof(InspectRequestedEventArgs), OnInspectRequested);
 }
예제 #7
0
 public DOMAdapter(DevToolsSession session)
 {
     m_session = session ?? throw new ArgumentNullException(nameof(session));
     m_session.DevToolsEventReceived      += OnDevToolsEventReceived;
     m_eventMap["attributeModified"]       = new DevToolsEventData(typeof(AttributeModifiedEventArgs), OnAttributeModified);
     m_eventMap["attributeRemoved"]        = new DevToolsEventData(typeof(AttributeRemovedEventArgs), OnAttributeRemoved);
     m_eventMap["characterDataModified"]   = new DevToolsEventData(typeof(CharacterDataModifiedEventArgs), OnCharacterDataModified);
     m_eventMap["childNodeCountUpdated"]   = new DevToolsEventData(typeof(ChildNodeCountUpdatedEventArgs), OnChildNodeCountUpdated);
     m_eventMap["childNodeInserted"]       = new DevToolsEventData(typeof(ChildNodeInsertedEventArgs), OnChildNodeInserted);
     m_eventMap["childNodeRemoved"]        = new DevToolsEventData(typeof(ChildNodeRemovedEventArgs), OnChildNodeRemoved);
     m_eventMap["distributedNodesUpdated"] = new DevToolsEventData(typeof(DistributedNodesUpdatedEventArgs), OnDistributedNodesUpdated);
     m_eventMap["documentUpdated"]         = new DevToolsEventData(typeof(DocumentUpdatedEventArgs), OnDocumentUpdated);
     m_eventMap["inlineStyleInvalidated"]  = new DevToolsEventData(typeof(InlineStyleInvalidatedEventArgs), OnInlineStyleInvalidated);
     m_eventMap["pseudoElementAdded"]      = new DevToolsEventData(typeof(PseudoElementAddedEventArgs), OnPseudoElementAdded);
     m_eventMap["pseudoElementRemoved"]    = new DevToolsEventData(typeof(PseudoElementRemovedEventArgs), OnPseudoElementRemoved);
     m_eventMap["setChildNodes"]           = new DevToolsEventData(typeof(SetChildNodesEventArgs), OnSetChildNodes);
     m_eventMap["shadowRootPopped"]        = new DevToolsEventData(typeof(ShadowRootPoppedEventArgs), OnShadowRootPopped);
     m_eventMap["shadowRootPushed"]        = new DevToolsEventData(typeof(ShadowRootPushedEventArgs), OnShadowRootPushed);
 }
예제 #8
0
 public NetworkAdapter(DevToolsSession session)
 {
     m_session = session ?? throw new ArgumentNullException(nameof(session));
     m_session.DevToolsEventReceived                 += OnDevToolsEventReceived;
     m_eventMap["dataReceived"]                       = new DevToolsEventData(typeof(DataReceivedEventArgs), OnDataReceived);
     m_eventMap["eventSourceMessageReceived"]         = new DevToolsEventData(typeof(EventSourceMessageReceivedEventArgs), OnEventSourceMessageReceived);
     m_eventMap["loadingFailed"]                      = new DevToolsEventData(typeof(LoadingFailedEventArgs), OnLoadingFailed);
     m_eventMap["loadingFinished"]                    = new DevToolsEventData(typeof(LoadingFinishedEventArgs), OnLoadingFinished);
     m_eventMap["requestIntercepted"]                 = new DevToolsEventData(typeof(RequestInterceptedEventArgs), OnRequestIntercepted);
     m_eventMap["requestServedFromCache"]             = new DevToolsEventData(typeof(RequestServedFromCacheEventArgs), OnRequestServedFromCache);
     m_eventMap["requestWillBeSent"]                  = new DevToolsEventData(typeof(RequestWillBeSentEventArgs), OnRequestWillBeSent);
     m_eventMap["resourceChangedPriority"]            = new DevToolsEventData(typeof(ResourceChangedPriorityEventArgs), OnResourceChangedPriority);
     m_eventMap["signedExchangeReceived"]             = new DevToolsEventData(typeof(SignedExchangeReceivedEventArgs), OnSignedExchangeReceived);
     m_eventMap["responseReceived"]                   = new DevToolsEventData(typeof(ResponseReceivedEventArgs), OnResponseReceived);
     m_eventMap["webSocketClosed"]                    = new DevToolsEventData(typeof(WebSocketClosedEventArgs), OnWebSocketClosed);
     m_eventMap["webSocketCreated"]                   = new DevToolsEventData(typeof(WebSocketCreatedEventArgs), OnWebSocketCreated);
     m_eventMap["webSocketFrameError"]                = new DevToolsEventData(typeof(WebSocketFrameErrorEventArgs), OnWebSocketFrameError);
     m_eventMap["webSocketFrameReceived"]             = new DevToolsEventData(typeof(WebSocketFrameReceivedEventArgs), OnWebSocketFrameReceived);
     m_eventMap["webSocketFrameSent"]                 = new DevToolsEventData(typeof(WebSocketFrameSentEventArgs), OnWebSocketFrameSent);
     m_eventMap["webSocketHandshakeResponseReceived"] = new DevToolsEventData(typeof(WebSocketHandshakeResponseReceivedEventArgs), OnWebSocketHandshakeResponseReceived);
     m_eventMap["webSocketWillSendHandshakeRequest"]  = new DevToolsEventData(typeof(WebSocketWillSendHandshakeRequestEventArgs), OnWebSocketWillSendHandshakeRequest);
 }
예제 #9
0
 public EmulationAdapter(DevToolsSession session)
 {
     m_session = session ?? throw new ArgumentNullException(nameof(session));
     m_session.DevToolsEventReceived       += OnDevToolsEventReceived;
     m_eventMap["virtualTimeBudgetExpired"] = new DevToolsEventData(typeof(VirtualTimeBudgetExpiredEventArgs), OnVirtualTimeBudgetExpired);
 }
예제 #10
0
 public PerformanceAdapter(DevToolsSession session)
 {
     m_session = session ?? throw new ArgumentNullException(nameof(session));
     m_session.DevToolsEventReceived += OnDevToolsEventReceived;
     m_eventMap["metrics"]            = new DevToolsEventData(typeof(MetricsEventArgs), OnMetrics);
 }
예제 #11
0
 public LogAdapter(DevToolsSession session)
 {
     m_session = session ?? throw new ArgumentNullException(nameof(session));
     m_session.DevToolsEventReceived += OnDevToolsEventReceived;
     m_eventMap["entryAdded"]         = new DevToolsEventData(typeof(EntryAddedEventArgs), OnEntryAdded);
 }