diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-20 16:01:03 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-20 16:01:03 +0000 |
commit | a95972d843da1bfe3b0c5a3d850604dc660609d7 (patch) | |
tree | 955c8f5ba9a7a45601a68f1f2f744b63e8ee1f6d /webkit/glue/devtools/dom_agent_impl.h | |
parent | daa071ea80b8498f497ed41b4892e5e02208e38d (diff) | |
download | chromium_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_impl.h')
-rw-r--r-- | webkit/glue/devtools/dom_agent_impl.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/webkit/glue/devtools/dom_agent_impl.h b/webkit/glue/devtools/dom_agent_impl.h index 5a58433..51e5ffa 100644 --- a/webkit/glue/devtools/dom_agent_impl.h +++ b/webkit/glue/devtools/dom_agent_impl.h @@ -32,8 +32,8 @@ class DomAgentImpl : public DomAgent { virtual ~DomAgentImpl(); // DomAgent implementation. - void GetDocumentElement(); - void GetChildNodes(int element_id); + void GetDocumentElement(int call_id); + void GetChildNodes(int call_id, int element_id); void SetAttribute( int element_id, const WebCore::String& name, @@ -103,6 +103,8 @@ class DomAgentImpl : public DomAgent { int InnerChildNodeCount(WebCore::Node* node); WebCore::Element* InnerParentElement(WebCore::Node* node); + void ToJson(const Value* value, std::string* json); + DomAgentDelegate* delegate_; HashMap<WebCore::Node*, int> node_to_id_; HashMap<int, WebCore::Node*> id_to_node_; @@ -110,7 +112,9 @@ class DomAgentImpl : public DomAgent { int last_node_id_; ListHashSet<RefPtr<WebCore::Document> > documents_; RefPtr<WebCore::EventListener> event_listener_; - bool document_element_requested_; + // Captures pending document element request's call id. + // Defaults to 0 meaning no pending request. + int document_element_call_id_; DISALLOW_COPY_AND_ASSIGN(DomAgentImpl); }; |