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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.h

Issue 2633343003: Adds DOM.getFlatDocument which returns an array of nodes (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.h b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.h
index fe54d8c8b6631e3a21c3d9b75b7734f4dfc53d99..30cac77cc40ec1dd2c87ece1ffc0f9491b91f3fa 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.h
@@ -118,6 +118,10 @@ class CORE_EXPORT InspectorDOMAgent final
Response getDocument(Maybe<int> depth,
Maybe<bool> traverseFrames,
std::unique_ptr<protocol::DOM::Node>* root) override;
+ Response getFlatDocument(
+ Maybe<int> depth,
+ Maybe<bool> pierce,
+ std::unique_ptr<protocol::Array<protocol::DOM::Node>>* nodes) override;
Response collectClassNamesFromSubtree(
int nodeId,
std::unique_ptr<protocol::Array<String>>* classNames) override;
@@ -295,6 +299,11 @@ class CORE_EXPORT InspectorDOMAgent final
int depth,
bool traverseFrames,
NodeToIdMap*);
+ void buildFlatObjectsForNode(Node*,
+ int depth,
+ bool pierce,
+ NodeToIdMap*,
+ protocol::Array<protocol::DOM::Node>* result);
std::unique_ptr<protocol::Array<String>> buildArrayForElementAttributes(
Element*);
std::unique_ptr<protocol::Array<protocol::DOM::Node>>
@@ -322,6 +331,8 @@ class CORE_EXPORT InspectorDOMAgent final
Member<InspectorRevalidateDOMTask> revalidateTask();
+ std::unique_ptr<protocol::DOM::Node> minimalCopy(protocol::DOM::Node*) const;
+
v8::Isolate* m_isolate;
Member<InspectedFrames> m_inspectedFrames;
v8_inspector::V8InspectorSession* m_v8Session;

Powered by Google App Engine
This is Rietveld 408576698