7 import java.io.IOException; |
7 import java.io.IOException; |
8 |
8 |
9 import org.chromium.sdk.Breakpoint; |
9 import org.chromium.sdk.Breakpoint; |
10 import org.chromium.sdk.CallbackSemaphore; |
10 import org.chromium.sdk.CallbackSemaphore; |
11 import org.chromium.sdk.JavascriptVm; |
11 import org.chromium.sdk.JavascriptVm; |
|
12 import org.chromium.sdk.SyncCallback; |
12 import org.chromium.sdk.internal.tools.v8.MethodIsBlockingException; |
13 import org.chromium.sdk.internal.tools.v8.MethodIsBlockingException; |
13 |
14 |
14 /** |
15 /** |
15 * Base implementation of JavascriptVm. |
16 * Base implementation of JavascriptVm. |
16 */ |
17 */ |
33 } |
34 } |
34 } |
35 } |
35 |
36 |
36 public void setBreakpoint(Breakpoint.Type type, String target, int line, |
37 public void setBreakpoint(Breakpoint.Type type, String target, int line, |
37 int position, boolean enabled, String condition, int ignoreCount, |
38 int position, boolean enabled, String condition, int ignoreCount, |
38 BreakpointCallback callback) { |
39 BreakpointCallback callback, SyncCallback syncCallback) { |
39 getDebugSession().getBreakpointManager() |
40 getDebugSession().getBreakpointManager() |
40 .setBreakpoint(type, target, line, position, enabled, condition, ignoreCount, callback); |
41 .setBreakpoint(type, target, line, position, enabled, condition, ignoreCount, callback, |
|
42 syncCallback); |
|
43 } |
|
44 |
|
45 public void listBreakpoints(final ListBreakpointsCallback callback, SyncCallback syncCallback) { |
|
46 getDebugSession().getBreakpointManager().reloadBreakpoints(callback, syncCallback); |
41 } |
47 } |
42 |
48 |
43 protected abstract DebugSession getDebugSession(); |
49 protected abstract DebugSession getDebugSession(); |
44 |
50 |
45 // TODO(peter.rybin): This message will be obsolete in JavaSE-1.6. |
51 // TODO(peter.rybin): This message will be obsolete in JavaSE-1.6. |