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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 102 , m_pausedPage(0) | 102 , m_pausedPage(0) |
| 103 { | 103 { |
| 104 } | 104 } |
| 105 | 105 |
| 106 PageScriptDebugServer::~PageScriptDebugServer() | 106 PageScriptDebugServer::~PageScriptDebugServer() |
| 107 { | 107 { |
| 108 } | 108 } |
| 109 | 109 |
| 110 void PageScriptDebugServer::addListener(ScriptDebugListener* listener, Page* pag e) | 110 void PageScriptDebugServer::addListener(ScriptDebugListener* listener, Page* pag e) |
| 111 { | 111 { |
| 112 ScriptController& scriptController = page->mainFrame()->script(); | 112 // FIXME: Broken for OOPI. |
|
abarth-chromium
2014/06/15 00:33:11
Rather than having a comment everywhere, can we ad
dcheng
2014/06/15 02:58:33
Done.
| |
| 113 ScriptController& scriptController = toLocalFrame(page->mainFrame())->script (); | |
| 113 if (!scriptController.canExecuteScripts(NotAboutToExecuteScript)) | 114 if (!scriptController.canExecuteScripts(NotAboutToExecuteScript)) |
| 114 return; | 115 return; |
| 115 | 116 |
| 116 v8::HandleScope scope(m_isolate); | 117 v8::HandleScope scope(m_isolate); |
| 117 v8::Local<v8::Context> debuggerContext = v8::Debug::GetDebugContext(); | 118 v8::Local<v8::Context> debuggerContext = v8::Debug::GetDebugContext(); |
| 118 v8::Context::Scope contextScope(debuggerContext); | 119 v8::Context::Scope contextScope(debuggerContext); |
| 119 | 120 |
| 120 v8::Local<v8::Object> debuggerScript = m_debuggerScript.newLocal(m_isolate); | 121 v8::Local<v8::Object> debuggerScript = m_debuggerScript.newLocal(m_isolate); |
| 121 if (!m_listenersMap.size()) { | 122 if (!m_listenersMap.size()) { |
| 122 ensureDebuggerScriptCompiled(); | 123 ensureDebuggerScriptCompiled(); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 311 UseCounter::muteForInspector(); | 312 UseCounter::muteForInspector(); |
| 312 } | 313 } |
| 313 | 314 |
| 314 void PageScriptDebugServer::unmuteWarningsAndDeprecations() | 315 void PageScriptDebugServer::unmuteWarningsAndDeprecations() |
| 315 { | 316 { |
| 316 FrameConsole::unmute(); | 317 FrameConsole::unmute(); |
| 317 UseCounter::unmuteForInspector(); | 318 UseCounter::unmuteForInspector(); |
| 318 } | 319 } |
| 319 | 320 |
| 320 } // namespace WebCore | 321 } // namespace WebCore |
| OLD | NEW |