equal
deleted
inserted
replaced
11 |
11 |
12 import org.chromium.sdk.Breakpoint; |
12 import org.chromium.sdk.Breakpoint; |
13 import org.chromium.sdk.CallFrame; |
13 import org.chromium.sdk.CallFrame; |
14 import org.chromium.sdk.DebugContext; |
14 import org.chromium.sdk.DebugContext; |
15 import org.chromium.sdk.ExceptionData; |
15 import org.chromium.sdk.ExceptionData; |
|
16 import org.chromium.sdk.JsEvaluateContext; |
16 import org.chromium.sdk.Script; |
17 import org.chromium.sdk.Script; |
17 import org.chromium.sdk.SyncCallback; |
18 import org.chromium.sdk.SyncCallback; |
18 import org.chromium.sdk.internal.protocol.CommandResponse; |
19 import org.chromium.sdk.internal.protocol.CommandResponse; |
19 import org.chromium.sdk.internal.protocol.SuccessCommandResponse; |
20 import org.chromium.sdk.internal.protocol.SuccessCommandResponse; |
20 import org.chromium.sdk.internal.tools.v8.V8CommandProcessor; |
21 import org.chromium.sdk.internal.tools.v8.V8CommandProcessor; |
263 public ExceptionData getExceptionData() { |
264 public ExceptionData getExceptionData() { |
264 assertValidForUser(); |
265 assertValidForUser(); |
265 return data.exceptionData; |
266 return data.exceptionData; |
266 } |
267 } |
267 |
268 |
|
269 public JsEvaluateContext getGlobalEvaluateContext() { |
|
270 return evaluateContext; |
|
271 } |
|
272 |
268 /** |
273 /** |
269 * @throws IllegalStateException if context has already been continued |
274 * @throws IllegalStateException if context has already been continued |
270 */ |
275 */ |
271 public void continueVm(StepAction stepAction, int stepCount, |
276 public void continueVm(StepAction stepAction, int stepCount, |
272 final ContinueCallback callback) { |
277 final ContinueCallback callback) { |
306 } |
311 } |
307 |
312 |
308 InternalContext getInternalContextForTests() { |
313 InternalContext getInternalContextForTests() { |
309 return PreContext.this; |
314 return PreContext.this; |
310 } |
315 } |
|
316 |
|
317 private final JsEvaluateContext evaluateContext = new JsEvaluateContextImpl() { |
|
318 @Override |
|
319 protected Integer getFrameIdentifier() { |
|
320 return null; |
|
321 } |
|
322 @Override |
|
323 public InternalContext getInternalContext() { |
|
324 return PreContext.this; |
|
325 } |
|
326 }; |
311 } |
327 } |
312 } |
328 } |
313 |
329 |
314 /** |
330 /** |
315 * Simple structure of data which DebugConext implementation uses. |
331 * Simple structure of data which DebugConext implementation uses. |