Lines Matching refs:Response
148 Response V8DebuggerAgentImpl::enable() {
149 if (enabled()) return Response::OK();
152 return Response::Error("Script execution is prohibited");
155 return Response::OK();
158 Response V8DebuggerAgentImpl::disable() {
159 if (!enabled()) return Response::OK();
190 return Response::OK();
221 Response V8DebuggerAgentImpl::setBreakpointsActive(bool active) {
222 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
224 return Response::OK();
227 Response V8DebuggerAgentImpl::setSkipAllPauses(bool skip) {
230 return Response::OK();
256 Response V8DebuggerAgentImpl::setBreakpointByUrl(
263 return Response::Error("Either url or urlRegex must be specified.");
270 if (columnNumber < 0) return Response::Error("Incorrect column number");
288 return Response::Error("Breakpoint at specified location already exists.");
304 return Response::OK();
307 Response V8DebuggerAgentImpl::setBreakpoint(
321 return Response::Error("Breakpoint at specified location already exists.");
326 if (!*actualLocation) return Response::Error("Could not resolve breakpoint");
328 return Response::OK();
331 Response V8DebuggerAgentImpl::removeBreakpoint(const String16& breakpointId) {
332 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
337 return Response::OK();
358 Response V8DebuggerAgentImpl::getPossibleBreakpoints(
365 return Response::Error(
373 return Response::Error("Locations should contain the same scriptId");
377 return Response::Error(
382 if (it == m_scripts.end()) return Response::Error("Script not found");
386 return Response::InternalError();
397 return Response::OK();
400 Response V8DebuggerAgentImpl::continueToLocation(
402 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
524 Response V8DebuggerAgentImpl::searchInContent(
531 return Response::Error("No script for id: " + scriptId);
541 return Response::OK();
544 Response V8DebuggerAgentImpl::setScriptSource(
549 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
554 Response response = m_debugger->setScriptSource(
557 if (!response.isSuccess() || compileError) return response;
563 response = currentCallFrames(&callFrames);
564 if (!response.isSuccess()) return response;
567 return Response::OK();
570 Response V8DebuggerAgentImpl::restartFrame(
574 if (m_pausedContext.IsEmpty()) return Response::Error(kDebuggerNotPaused);
577 Response response = scope.initialize();
578 if (!response.isSuccess()) return response;
580 return Response::Error("Could not find call frame with given id");
589 return Response::InternalError();
594 response = currentCallFrames(newCallFrames);
595 if (!response.isSuccess()) return response;
597 return Response::OK();
600 Response V8DebuggerAgentImpl::getScriptSource(const String16& scriptId,
602 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
605 return Response::Error("No script for id: " + scriptId);
608 return Response::OK();
644 Response V8DebuggerAgentImpl::pause() {
645 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
647 return Response::OK();
654 return Response::OK();
657 Response V8DebuggerAgentImpl::resume() {
658 if (m_pausedContext.IsEmpty()) return Response::Error(kDebuggerNotPaused);
663 return Response::OK();
666 Response V8DebuggerAgentImpl::stepOver() {
667 if (m_pausedContext.IsEmpty()) return Response::Error(kDebuggerNotPaused);
676 return Response::OK();
679 Response V8DebuggerAgentImpl::stepInto() {
680 if (m_pausedContext.IsEmpty()) return Response::Error(kDebuggerNotPaused);
685 return Response::OK();
688 Response V8DebuggerAgentImpl::stepOut() {
689 if (m_pausedContext.IsEmpty()) return Response::Error(kDebuggerNotPaused);
696 return Response::OK();
699 Response V8DebuggerAgentImpl::setPauseOnExceptions(
701 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
710 return Response::Error("Unknown pause on exceptions mode: " +
714 return Response::OK();
723 Response V8DebuggerAgentImpl::evaluateOnCallFrame(
729 if (m_pausedContext.IsEmpty()) return Response::Error(kDebuggerNotPaused);
732 Response response = scope.initialize();
733 if (!response.isSuccess()) return response;
735 return Response::Error("Could not find call frame with given id");
746 response = scope.initialize();
747 if (!response.isSuccess()) return response;
754 Response V8DebuggerAgentImpl::setVariableValue(
758 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
759 if (m_pausedContext.IsEmpty()) return Response::Error(kDebuggerNotPaused);
762 Response response = scope.initialize();
763 if (!response.isSuccess()) return response;
765 response = scope.injectedScript()->resolveCallArgument(newValueArgument.get(),
767 if (!response.isSuccess()) return response;
770 return Response::Error("Could not find call frame with given id");
775 return Response::InternalError();
776 return Response::OK();
779 Response V8DebuggerAgentImpl::setAsyncCallStackDepth(int depth) {
780 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
783 return Response::OK();
786 Response V8DebuggerAgentImpl::setBlackboxPatterns(
791 return Response::OK();
803 Response response = setBlackboxPattern(pattern);
804 if (!response.isSuccess()) return response;
806 return Response::OK();
809 Response V8DebuggerAgentImpl::setBlackboxPattern(const String16& pattern) {
813 return Response::Error("Pattern parser error: " + regex->errorMessage());
815 return Response::OK();
818 Response V8DebuggerAgentImpl::setBlackboxedRanges(
823 return Response::Error("No script with passed id.");
827 return Response::OK();
835 return Response::Error("Position missing 'line' or 'line' < 0.");
837 return Response::Error("Position missing 'column' or 'column' < 0.");
847 return Response::Error(
852 return Response::OK();
905 Response V8DebuggerAgentImpl::currentCallFrames(
909 return Response::OK();
924 if (details.IsEmpty()) return Response::InternalError();
938 return Response::InternalError();
948 return Response::InternalError();
951 Response response = injectedScript->wrapPropertyInArray(
954 if (!response.isSuccess()) return response;
955 response = injectedScript->wrapObjectProperty(
958 if (!response.isSuccess()) return response;
963 response = injectedScript->wrapObjectProperty(
966 if (!response.isSuccess()) return response;
974 return Response::InternalError();
981 return Response::InternalError();
987 return Response::InternalError();
993 return Response::InternalError();
999 return Response::InternalError();
1004 Response response = toProtocolValue(debuggerContext, objects, &protocolValue);
1005 if (!response.isSuccess()) return response;
1008 if (!*result) return Response::Error(errorSupport.errors());
1009 return Response::OK();
1157 Response response = currentCallFrames(&protocolCallFrames);
1158 if (!response.isSuccess()) protocolCallFrames = Array<CallFrame>::create();