Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: Source/bindings/core/v8/PageScriptDebugServer.cpp

Issue 272613002: DevTools: implemented scriptFailedToParse protocol event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 Google Inc. All rights reserved. 2 * Copyright (c) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 return; 131 return;
132 v8::Local<v8::Context> context = shell->context(); 132 v8::Local<v8::Context> context = shell->context();
133 v8::Handle<v8::Function> getScriptsFunction = v8::Local<v8::Function>::Cast( debuggerScript->Get(v8AtomicString(m_isolate, "getScripts"))); 133 v8::Handle<v8::Function> getScriptsFunction = v8::Local<v8::Function>::Cast( debuggerScript->Get(v8AtomicString(m_isolate, "getScripts")));
134 v8::Handle<v8::Value> argv[] = { context->GetEmbedderData(0) }; 134 v8::Handle<v8::Value> argv[] = { context->GetEmbedderData(0) };
135 v8::Handle<v8::Value> value = V8ScriptRunner::callInternalFunction(getScript sFunction, debuggerScript, WTF_ARRAY_LENGTH(argv), argv, m_isolate); 135 v8::Handle<v8::Value> value = V8ScriptRunner::callInternalFunction(getScript sFunction, debuggerScript, WTF_ARRAY_LENGTH(argv), argv, m_isolate);
136 if (value.IsEmpty()) 136 if (value.IsEmpty())
137 return; 137 return;
138 ASSERT(!value->IsUndefined() && value->IsArray()); 138 ASSERT(!value->IsUndefined() && value->IsArray());
139 v8::Handle<v8::Array> scriptsArray = v8::Handle<v8::Array>::Cast(value); 139 v8::Handle<v8::Array> scriptsArray = v8::Handle<v8::Array>::Cast(value);
140 for (unsigned i = 0; i < scriptsArray->Length(); ++i) 140 for (unsigned i = 0; i < scriptsArray->Length(); ++i)
141 dispatchDidParseSource(listener, v8::Handle<v8::Object>::Cast(scriptsArr ay->Get(v8::Integer::New(m_isolate, i)))); 141 dispatchDidParseSource(listener, v8::Handle<v8::Object>::Cast(scriptsArr ay->Get(v8::Integer::New(m_isolate, i))), CompileSuccess);
142 } 142 }
143 143
144 void PageScriptDebugServer::removeListener(ScriptDebugListener* listener, Page* page) 144 void PageScriptDebugServer::removeListener(ScriptDebugListener* listener, Page* page)
145 { 145 {
146 if (!m_listenersMap.contains(page)) 146 if (!m_listenersMap.contains(page))
147 return; 147 return;
148 148
149 if (m_pausedPage == page) 149 if (m_pausedPage == page)
150 continueProgram(); 150 continueProgram();
151 151
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 UseCounter::muteForInspector(); 314 UseCounter::muteForInspector();
315 } 315 }
316 316
317 void PageScriptDebugServer::unmuteWarningsAndDeprecations() 317 void PageScriptDebugServer::unmuteWarningsAndDeprecations()
318 { 318 {
319 FrameConsole::unmute(); 319 FrameConsole::unmute();
320 UseCounter::unmuteForInspector(); 320 UseCounter::unmuteForInspector();
321 } 321 }
322 322
323 } // namespace WebCore 323 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698