Index: include/v8-debug.h |
=================================================================== |
--- include/v8-debug.h (revision 1198) |
+++ include/v8-debug.h (working copy) |
@@ -86,7 +86,7 @@ |
* (enum DebugEvent) |
* \param exec_state execution state (JavaScript object) |
* \param event_data event specific data (JavaScript object) |
- * \param data value passed by the user to AddDebugEventListener |
+ * \param data value passed by the user to SetDebugEventListener |
*/ |
typedef void (*DebugEventCallback)(DebugEvent event, |
Handle<Object> exec_state, |
@@ -108,20 +108,14 @@ |
class EXPORT Debug { |
public: |
- // Add a C debug event listener. |
- static bool AddDebugEventListener(DebugEventCallback that, |
+ // Set a C debug event listener. |
+ static bool SetDebugEventListener(DebugEventCallback that, |
Handle<Value> data = Handle<Value>()); |
- // Add a JavaScript debug event listener. |
- static bool AddDebugEventListener(v8::Handle<v8::Function> that, |
+ // Set a JavaScript debug event listener. |
+ static bool SetDebugEventListener(v8::Handle<v8::Object> that, |
Handle<Value> data = Handle<Value>()); |
- // Remove a C debug event listener. |
- static void RemoveDebugEventListener(DebugEventCallback that); |
- |
- // Remove a JavaScript debug event listener. |
- static void RemoveDebugEventListener(v8::Handle<v8::Function> that); |
- |
// Break execution of JavaScript. |
static void DebugBreak(); |