Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Unified Diff: include/v8-debug.h

Issue 20491: Add host callback for debug break.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/debug.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8-debug.h
===================================================================
--- include/v8-debug.h (revision 1312)
+++ include/v8-debug.h (working copy)
@@ -99,13 +99,24 @@
*
* \param message the debug message
* \param length length of the message
+ * \param data the data value passed when registering the message handler
* A DebugMessageHandler does not take posession of the message string,
* and must not rely on the data persisting after the handler returns.
*/
typedef void (*DebugMessageHandler)(const uint16_t* message, int length,
void* data);
+/**
+ * Debug host dispatch callback function.
+ *
+ * \param dispatch the dispatch value
+ * \param data the data value passed when registering the dispatch handler
+ */
+typedef void (*DebugHostDispatchHandler)(void* dispatch,
+ void* data);
+
+
class EXPORT Debug {
public:
// Set a C debug event listener.
@@ -123,6 +134,11 @@
static void SetMessageHandler(DebugMessageHandler handler, void* data = NULL);
static void SendCommand(const uint16_t* command, int length);
+ // Dispatch interface.
+ static void SetHostDispatchHandler(DebugHostDispatchHandler handler,
+ void* data = NULL);
+ static void SendHostDispatch(void* dispatch);
+
/**
* Run a JavaScript function in the debugger.
* \param fun the function to call
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/debug.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698