• Home
  • Raw
  • Download

Lines Matching refs:Response

158 Response V8DebuggerAgentImpl::enable() {  in enable()
159 if (enabled()) return Response::OK(); in enable()
162 return Response::Error("Script execution is prohibited"); in enable()
165 return Response::OK(); in enable()
168 Response V8DebuggerAgentImpl::disable() { in disable()
169 if (!enabled()) return Response::OK(); in disable()
196 return Response::OK(); in disable()
227 Response V8DebuggerAgentImpl::setBreakpointsActive(bool active) { in setBreakpointsActive()
228 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in setBreakpointsActive()
230 return Response::OK(); in setBreakpointsActive()
233 Response V8DebuggerAgentImpl::setSkipAllPauses(bool skip) { in setSkipAllPauses()
236 return Response::OK(); in setSkipAllPauses()
262 Response V8DebuggerAgentImpl::setBreakpointByUrl( in setBreakpointByUrl()
269 return Response::Error("Either url or urlRegex must be specified."); in setBreakpointByUrl()
276 if (columnNumber < 0) return Response::Error("Incorrect column number"); in setBreakpointByUrl()
294 return Response::Error("Breakpoint at specified location already exists."); in setBreakpointByUrl()
311 return Response::OK(); in setBreakpointByUrl()
314 Response V8DebuggerAgentImpl::setBreakpoint( in setBreakpoint()
326 return Response::Error("Breakpoint at specified location already exists."); in setBreakpoint()
330 if (!*actualLocation) return Response::Error("Could not resolve breakpoint"); in setBreakpoint()
332 return Response::OK(); in setBreakpoint()
335 Response V8DebuggerAgentImpl::removeBreakpoint(const String16& breakpointId) { in removeBreakpoint()
336 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in removeBreakpoint()
341 return Response::OK(); in removeBreakpoint()
362 Response V8DebuggerAgentImpl::getPossibleBreakpoints( in getPossibleBreakpoints()
369 return Response::Error( in getPossibleBreakpoints()
377 return Response::Error("Locations should contain the same scriptId"); in getPossibleBreakpoints()
381 return Response::Error( in getPossibleBreakpoints()
386 if (it == m_scripts.end()) return Response::Error("Script not found"); in getPossibleBreakpoints()
390 return Response::InternalError(); in getPossibleBreakpoints()
401 return Response::OK(); in getPossibleBreakpoints()
404 Response V8DebuggerAgentImpl::continueToLocation( in continueToLocation()
406 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in continueToLocation()
497 Response V8DebuggerAgentImpl::searchInContent( in searchInContent()
504 return Response::Error("No script for id: " + scriptId); in searchInContent()
513 return Response::OK(); in searchInContent()
516 Response V8DebuggerAgentImpl::setScriptSource( in setScriptSource()
521 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in setScriptSource()
525 return Response::Error("No script with given id found"); in setScriptSource()
529 return Response::Error("Editing module's script is not supported."); in setScriptSource()
535 Response response = m_debugger->setScriptSource( in setScriptSource()
546 return Response::OK(); in setScriptSource()
549 Response V8DebuggerAgentImpl::restartFrame( in restartFrame()
553 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in restartFrame()
556 Response response = scope.initialize(); in restartFrame()
559 return Response::Error("Could not find call frame with given id"); in restartFrame()
568 return Response::InternalError(); in restartFrame()
576 return Response::OK(); in restartFrame()
579 Response V8DebuggerAgentImpl::getScriptSource(const String16& scriptId, in getScriptSource()
581 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in getScriptSource()
584 return Response::Error("No script for id: " + scriptId); in getScriptSource()
587 return Response::OK(); in getScriptSource()
631 Response V8DebuggerAgentImpl::pause() { in pause()
632 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in pause()
633 if (m_javaScriptPauseScheduled || isPaused()) return Response::OK(); in pause()
638 return Response::OK(); in pause()
641 Response V8DebuggerAgentImpl::resume() { in resume()
642 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in resume()
646 return Response::OK(); in resume()
649 Response V8DebuggerAgentImpl::stepOver() { in stepOver()
650 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in stepOver()
658 return Response::OK(); in stepOver()
661 Response V8DebuggerAgentImpl::stepInto() { in stepInto()
662 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in stepInto()
666 return Response::OK(); in stepInto()
669 Response V8DebuggerAgentImpl::stepOut() { in stepOut()
670 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in stepOut()
675 return Response::OK(); in stepOut()
678 Response V8DebuggerAgentImpl::setPauseOnExceptions( in setPauseOnExceptions()
680 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in setPauseOnExceptions()
689 return Response::Error("Unknown pause on exceptions mode: " + in setPauseOnExceptions()
693 return Response::OK(); in setPauseOnExceptions()
702 Response V8DebuggerAgentImpl::evaluateOnCallFrame( in evaluateOnCallFrame()
708 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in evaluateOnCallFrame()
711 Response response = scope.initialize(); in evaluateOnCallFrame()
714 return Response::Error("Could not find call frame with given id"); in evaluateOnCallFrame()
734 Response V8DebuggerAgentImpl::setVariableValue( in setVariableValue()
738 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in setVariableValue()
739 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in setVariableValue()
742 Response response = scope.initialize(); in setVariableValue()
750 return Response::Error("Could not find call frame with given id"); in setVariableValue()
755 return Response::InternalError(); in setVariableValue()
756 return Response::OK(); in setVariableValue()
759 Response V8DebuggerAgentImpl::setAsyncCallStackDepth(int depth) { in setAsyncCallStackDepth()
760 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in setAsyncCallStackDepth()
763 return Response::OK(); in setAsyncCallStackDepth()
766 Response V8DebuggerAgentImpl::setBlackboxPatterns( in setBlackboxPatterns()
772 return Response::OK(); in setBlackboxPatterns()
784 Response response = setBlackboxPattern(pattern); in setBlackboxPatterns()
788 return Response::OK(); in setBlackboxPatterns()
791 Response V8DebuggerAgentImpl::setBlackboxPattern(const String16& pattern) { in setBlackboxPattern()
795 return Response::Error("Pattern parser error: " + regex->errorMessage()); in setBlackboxPattern()
797 return Response::OK(); in setBlackboxPattern()
806 Response V8DebuggerAgentImpl::setBlackboxedRanges( in setBlackboxedRanges()
812 return Response::Error("No script with passed id."); in setBlackboxedRanges()
817 return Response::OK(); in setBlackboxedRanges()
825 return Response::Error("Position missing 'line' or 'line' < 0."); in setBlackboxedRanges()
827 return Response::Error("Position missing 'column' or 'column' < 0."); in setBlackboxedRanges()
837 return Response::Error( in setBlackboxedRanges()
843 return Response::OK(); in setBlackboxedRanges()
873 Response V8DebuggerAgentImpl::currentCallFrames( in currentCallFrames()
877 return Response::OK(); in currentCallFrames()
893 return Response::InternalError(); in currentCallFrames()
907 return Response::InternalError(); in currentCallFrames()
917 return Response::InternalError(); in currentCallFrames()
920 Response response = injectedScript->wrapPropertyInArray( in currentCallFrames()
943 return Response::InternalError(); in currentCallFrames()
950 return Response::InternalError(); in currentCallFrames()
956 return Response::InternalError(); in currentCallFrames()
962 return Response::InternalError(); in currentCallFrames()
968 return Response::InternalError(); in currentCallFrames()
973 Response response = toProtocolValue(debuggerContext, objects, &protocolValue); in currentCallFrames()
977 if (!*result) return Response::Error(errorSupport.errors()); in currentCallFrames()
980 return Response::OK(); in currentCallFrames()
1162 Response response = currentCallFrames(&protocolCallFrames); in didPause()