| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 ASSERT(localFrameRoot == localFrameRoot->localFrameRoot()); | 113 ASSERT(localFrameRoot == localFrameRoot->localFrameRoot()); |
| 114 | 114 |
| 115 ScriptController& scriptController = localFrameRoot->script(); | 115 ScriptController& scriptController = localFrameRoot->script(); |
| 116 if (!scriptController.canExecuteScripts(NotAboutToExecuteScript)) | 116 if (!scriptController.canExecuteScripts(NotAboutToExecuteScript)) |
| 117 return; | 117 return; |
| 118 | 118 |
| 119 if (m_listenersMap.isEmpty()) | 119 if (m_listenersMap.isEmpty()) |
| 120 debugger()->enable(); | 120 debugger()->enable(); |
| 121 m_listenersMap.set(localFrameRoot, listener); | 121 m_listenersMap.set(localFrameRoot, listener); |
| 122 String contextDataSubstring = "," + String::number(WeakIdentifierMap<LocalFr
ame>::identifier(localFrameRoot)) + "]"; | 122 String contextDataSubstring = "," + String::number(WeakIdentifierMap<LocalFr
ame>::identifier(localFrameRoot)) + "]"; |
| 123 Vector<ScriptDebugListener::ParsedScript> compiledScripts; | 123 Vector<V8Debugger::ParsedScript> compiledScripts; |
| 124 debugger()->getCompiledScripts(contextDataSubstring, compiledScripts); | 124 debugger()->getCompiledScripts(contextDataSubstring, compiledScripts); |
| 125 for (size_t i = 0; i < compiledScripts.size(); i++) | 125 for (size_t i = 0; i < compiledScripts.size(); i++) |
| 126 listener->didParseSource(compiledScripts[i]); | 126 listener->didParseSource(compiledScripts[i]); |
| 127 } | 127 } |
| 128 | 128 |
| 129 void MainThreadDebugger::removeListener(ScriptDebugListener* listener, LocalFram
e* localFrame) | 129 void MainThreadDebugger::removeListener(ScriptDebugListener* listener, LocalFram
e* localFrame) |
| 130 { | 130 { |
| 131 if (!m_listenersMap.contains(localFrame)) | 131 if (!m_listenersMap.contains(localFrame)) |
| 132 return; | 132 return; |
| 133 | 133 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 m_pausedFrame = 0; | 178 m_pausedFrame = 0; |
| 179 } | 179 } |
| 180 | 180 |
| 181 void MainThreadDebugger::quitMessageLoopOnPause() | 181 void MainThreadDebugger::quitMessageLoopOnPause() |
| 182 { | 182 { |
| 183 m_clientMessageLoop->quitNow(); | 183 m_clientMessageLoop->quitNow(); |
| 184 } | 184 } |
| 185 | 185 |
| 186 } // namespace blink | 186 } // namespace blink |
| OLD | NEW |