Home | History | Annotate | Download | only in inspector

Lines Matching refs:Response

253 Response buildScopes(v8::Isolate* isolate, v8::debug::ScopeIterator* iterator,
257 if (!injectedScript) return Response::OK();
258 if (iterator->Done()) return Response::OK();
264 Response result = injectedScript->wrapObject(
294 return Response::OK();
341 Response V8DebuggerAgentImpl::enable(String16* outDebuggerId) {
344 if (enabled()) return Response::OK();
347 return Response::Error("Script execution is prohibited");
350 return Response::OK();
353 Response V8DebuggerAgentImpl::disable() {
354 if (!enabled()) return Response::OK();
386 return Response::OK();
417 Response V8DebuggerAgentImpl::setBreakpointsActive(bool active) {
418 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
419 if (m_breakpointsActive == active) return Response::OK();
426 return Response::OK();
429 Response V8DebuggerAgentImpl::setSkipAllPauses(bool skip) {
432 return Response::OK();
452 Response V8DebuggerAgentImpl::setBreakpointByUrl(
464 return Response::Error(
470 if (columnNumber < 0) return Response::Error("Incorrect column number");
511 return Response::Error("Breakpoint at specified location already exists.");
535 return Response::OK();
538 Response V8DebuggerAgentImpl::setBreakpoint(
547 return Response::Error("Breakpoint at specified location already exists.");
553 if (!*actualLocation) return Response::Error("Could not resolve breakpoint");
555 return Response::OK();
558 Response V8DebuggerAgentImpl::setBreakpointOnFunctionCall(
562 Response response = scope.initialize();
563 if (!response.isSuccess()) return response;
565 return Response::Error("Could not find function with given id");
573 return Response::Error("Breakpoint at specified location already exists.");
579 return Response::OK();
582 Response V8DebuggerAgentImpl::removeBreakpoint(const String16& breakpointId) {
583 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
587 return Response::OK();
616 return Response::OK();
635 Response V8DebuggerAgentImpl::getPossibleBreakpoints(
643 return Response::Error(
651 return Response::Error("Locations should contain the same scriptId");
655 return Response::Error(
660 if (it == m_scripts.end()) return Response::Error("Script not found");
667 return Response::Error("Cannot retrive script context");
690 return Response::OK();
693 Response V8DebuggerAgentImpl::continueToLocation(
696 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
697 if (!isPaused()) return Response::Error(kDebuggerNotPaused);
700 return Response::Error("Cannot continue to specified location");
706 return Response::Error("Cannot continue to specified location");
714 Response V8DebuggerAgentImpl::getStackTrace(
728 return Response::Error("Invalid stack trace id");
733 return Response::Error("Stack trace with given id is not found");
737 return Response::OK();
830 Response V8DebuggerAgentImpl::searchInContent(
837 return Response::Error("No script for id: " + scriptId);
846 return Response::OK();
849 Response V8DebuggerAgentImpl::setScriptSource(
856 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
860 return Response::Error("No script with given id found");
864 return Response::Error("Editing module's script is not supported.");
869 return Response::InternalError();
887 return Response::OK();
892 Response response = currentCallFrames(&callFrames);
893 if (!response.isSuccess()) return response;
897 return Response::OK();
900 Response V8DebuggerAgentImpl::restartFrame(
905 if (!isPaused()) return Response::Error(kDebuggerNotPaused);
907 Response response = scope.initialize();
908 if (!response.isSuccess()) return response;
912 return Response::Error("Could not find call frame with given id");
915 return Response::InternalError();
917 response = currentCallFrames(newCallFrames);
918 if (!response.isSuccess()) return response;
921 return Response::OK();
924 Response V8DebuggerAgentImpl::getScriptSource(const String16& scriptId,
926 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
929 return Response::Error("No script for id: " + scriptId);
931 return Response::OK();
968 Response V8DebuggerAgentImpl::pause() {
969 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
970 if (isPaused()) return Response::OK();
979 return Response::OK();
982 Response V8DebuggerAgentImpl::resume() {
983 if (!isPaused()) return Response::Error(kDebuggerNotPaused);
986 return Response::OK();
989 Response V8DebuggerAgentImpl::stepOver() {
990 if (!isPaused()) return Response::Error(kDebuggerNotPaused);
993 return Response::OK();
996 Response V8DebuggerAgentImpl::stepInto(Maybe<bool> inBreakOnAsyncCall) {
997 if (!isPaused()) return Response::Error(kDebuggerNotPaused);
1001 return Response::OK();
1004 Response V8DebuggerAgentImpl::stepOut() {
1005 if (!isPaused()) return Response::Error(kDebuggerNotPaused);
1008 return Response::OK();
1014 callback->sendFailure(Response::Error(kDebuggerNotPaused));
1021 Response V8DebuggerAgentImpl::pauseOnAsyncCall(
1026 return Response::Error("Invalid stack trace id");
1030 return Response::OK();
1033 Response V8DebuggerAgentImpl::setPauseOnExceptions(
1035 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
1044 return Response::Error("Unknown pause on exceptions mode: " +
1048 return Response::OK();
1059 Response V8DebuggerAgentImpl::evaluateOnCallFrame(
1066 if (!isPaused()) return Response::Error(kDebuggerNotPaused);
1068 Response response = scope.initialize();
1069 if (!response.isSuccess()) return response;
1076 return Response::Error("Could not find call frame with given id");
1083 response = evaluateScope.setTimeout(timeout.fromJust() / 1000.0);
1084 if (!response.isSuccess()) return response;
1091 response = scope.initialize();
1092 if (!response.isSuccess()) return response;
1099 Response V8DebuggerAgentImpl::setVariableValue(
1103 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
1104 if (!isPaused()) return Response::Error(kDebuggerNotPaused);
1106 Response response = scope.initialize();
1107 if (!response.isSuccess()) return response;
1109 response = scope.injectedScript()->resolveCallArgument(newValueArgument.get(),
1111 if (!response.isSuccess()) return response;
1116 return Response::Error("Could not find call frame with given id");
1124 return Response::Error("Could not find scope with given number");
1130 return Response::InternalError();
1132 return Response::OK();
1135 Response V8DebuggerAgentImpl::setReturnValue(
1137 if (!enabled()) return Response::Error(kDebuggerNotEnabled);
1138 if (!isPaused()) return Response::Error(kDebuggerNotPaused);
1141 return Response::Error("Could not find top call frame");
1144 return Response::Error(
1148 Response response = scope.initialize();
1149 if (!response.isSuccess()) return response;
1151 response = scope.injectedScript()->resolveCallArgument(protocolNewValue.get(),
1153 if (!response.isSuccess()) return response;
1155 return Response::OK();
1158 Response V8DebuggerAgentImpl::setAsyncCallStackDepth(int depth) {
1160 return Response::Error(kDebuggerNotEnabled);
1164 return Response::OK();
1167 Response V8DebuggerAgentImpl::setBlackboxPatterns(
1173 return Response::OK();
1185 Response response = setBlackboxPattern(pattern);
1186 if (!response.isSuccess()) return response;
1189 return Response::OK();
1192 Response V8DebuggerAgentImpl::setBlackboxPattern(const String16& pattern) {
1196 return Response::Error("Pattern parser error: " + regex->errorMessage());
1198 return Response::OK();
1207 Response V8DebuggerAgentImpl::setBlackboxedRanges(
1213 return Response::Error("No script with passed id.");
1218 return Response::OK();
1226 return Response::Error("Position missing 'line' or 'line' < 0.");
1228 return Response::Error("Position missing 'column' or 'column' < 0.");
1238 return Response::Error(
1244 return Response::OK();
1247 Response V8DebuggerAgentImpl::currentCallFrames(
1251 return Response::OK();
1268 Response res =
1334 return Response::OK();
1592 Response response = currentCallFrames(&protocolCallFrames);
1593 if (!response.isSuccess()) protocolCallFrames = Array<CallFrame>::create();