summaryrefslogtreecommitdiffstats
path: root/webkit/glue/devtools/dom_agent_impl.h
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-02 13:59:13 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-02 13:59:13 +0000
commitcad26edcdccf0cc36afab1e8584ff165460373e0 (patch)
tree16bdfeccca051afc0212cbbb70f35aa49b9fc9c8 /webkit/glue/devtools/dom_agent_impl.h
parent51996efd0e452dc7cea81616783958cb3fbf81e2 (diff)
downloadchromium_src-cad26edcdccf0cc36afab1e8584ff165460373e0.zip
chromium_src-cad26edcdccf0cc36afab1e8584ff165460373e0.tar.gz
chromium_src-cad26edcdccf0cc36afab1e8584ff165460373e0.tar.bz2
DevTools: Add support for r/o CSS inspection. Original review CL by serya : http://codereview.chromium.org/57007
Review URL: http://codereview.chromium.org/60047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13009 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/devtools/dom_agent_impl.h')
-rw-r--r--webkit/glue/devtools/dom_agent_impl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/webkit/glue/devtools/dom_agent_impl.h b/webkit/glue/devtools/dom_agent_impl.h
index 89a9df9..9fa011c 100644
--- a/webkit/glue/devtools/dom_agent_impl.h
+++ b/webkit/glue/devtools/dom_agent_impl.h
@@ -16,12 +16,15 @@
#include "webkit/glue/devtools/dom_agent.h"
namespace WebCore {
+class CSSRuleList;
class Document;
class Element;
class Event;
+class NameNodeMap;
class Node;
}
+class DictionaryValue;
class ListValue;
class Value;
@@ -48,6 +51,7 @@ class DomAgentImpl : public DomAgent {
int element_id,
const WebCore::String& value);
void PerformSearch(int call_id, const String& query);
+ void GetNodeStyles(int call_id, int id, bool author_only);
void DiscardBindings();
// Initializes dom agent with the given document.
@@ -124,6 +128,12 @@ class DomAgentImpl : public DomAgent {
int InnerChildNodeCount(WebCore::Node* node);
WebCore::Element* InnerParentElement(WebCore::Node* node);
+ // Helpers for GetNodeStyles
+ void BuildValueForCSSRules(WebCore::CSSRuleList& matched,
+ ListValue& descriptionList);
+ void BuildValueForAttributeStyles(const WebCore::NamedNodeMap& attributes,
+ DictionaryValue& description);
+
DomAgentDelegate* delegate_;
HashMap<WebCore::Node*, int> node_to_id_;
HashMap<int, WebCore::Node*> id_to_node_;