• Home
  • Raw
  • Download

Lines Matching full:handler

58 void InspectorServer::OnValidate(std::function<void()> &&handler)  in OnValidate()  argument
60 server_.OnValidate([handler = std::move(handler)]() { in OnValidate()
62 handler(); in OnValidate()
70 void InspectorServer::OnOpen(std::function<void()> &&handler) in OnOpen() argument
72 server_.OnOpen([this, handler = std::move(handler)]() { in OnOpen()
81 handler(); in OnOpen()
85 void InspectorServer::OnFail(std::function<void()> &&handler) in OnFail() argument
87 server_.OnFail([handler = std::move(handler)]() { in OnFail()
89 handler(); in OnFail()
236 std::function<void(PtThread, std::string_view, size_t)> &&handler) in OnCallDebuggerContinueToLocation() argument
240 …[this, handler = std::move(handler)](auto &sessionId, const auto &params) -> Server::MethodRespons… in OnCallDebuggerContinueToLocation()
248 handler(thread, sourceManager_.GetSourceFileName(location->GetScriptId()), in OnCallDebuggerContinueToLocation()
255 void InspectorServer::OnCallDebuggerEnable(std::function<void()> &&handler) in OnCallDebuggerEnable() argument
265 server_.OnCall("Debugger.enable", [handler = std::move(handler)](auto, auto &) { in OnCallDebuggerEnable()
266 handler(); in OnCallDebuggerEnable()
272 std::function<std::set<size_t>(std::string_view, size_t, size_t, bool)> &&handler) in OnCallDebuggerGetPossibleBreakpoints() argument
276 … [this, handler = std::move(handler)](auto &, const JsonObject &params) -> Server::MethodResponse { in OnCallDebuggerGetPossibleBreakpoints()
301 … auto lineNumbers = handler(sourceManager_.GetSourceFileName(scriptId), optStart->GetLineNumber(), in OnCallDebuggerGetPossibleBreakpoints()
312 …pectorServer::OnCallDebuggerGetScriptSource(std::function<std::string(std::string_view)> &&handler) in OnCallDebuggerGetScriptSource() argument
316 [this, handler = std::move(handler)](auto &, auto &params) -> Server::MethodResponse { in OnCallDebuggerGetScriptSource()
321 std::make_unique<ScriptSourceResponse>(handler(sourceFile))); in OnCallDebuggerGetScriptSource()
329 void InspectorServer::OnCallDebuggerPause(std::function<void(PtThread)> &&handler) in OnCallDebuggerPause() argument
331 server_.OnCall("Debugger.pause", [this, handler = std::move(handler)](auto &sessionId, auto &) { in OnCallDebuggerPause()
333 handler(thread); in OnCallDebuggerPause()
338 …pectorServer::OnCallDebuggerRemoveBreakpoint(std::function<void(PtThread, BreakpointId)> &&handler) in OnCallDebuggerRemoveBreakpoint() argument
342 … [this, handler = std::move(handler)](auto &sessionId, auto &params) -> Server::MethodResponse { in OnCallDebuggerRemoveBreakpoint()
345 handler(sessionManager_.GetThreadBySessionId(sessionId), *breakpointId); in OnCallDebuggerRemoveBreakpoint()
380 …er::OnCallDebuggerRemoveBreakpointsByUrl(std::function<void(PtThread, SourceFileFilter)> &&handler) in OnCallDebuggerRemoveBreakpointsByUrl() argument
384 … [this, handler = std::move(handler)](auto &sessionId, auto &params) -> Server::MethodResponse { in OnCallDebuggerRemoveBreakpointsByUrl()
391 handler(sessionManager_.GetThreadBySessionId(sessionId), GetUrlFileFilter(*url)); in OnCallDebuggerRemoveBreakpointsByUrl()
397 void InspectorServer::OnCallDebuggerRestartFrame(std::function<void(PtThread, FrameId)> &&handler) in OnCallDebuggerRestartFrame() argument
407 … [this, handler = std::move(handler)](auto &sessionId, auto &params) -> Server::MethodResponse { in OnCallDebuggerRestartFrame()
416 handler(thread, *frameId); in OnCallDebuggerRestartFrame()
422 void InspectorServer::OnCallDebuggerResume(std::function<void(PtThread)> &&handler) in OnCallDebuggerResume() argument
424 … server_.OnCall("Debugger.resume", [this, handler = std::move(handler)](auto &sessionId, auto &) { in OnCallDebuggerResume()
426 handler(thread); in OnCallDebuggerResume()
431 void InspectorServer::OnCallDebuggerSetBreakpoint(std::function<SetBreakpointHandler> &&handler) in OnCallDebuggerSetBreakpoint() argument
452 … [this, handler = std::move(handler)](auto &sessionId, auto &params) -> Server::MethodResponse { in OnCallDebuggerSetBreakpoint()
465 auto id = handler( in OnCallDebuggerSetBreakpoint()
481 const std::function<SetBreakpointHandler> &handler) in SetBreakpointByUrl() argument
500 …auto id = handler(thread, std::move(sourceFileFilter), breakpointRequest.GetLineNumber(), sourceFi… in SetBreakpointByUrl()
512 …id InspectorServer::OnCallDebuggerSetBreakpointByUrl(std::function<SetBreakpointHandler> &&handler) in OnCallDebuggerSetBreakpointByUrl() argument
516 …[this, handler = std::move(handler)](auto &sessionId, const JsonObject &params) -> Server::MethodR… in OnCallDebuggerSetBreakpointByUrl()
525 auto optResponse = SetBreakpointByUrl(sessionId, *optRequest, handler); in OnCallDebuggerSetBreakpointByUrl()
558 …rver::OnCallDebuggerGetPossibleAndSetBreakpointByUrl(std::function<SetBreakpointHandler> &&handler) in OnCallDebuggerGetPossibleAndSetBreakpointByUrl() argument
562 …[this, handler = std::move(handler)](auto &sessionId, const JsonObject &params) -> Server::MethodR… in OnCallDebuggerGetPossibleAndSetBreakpointByUrl()
576 auto optResponse = SetBreakpointByUrl(sessionId, req, handler); in OnCallDebuggerGetPossibleAndSetBreakpointByUrl()
595 … InspectorServer::OnCallDebuggerSetBreakpointsActive(std::function<void(PtThread, bool)> &&handler) in OnCallDebuggerSetBreakpointsActive() argument
599 …[this, handler = std::move(handler)](auto &sessionId, const JsonObject &params) -> Server::MethodR… in OnCallDebuggerSetBreakpointsActive()
610 handler(thread, active); in OnCallDebuggerSetBreakpointsActive()
616 void InspectorServer::OnCallDebuggerSetSkipAllPauses(std::function<void(PtThread, bool)> &&handler) in OnCallDebuggerSetSkipAllPauses() argument
620 …[this, handler = std::move(handler)](auto &sessionId, const JsonObject &params) -> Server::MethodR… in OnCallDebuggerSetSkipAllPauses()
631 handler(thread, skip); in OnCallDebuggerSetSkipAllPauses()
638 std::function<void(PtThread, PauseOnExceptionsState)> &&handler) in OnCallDebuggerSetPauseOnExceptions() argument
642 …[this, handler = std::move(handler)](auto &sessionId, const JsonObject &params) -> Server::MethodR… in OnCallDebuggerSetPauseOnExceptions()
669 handler(thread, state); in OnCallDebuggerSetPauseOnExceptions()
675 void InspectorServer::OnCallDebuggerStepInto(std::function<void(PtThread)> &&handler) in OnCallDebuggerStepInto() argument
677 …server_.OnCall("Debugger.stepInto", [this, handler = std::move(handler)](auto &sessionId, auto &) { in OnCallDebuggerStepInto()
679 handler(thread); in OnCallDebuggerStepInto()
684 void InspectorServer::OnCallDebuggerStepOut(std::function<void(PtThread)> &&handler) in OnCallDebuggerStepOut() argument
686 … server_.OnCall("Debugger.stepOut", [this, handler = std::move(handler)](auto &sessionId, auto &) { in OnCallDebuggerStepOut()
688 handler(thread); in OnCallDebuggerStepOut()
693 void InspectorServer::OnCallDebuggerStepOver(std::function<void(PtThread)> &&handler) in OnCallDebuggerStepOver() argument
695 …server_.OnCall("Debugger.stepOver", [this, handler = std::move(handler)](auto &sessionId, auto &) { in OnCallDebuggerStepOver()
697 handler(thread); in OnCallDebuggerStepOver()
703 …function<Expected<EvaluationResult, std::string>(PtThread, const std::string &, size_t)> &&handler) in OnCallDebuggerEvaluateOnCallFrame() argument
707 …[this, handler = std::move(handler)](auto &sessionId, const JsonObject &params) -> Server::MethodR… in OnCallDebuggerEvaluateOnCallFrame()
716 … auto optResult = handler(thread, optRequest->GetExpression(), optRequest->GetCallFrameId()); in OnCallDebuggerEvaluateOnCallFrame()
731 …function<Expected<EvaluationResult, std::string>(PtThread, const std::string &, size_t)> &&handler) in OnCallDebuggerCallFunctionOn() argument
735 …[this, handler = std::move(handler)](auto &sessionId, const JsonObject &params) -> Server::MethodR… in OnCallDebuggerCallFunctionOn()
744 …auto optResult = handler(thread, optRequest->GetFunctionDeclaration(), optRequest->GetCallFrameId(… in OnCallDebuggerCallFunctionOn()
758 … InspectorServer::OnCallDebuggerSetMixedDebugEnabled(std::function<void(PtThread, bool)> &&handler) in OnCallDebuggerSetMixedDebugEnabled() argument
762 …[this, handler = std::move(handler)](auto &sessionId, const JsonObject &params) -> Server::MethodR… in OnCallDebuggerSetMixedDebugEnabled()
773 handler(thread, mixedDebugEnabled); in OnCallDebuggerSetMixedDebugEnabled()
779 void InspectorServer::OnCallDebuggerDisable(std::function<void(PtThread)> &&handler) in OnCallDebuggerDisable() argument
781 … server_.OnCall("Debugger.disable", [this, handler = std::move(handler)](auto &sessionId, auto &) { in OnCallDebuggerDisable()
783 handler(thread); in OnCallDebuggerDisable()
788 void InspectorServer::OnCallDebuggerClientDisconnect(std::function<void(PtThread)> &&handler) in OnCallDebuggerClientDisconnect() argument
790 …server_.OnCall("Debugger.clientDisconnect", [this, handler = std::move(handler)](auto &sessionId, … in OnCallDebuggerClientDisconnect()
792 handler(thread); in OnCallDebuggerClientDisconnect()
797 void InspectorServer::OnCallDebuggerSetAsyncCallStackDepth(std::function<void(PtThread)> &&handler) in OnCallDebuggerSetAsyncCallStackDepth() argument
799 …server_.OnCall("Debugger.setAsyncCallStackDepth", [this, handler = std::move(handler)](auto &sessi… in OnCallDebuggerSetAsyncCallStackDepth()
801 handler(thread); in OnCallDebuggerSetAsyncCallStackDepth()
806 void InspectorServer::OnCallDebuggerSetBlackboxPatterns(std::function<void(PtThread)> &&handler) in OnCallDebuggerSetBlackboxPatterns() argument
808 …server_.OnCall("Debugger.setBlackboxPatterns", [this, handler = std::move(handler)](auto &sessionI… in OnCallDebuggerSetBlackboxPatterns()
810 handler(thread); in OnCallDebuggerSetBlackboxPatterns()
815 void InspectorServer::OnCallDebuggerSmartStepInto(std::function<void(PtThread)> &&handler) in OnCallDebuggerSmartStepInto() argument
817 …server_.OnCall("Debugger.smartStepInto", [this, handler = std::move(handler)](auto &sessionId, aut… in OnCallDebuggerSmartStepInto()
819 handler(thread); in OnCallDebuggerSmartStepInto()
824 void InspectorServer::OnCallDebuggerDropFrame(std::function<void(PtThread)> &&handler) in OnCallDebuggerDropFrame() argument
826 …server_.OnCall("Debugger.dropFrame", [this, handler = std::move(handler)](auto &sessionId, auto &)… in OnCallDebuggerDropFrame()
828 handler(thread); in OnCallDebuggerDropFrame()
833 void InspectorServer::OnCallDebuggerSetNativeRange(std::function<void(PtThread)> &&handler) in OnCallDebuggerSetNativeRange() argument
835 …server_.OnCall("Debugger.setNativeRange", [this, handler = std::move(handler)](auto &sessionId, au… in OnCallDebuggerSetNativeRange()
837 handler(thread); in OnCallDebuggerSetNativeRange()
842 void InspectorServer::OnCallDebuggerReplyNativeCalling(std::function<void(PtThread)> &&handler) in OnCallDebuggerReplyNativeCalling() argument
844 …server_.OnCall("Debugger.replyNativeCalling", [this, handler = std::move(handler)](auto &sessionId… in OnCallDebuggerReplyNativeCalling()
846 handler(thread); in OnCallDebuggerReplyNativeCalling()
851 void InspectorServer::OnCallRuntimeEnable(std::function<void(PtThread)> &&handler) in OnCallRuntimeEnable() argument
853 server_.OnCall("Runtime.enable", [this, handler = std::move(handler)](auto &sessionId, auto &) { in OnCallRuntimeEnable()
855 handler(thread); in OnCallRuntimeEnable()
861 std::function<std::vector<PropertyDescriptor>(PtThread, RemoteObjectId, bool)> &&handler) in OnCallRuntimeGetProperties() argument
880 …[this, handler = std::move(handler)](auto &sessionId, const JsonObject &params) -> Server::MethodR… in OnCallRuntimeGetProperties()
894 auto properties = handler(thread, *objectId, generatePreview); in OnCallRuntimeGetProperties()
900 void InspectorServer::OnCallRuntimeRunIfWaitingForDebugger(std::function<void(PtThread)> &&handler) in OnCallRuntimeRunIfWaitingForDebugger() argument
902 …server_.OnCall("Runtime.runIfWaitingForDebugger", [this, handler = std::move(handler)](auto &sessi… in OnCallRuntimeRunIfWaitingForDebugger()
904 handler(thread); in OnCallRuntimeRunIfWaitingForDebugger()
910 std::function<Expected<EvaluationResult, std::string>(PtThread, const std::string &)> &&handler) in OnCallRuntimeEvaluate() argument
914 …[this, handler = std::move(handler)](auto &sessionId, const JsonObject &params) -> Server::MethodR… in OnCallRuntimeEvaluate()
924 auto optResult = handler(thread, *expressionStr); in OnCallRuntimeEvaluate()
948 void InspectorServer::OnCallProfilerSetSamplingInterval(std::function<void(int32_t)> &&handler) in OnCallProfilerSetSamplingInterval() argument
952 [handler = std::move(handler)](auto &, const JsonObject &params) -> Server::MethodResponse { in OnCallProfilerSetSamplingInterval()
956 handler(interval); in OnCallProfilerSetSamplingInterval()
967 void InspectorServer::OnCallProfilerStart(std::function<Expected<bool, std::string>()> &&handler) in OnCallProfilerStart() argument
969 …server_.OnCall("Profiler.start", [handler = std::move(handler)](auto &, auto &) -> Server::MethodR… in OnCallProfilerStart()
970 auto optResult = handler(); in OnCallProfilerStart()
982 void InspectorServer::OnCallProfilerStop(std::function<Expected<Profile, std::string>()> &&handler) in OnCallProfilerStop() argument
984 …server_.OnCall("Profiler.stop", [handler = std::move(handler)](auto &, auto &) -> Server::MethodRe… in OnCallProfilerStop()
985 auto optResult = handler(); in OnCallProfilerStop()