org.chromium.sdk/src/org/chromium/sdk/JavascriptVm.java
changeset 355 8726e95bcbba
parent 276 f2f4a1259de8
equal deleted inserted replaced
354:0bceeb415e7f 355:8726e95bcbba
    96    *        ignore. If none, use {@link Breakpoint#EMPTY_VALUE}
    96    *        ignore. If none, use {@link Breakpoint#EMPTY_VALUE}
    97    * @param callback to invoke when the evaluation result is ready,
    97    * @param callback to invoke when the evaluation result is ready,
    98    *        may be {@code null}
    98    *        may be {@code null}
    99    */
    99    */
   100   void setBreakpoint(Breakpoint.Type type, String target, int line, int position, boolean enabled,
   100   void setBreakpoint(Breakpoint.Type type, String target, int line, int position, boolean enabled,
   101       String condition, int ignoreCount, BreakpointCallback callback);
   101       String condition, int ignoreCount, BreakpointCallback callback, SyncCallback syncCallback);
   102 
   102 
   103   /**
   103   /**
   104    * Tries to suspend VM. If successful, {@link DebugEventListener#suspended(DebugContext)}
   104    * Tries to suspend VM. If successful, {@link DebugEventListener#suspended(DebugContext)}
   105    * will be called.
   105    * will be called.
   106    * @param callback to invoke once the operation result is available,
   106    * @param callback to invoke once the operation result is available,
   107    *        may be {@code null}
   107    *        may be {@code null}
   108    */
   108    */
   109   void suspend(SuspendCallback callback);
   109   void suspend(SuspendCallback callback);
       
   110 
       
   111   interface ListBreakpointsCallback {
       
   112     void success(Collection<? extends Breakpoint> breakpoints);
       
   113     void failure(Exception exception);
       
   114   }
       
   115 
       
   116   /**
       
   117    * Asynchronously reads breakpoints from remote VM. The now-effective collection of breakpoints
       
   118    * is returned to callback. Already existing {@link Breakpoint} instances are preserved.
       
   119    */
       
   120   void listBreakpoints(ListBreakpointsCallback callback, SyncCallback syncCallback);
   110 }
   121 }