Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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))), false); |
|
aandrey
2014/07/07 19:44:32
what is this flag? maybe enums instead?
| |
| 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 Loading... | |
| 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 |
| OLD | NEW |