| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.sdk.internal.v8native; | 5 package org.chromium.sdk.internal.v8native; |
| 6 | 6 |
| 7 import java.util.Arrays; | 7 import java.util.Arrays; |
| 8 import java.util.Collection; | 8 import java.util.Collection; |
| 9 import java.util.Collections; | 9 import java.util.Collections; |
| 10 import java.util.List; | 10 import java.util.List; |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 296 |
| 297 Collection<Breakpoint> getBreakpointsHitSafe() { | 297 Collection<Breakpoint> getBreakpointsHitSafe() { |
| 298 return data.breakpointsHit; | 298 return data.breakpointsHit; |
| 299 } | 299 } |
| 300 | 300 |
| 301 ExceptionData getExceptionDataSafe() { | 301 ExceptionData getExceptionDataSafe() { |
| 302 return data.exceptionData; | 302 return data.exceptionData; |
| 303 } | 303 } |
| 304 | 304 |
| 305 @Override | 305 @Override |
| 306 public JsEvaluateContext getGlobalEvaluateContext() { | 306 public JsEvaluateContextImpl getGlobalEvaluateContext() { |
| 307 return evaluateContext; | 307 return evaluateContext; |
| 308 } | 308 } |
| 309 | 309 |
| 310 /** | 310 /** |
| 311 * @throws IllegalStateException if context has already been continued | 311 * @throws IllegalStateException if context has already been continued |
| 312 */ | 312 */ |
| 313 @Override | 313 @Override |
| 314 public void continueVm(StepAction stepAction, int stepCount, | 314 public void continueVm(StepAction stepAction, int stepCount, |
| 315 final ContinueCallback callback) { | 315 final ContinueCallback callback) { |
| 316 continueVm(stepAction, stepCount, callback, null); | 316 continueVm(stepAction, stepCount, callback, null); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 } | 389 } |
| 390 | 390 |
| 391 @Override | 391 @Override |
| 392 public DebugContext setFrames(List<FrameObject> jsonFrames) { | 392 public DebugContext setFrames(List<FrameObject> jsonFrames) { |
| 393 data.frames = new Frames(jsonFrames, PreContext.this); | 393 data.frames = new Frames(jsonFrames, PreContext.this); |
| 394 return UserContextImpl.this; | 394 return UserContextImpl.this; |
| 395 } | 395 } |
| 396 }; | 396 }; |
| 397 } | 397 } |
| 398 | 398 |
| 399 private final JsEvaluateContext evaluateContext = new JsEvaluateContextImp
l() { | 399 private final JsEvaluateContextImpl evaluateContext = new JsEvaluateContex
tImpl() { |
| 400 @Override | 400 @Override |
| 401 protected Integer getFrameIdentifier() { | 401 protected Integer getFrameIdentifier() { |
| 402 return null; | 402 return null; |
| 403 } | 403 } |
| 404 @Override | 404 @Override |
| 405 public InternalContext getInternalContext() { | 405 public InternalContext getInternalContext() { |
| 406 return PreContext.this; | 406 return PreContext.this; |
| 407 } | 407 } |
| 408 }; | 408 }; |
| 409 } | 409 } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 } | 487 } |
| 488 return buildNewContext().setContextState(userContext.getBreakpointsHitSafe()
, | 488 return buildNewContext().setContextState(userContext.getBreakpointsHitSafe()
, |
| 489 userContext.getExceptionDataSafe()); | 489 userContext.getExceptionDataSafe()); |
| 490 } | 490 } |
| 491 | 491 |
| 492 public static InternalContext getInternalContextForTests(DebugContext debugCon
text) { | 492 public static InternalContext getInternalContextForTests(DebugContext debugCon
text) { |
| 493 PreContext.UserContextImpl userContext = (PreContext.UserContextImpl) debugC
ontext; | 493 PreContext.UserContextImpl userContext = (PreContext.UserContextImpl) debugC
ontext; |
| 494 return userContext.getInternalContextForTests(); | 494 return userContext.getInternalContextForTests(); |
| 495 } | 495 } |
| 496 } | 496 } |
| OLD | NEW |