| 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 org.chromium.sdk.DebugContext; | 7 import org.chromium.sdk.DebugContext; |
| 8 import org.chromium.sdk.JsEvaluateContext; |
| 8 import org.chromium.sdk.RelayOk; | 9 import org.chromium.sdk.RelayOk; |
| 9 import org.chromium.sdk.SyncCallback; | 10 import org.chromium.sdk.SyncCallback; |
| 10 import org.chromium.sdk.internal.v8native.protocol.output.DebuggerMessage; | 11 import org.chromium.sdk.internal.v8native.protocol.output.DebuggerMessage; |
| 11 import org.chromium.sdk.internal.v8native.value.ValueLoader; | 12 import org.chromium.sdk.internal.v8native.value.ValueLoader; |
| 12 import org.chromium.sdk.internal.v8native.value.ValueLoaderImpl; | 13 import org.chromium.sdk.internal.v8native.value.ValueLoaderImpl; |
| 13 | 14 |
| 14 /** | 15 /** |
| 15 * Internal API to DebugContext implementation. The actual object might | 16 * Internal API to DebugContext implementation. The actual object might |
| 16 * be hidden deep inside, so we need an interface. Do not try to cast | 17 * be hidden deep inside, so we need an interface. Do not try to cast |
| 17 * DebugContext to this interface -- technically they might be different | 18 * DebugContext to this interface -- technically they might be different |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 UserContext getUserContext(); | 55 UserContext getUserContext(); |
| 55 | 56 |
| 56 /** | 57 /** |
| 57 * An internal extension to {@link DebugContext} interface. This is an object
that is | 58 * An internal extension to {@link DebugContext} interface. This is an object
that is |
| 58 * passed to user (unlike the {@link InternalContext} which is a separate obje
ct). | 59 * passed to user (unlike the {@link InternalContext} which is a separate obje
ct). |
| 59 */ | 60 */ |
| 60 interface UserContext extends DebugContext { | 61 interface UserContext extends DebugContext { |
| 61 InternalContext getInternalContext(); | 62 InternalContext getInternalContext(); |
| 62 | 63 |
| 63 ContextBuilder.ExpectingBacktraceStep createReloadBacktraceStep(); | 64 ContextBuilder.ExpectingBacktraceStep createReloadBacktraceStep(); |
| 65 |
| 66 @Override JsEvaluateContextImpl getGlobalEvaluateContext(); |
| 64 } | 67 } |
| 65 | 68 |
| 66 /** | 69 /** |
| 67 * Checks that this context and hostInternalContext are compatible (represent
the same | 70 * Checks that this context and hostInternalContext are compatible (represent
the same |
| 68 * debugger state) and have the same ref id maps. | 71 * debugger state) and have the same ref id maps. |
| 69 */ | 72 */ |
| 70 void checkContextIsCompatible(InternalContext hostInternalContext); | 73 void checkContextIsCompatible(InternalContext hostInternalContext); |
| 71 } | 74 } |
| OLD | NEW |