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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.h

Issue 2346853002: Add a DOM.getLayoutTreeNodes devtools command (Closed)
Patch Set: Make it work with iframes Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 void restore() override; 103 void restore() override;
104 104
105 HeapVector<Member<Document>> documents(); 105 HeapVector<Member<Document>> documents();
106 void reset(); 106 void reset();
107 107
108 // Methods called from the frontend for DOM nodes inspection. 108 // Methods called from the frontend for DOM nodes inspection.
109 void enable(ErrorString*) override; 109 void enable(ErrorString*) override;
110 void disable(ErrorString*) override; 110 void disable(ErrorString*) override;
111 void getDocument(ErrorString*, std::unique_ptr<protocol::DOM::Node>* root) o verride; 111 void getDocument(ErrorString*, std::unique_ptr<protocol::DOM::Node>* root) o verride;
112 void getLayoutTreeNodes(ErrorString*, std::unique_ptr<protocol::Array<protoc ol::DOM::LayoutTreeNode>>* layoutTreeNodes) override;
112 void collectClassNamesFromSubtree(ErrorString*, int nodeId, std::unique_ptr< protocol::Array<String>>* classNames) override; 113 void collectClassNamesFromSubtree(ErrorString*, int nodeId, std::unique_ptr< protocol::Array<String>>* classNames) override;
113 void requestChildNodes(ErrorString*, int nodeId, const Maybe<int>& depth) ov erride; 114 void requestChildNodes(ErrorString*, int nodeId, const Maybe<int>& depth) ov erride;
114 void querySelector(ErrorString*, int nodeId, const String& selector, int* ou tNodeId) override; 115 void querySelector(ErrorString*, int nodeId, const String& selector, int* ou tNodeId) override;
115 void querySelectorAll(ErrorString*, int nodeId, const String& selector, std: :unique_ptr<protocol::Array<int>>* nodeIds) override; 116 void querySelectorAll(ErrorString*, int nodeId, const String& selector, std: :unique_ptr<protocol::Array<int>>* nodeIds) override;
116 void setNodeName(ErrorString*, int nodeId, const String& name, int* outNodeI d) override; 117 void setNodeName(ErrorString*, int nodeId, const String& name, int* outNodeI d) override;
117 void setNodeValue(ErrorString*, int nodeId, const String& value) override; 118 void setNodeValue(ErrorString*, int nodeId, const String& value) override;
118 void removeNode(ErrorString*, int nodeId) override; 119 void removeNode(ErrorString*, int nodeId) override;
119 void setAttributeValue(ErrorString*, int nodeId, const String& name, const S tring& value) override; 120 void setAttributeValue(ErrorString*, int nodeId, const String& name, const S tring& value) override;
120 void setAttributesAsText(ErrorString*, int nodeId, const String& text, const Maybe<String>& name) override; 121 void setAttributesAsText(ErrorString*, int nodeId, const String& text, const Maybe<String>& name) override;
121 void removeAttribute(ErrorString*, int nodeId, const String& name) override; 122 void removeAttribute(ErrorString*, int nodeId, const String& name) override;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 Member<InspectorHistory> m_history; 257 Member<InspectorHistory> m_history;
257 Member<DOMEditor> m_domEditor; 258 Member<DOMEditor> m_domEditor;
258 bool m_suppressAttributeModifiedEvent; 259 bool m_suppressAttributeModifiedEvent;
259 int m_backendNodeIdToInspect; 260 int m_backendNodeIdToInspect;
260 }; 261 };
261 262
262 263
263 } // namespace blink 264 } // namespace blink
264 265
265 #endif // !defined(InspectorDOMAgent_h) 266 #endif // !defined(InspectorDOMAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698