| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 266 |
| 267 void V8DebuggerImpl::setPauseOnNextStatement(bool pause) | 267 void V8DebuggerImpl::setPauseOnNextStatement(bool pause) |
| 268 { | 268 { |
| 269 ASSERT(!m_runningNestedMessageLoop); | 269 ASSERT(!m_runningNestedMessageLoop); |
| 270 if (pause) | 270 if (pause) |
| 271 v8::Debug::DebugBreak(m_isolate); | 271 v8::Debug::DebugBreak(m_isolate); |
| 272 else | 272 else |
| 273 v8::Debug::CancelDebugBreak(m_isolate); | 273 v8::Debug::CancelDebugBreak(m_isolate); |
| 274 } | 274 } |
| 275 | 275 |
| 276 bool V8DebuggerImpl::pausingOnNextStatement() | |
| 277 { | |
| 278 return v8::Debug::CheckDebugBreak(m_isolate); | |
| 279 } | |
| 280 | |
| 281 bool V8DebuggerImpl::canBreakProgram() | 276 bool V8DebuggerImpl::canBreakProgram() |
| 282 { | 277 { |
| 283 if (!m_breakpointsActivated) | 278 if (!m_breakpointsActivated) |
| 284 return false; | 279 return false; |
| 285 return m_isolate->InContext(); | 280 return m_isolate->InContext(); |
| 286 } | 281 } |
| 287 | 282 |
| 288 void V8DebuggerImpl::breakProgram() | 283 void V8DebuggerImpl::breakProgram() |
| 289 { | 284 { |
| 290 if (isPaused()) { | 285 if (isPaused()) { |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 return nullptr; | 824 return nullptr; |
| 830 return m_contexts.get(contextGroupId); | 825 return m_contexts.get(contextGroupId); |
| 831 } | 826 } |
| 832 | 827 |
| 833 V8InspectorSessionImpl* V8DebuggerImpl::sessionForContextGroup(int contextGroupI
d) | 828 V8InspectorSessionImpl* V8DebuggerImpl::sessionForContextGroup(int contextGroupI
d) |
| 834 { | 829 { |
| 835 return contextGroupId ? m_sessions.get(contextGroupId) : nullptr; | 830 return contextGroupId ? m_sessions.get(contextGroupId) : nullptr; |
| 836 } | 831 } |
| 837 | 832 |
| 838 } // namespace blink | 833 } // namespace blink |
| OLD | NEW |