summaryrefslogtreecommitdiffstats
path: root/webkit/glue/devtools/dom_agent.h
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-20 16:01:03 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-20 16:01:03 +0000
commita95972d843da1bfe3b0c5a3d850604dc660609d7 (patch)
tree955c8f5ba9a7a45601a68f1f2f744b63e8ee1f6d /webkit/glue/devtools/dom_agent.h
parentdaa071ea80b8498f497ed41b4892e5e02208e38d (diff)
downloadchromium_src-a95972d843da1bfe3b0c5a3d850604dc660609d7.zip
chromium_src-a95972d843da1bfe3b0c5a3d850604dc660609d7.tar.gz
chromium_src-a95972d843da1bfe3b0c5a3d850604dc660609d7.tar.bz2
Add support for Javascript function callbacks into the WebDevToolsClient.
Review URL: http://codereview.chromium.org/42443 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/devtools/dom_agent.h')
-rw-r--r--webkit/glue/devtools/dom_agent.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/webkit/glue/devtools/dom_agent.h b/webkit/glue/devtools/dom_agent.h
index a2d8818..491adb8 100644
--- a/webkit/glue/devtools/dom_agent.h
+++ b/webkit/glue/devtools/dom_agent.h
@@ -13,10 +13,10 @@
// DomAgent's environment is represented with the DomAgentDelegate interface.
#define DOM_AGENT_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \
/* Requests that the document root element is sent to the delegate. */ \
- METHOD0(GetDocumentElement) \
+ METHOD1(GetDocumentElement, int /* call_id */) \
\
/* Requests that the element's children are sent to the client. */ \
- METHOD1(GetChildNodes, int /* id */) \
+ METHOD2(GetChildNodes, int /* call_id */, int /* id */) \
\
/* Sets attribute value in the element with given id. */ \
METHOD3(SetAttribute, int /* id */, String /* name */, String /* value */) \
@@ -35,14 +35,17 @@
DEFINE_RPC_CLASS(DomAgent, DOM_AGENT_STRUCT)
#define DOM_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \
- /* Notifies the delegate that document element is available. */ \
- METHOD1(DocumentElementUpdated, Value /* node */) \
+ /* Response to GetDocumentElement. */ \
+ METHOD2(GetDocumentElementResult, int /* call_id */, std::string /* json */) \
+ \
+ /* Response to GetChildNodes. */ \
+ METHOD2(GetChildNodesResult, int /* call_id */, std::string /* json */) \
\
/* Notifies the delegate that element's attributes are updated. */ \
METHOD2(AttributesUpdated, int /* id */, Value /* attributes */) \
\
/* Notifies the delegate that element's child nodes have been updated. */ \
- METHOD2(ChildNodesUpdated, int /* id */, Value /* node */) \
+ METHOD2(ChildNodesUpdated, int /* parent_id */, Value /* nodes */) \
\
/* Notifies the delegate that element's 'has children' state has been
updated */ \
@@ -53,7 +56,7 @@ DEFINE_RPC_CLASS(DomAgent, DOM_AGENT_STRUCT)
Value /* node */) \
\
/* Notifies the delegate that child node has been deleted. */ \
- METHOD2(ChildNodeRemoved, int /* parent_id */, int /* id */)
+ METHOD2(ChildNodeRemoved, int /* parent_id */, int /* id */) \
DEFINE_RPC_CLASS(DomAgentDelegate, DOM_AGENT_DELEGATE_STRUCT)