| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010-2011 Google Inc. All rights reserved. | 2 * Copyright (c) 2010-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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 void ScriptDebugServer::setPauseOnNextStatement(bool pause) | 171 void ScriptDebugServer::setPauseOnNextStatement(bool pause) |
| 172 { | 172 { |
| 173 ASSERT(!isPaused()); | 173 ASSERT(!isPaused()); |
| 174 if (pause) | 174 if (pause) |
| 175 v8::Debug::DebugBreak(m_isolate); | 175 v8::Debug::DebugBreak(m_isolate); |
| 176 else | 176 else |
| 177 v8::Debug::CancelDebugBreak(m_isolate); | 177 v8::Debug::CancelDebugBreak(m_isolate); |
| 178 } | 178 } |
| 179 | 179 |
| 180 bool ScriptDebugServer::pausingOnNextStatement() |
| 181 { |
| 182 return v8::Debug::CheckDebugBreak(m_isolate); |
| 183 } |
| 184 |
| 180 bool ScriptDebugServer::canBreakProgram() | 185 bool ScriptDebugServer::canBreakProgram() |
| 181 { | 186 { |
| 182 if (!m_breakpointsActivated) | 187 if (!m_breakpointsActivated) |
| 183 return false; | 188 return false; |
| 184 return m_isolate->InContext(); | 189 return m_isolate->InContext(); |
| 185 } | 190 } |
| 186 | 191 |
| 187 void ScriptDebugServer::breakProgram() | 192 void ScriptDebugServer::breakProgram() |
| 188 { | 193 { |
| 189 if (!canBreakProgram()) | 194 if (!canBreakProgram()) |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 { | 682 { |
| 678 return PassOwnPtr<ScriptSourceCode>(); | 683 return PassOwnPtr<ScriptSourceCode>(); |
| 679 } | 684 } |
| 680 | 685 |
| 681 String ScriptDebugServer::preprocessEventListener(LocalFrame*, const String& sou
rce, const String& url, const String& functionName) | 686 String ScriptDebugServer::preprocessEventListener(LocalFrame*, const String& sou
rce, const String& url, const String& functionName) |
| 682 { | 687 { |
| 683 return source; | 688 return source; |
| 684 } | 689 } |
| 685 | 690 |
| 686 } // namespace blink | 691 } // namespace blink |
| OLD | NEW |