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-30 08:19:40 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-30 08:19:40 +0000
commit46ce4c7d272138e15282ee102f9c6ff0508353c7 (patch)
treeb0e00ae8d60ae169aa27f7cb8a522a8b255c21d1 /webkit/glue/devtools/dom_agent.h
parent646dce40970192643ce533518888dfaf9c736815 (diff)
downloadchromium_src-46ce4c7d272138e15282ee102f9c6ff0508353c7.zip
chromium_src-46ce4c7d272138e15282ee102f9c6ff0508353c7.tar.gz
chromium_src-46ce4c7d272138e15282ee102f9c6ff0508353c7.tar.bz2
DevTools: Implement basic DOM edit operations.
Review URL: http://codereview.chromium.org/56005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/devtools/dom_agent.h')
-rw-r--r--webkit/glue/devtools/dom_agent.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/webkit/glue/devtools/dom_agent.h b/webkit/glue/devtools/dom_agent.h
index 33306de..205e4d9 100644
--- a/webkit/glue/devtools/dom_agent.h
+++ b/webkit/glue/devtools/dom_agent.h
@@ -11,7 +11,7 @@
// WebDevToolsAgent. It is capable of sending DOM tree to the client as well
// as providing DOM notifications for the nodes known to the client.
// DomAgent's environment is represented with the DomAgentDelegate interface.
-#define DOM_AGENT_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \
+#define DOM_AGENT_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, METHOD4) \
/* Requests that the document root element is sent to the delegate. */ \
METHOD0(GetDocumentElement) \
\
@@ -19,13 +19,16 @@
METHOD2(GetChildNodes, int /* call_id */, int /* id */) \
\
/* Sets attribute value in the element with given id. */ \
- METHOD3(SetAttribute, int /* id */, String /* name */, String /* value */) \
+ METHOD4(SetAttribute, int /* call_id */, int /* id */, String /* name */, \
+ String /* value */) \
\
/* Removes attribute from the element with given id. */ \
- METHOD2(RemoveAttribute, int /* id */, String /* name */) \
+ METHOD3(RemoveAttribute, int /* call_id */, int /* id */, \
+ String /* name */) \
\
/* Sets text node value in the node with given id. */ \
- METHOD2(SetTextNodeValue, int /* id */, String /* text */) \
+ METHOD3(SetTextNodeValue, int /* call_id */, int /* id */, \
+ String /* text */) \
\
/* Perform search. */ \
METHOD2(PerformSearch, int /* call_id */, String /* query */) \
@@ -37,13 +40,17 @@
DEFINE_RPC_CLASS(DomAgent, DOM_AGENT_STRUCT)
-#define DOM_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \
+#define DOM_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \
+ METHOD4) \
/* Response to GetChildNodes. */ \
METHOD1(DidGetChildNodes, int /* call_id */) \
\
/* Perform search. */ \
METHOD2(DidPerformSearch, int /* call_id */, Value /* results */) \
\
+ /* Ack for the Set/RemoveAttribute, SetTextNodeValue. */ \
+ METHOD2(DidApplyDomChange, int /* call_id */, bool /* success */) \
+ \
/* Notifies the delegate that element's attributes are updated. */ \
METHOD2(AttributesUpdated, int /* id */, Value /* attributes */) \
\