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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 void WorkerThreadDebugger::setContextDebugData(v8::Local<v8::Context> context) | 63 void WorkerThreadDebugger::setContextDebugData(v8::Local<v8::Context> context) |
64 { | 64 { |
65 V8Debugger::setContextDebugData(context, workerContextDebugId); | 65 V8Debugger::setContextDebugData(context, workerContextDebugId); |
66 } | 66 } |
67 | 67 |
68 void WorkerThreadDebugger::addListener(ScriptDebugListener* listener) | 68 void WorkerThreadDebugger::addListener(ScriptDebugListener* listener) |
69 { | 69 { |
70 ASSERT(!m_listener); | 70 ASSERT(!m_listener); |
71 debugger()->enable(); | 71 debugger()->enable(); |
72 m_listener = listener; | 72 m_listener = listener; |
73 Vector<ScriptDebugListener::ParsedScript> compiledScripts; | 73 Vector<V8Debugger::ParsedScript> compiledScripts; |
74 debugger()->getCompiledScripts(workerContextDebugId, compiledScripts); | 74 debugger()->getCompiledScripts(workerContextDebugId, compiledScripts); |
75 for (size_t i = 0; i < compiledScripts.size(); i++) | 75 for (size_t i = 0; i < compiledScripts.size(); i++) |
76 listener->didParseSource(compiledScripts[i]); | 76 listener->didParseSource(compiledScripts[i]); |
77 } | 77 } |
78 | 78 |
79 void WorkerThreadDebugger::removeListener(ScriptDebugListener* listener) | 79 void WorkerThreadDebugger::removeListener(ScriptDebugListener* listener) |
80 { | 80 { |
81 ASSERT(m_listener == listener); | 81 ASSERT(m_listener == listener); |
82 debugger()->continueProgram(); | 82 debugger()->continueProgram(); |
83 m_listener = 0; | 83 m_listener = 0; |
(...skipping 20 matching lines...) Expand all Loading... |
104 if (m_listener) | 104 if (m_listener) |
105 m_listener->didContinue(); | 105 m_listener->didContinue(); |
106 } | 106 } |
107 | 107 |
108 void WorkerThreadDebugger::quitMessageLoopOnPause() | 108 void WorkerThreadDebugger::quitMessageLoopOnPause() |
109 { | 109 { |
110 // Nothing to do here in case of workers since runMessageLoopOnPause will ch
eck for paused state after each debugger command. | 110 // Nothing to do here in case of workers since runMessageLoopOnPause will ch
eck for paused state after each debugger command. |
111 } | 111 } |
112 | 112 |
113 } // namespace blink | 113 } // namespace blink |
OLD | NEW |