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

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

Issue 2346853002: Add a DOM.getLayoutTreeNodes devtools command (Closed)
Patch Set: Fix iframe font path 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void restore() override; 115 void restore() override;
116 116
117 HeapVector<Member<Document>> documents(); 117 HeapVector<Member<Document>> documents();
118 void reset(); 118 void reset();
119 119
120 // Methods called from the frontend for DOM nodes inspection. 120 // Methods called from the frontend for DOM nodes inspection.
121 void enable(ErrorString*) override; 121 void enable(ErrorString*) override;
122 void disable(ErrorString*) override; 122 void disable(ErrorString*) override;
123 void getDocument(ErrorString*, 123 void getDocument(ErrorString*,
124 std::unique_ptr<protocol::DOM::Node>* root) override; 124 std::unique_ptr<protocol::DOM::Node>* root) override;
125 void getLayoutTreeNodes(
126 ErrorString*,
127 std::unique_ptr<protocol::Array<protocol::DOM::LayoutTreeNode>>*
128 layoutTreeNodes) override;
125 void collectClassNamesFromSubtree( 129 void collectClassNamesFromSubtree(
126 ErrorString*, 130 ErrorString*,
127 int nodeId, 131 int nodeId,
128 std::unique_ptr<protocol::Array<String>>* classNames) override; 132 std::unique_ptr<protocol::Array<String>>* classNames) override;
129 void requestChildNodes(ErrorString*, 133 void requestChildNodes(ErrorString*,
130 int nodeId, 134 int nodeId,
131 const Maybe<int>& depth) override; 135 const Maybe<int>& depth) override;
132 void querySelector(ErrorString*, 136 void querySelector(ErrorString*,
133 int nodeId, 137 int nodeId,
134 const String& selector, 138 const String& selector,
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 void discardFrontendBindings(); 348 void discardFrontendBindings();
345 349
346 void innerHighlightQuad(std::unique_ptr<FloatQuad>, 350 void innerHighlightQuad(std::unique_ptr<FloatQuad>,
347 const Maybe<protocol::DOM::RGBA>& color, 351 const Maybe<protocol::DOM::RGBA>& color,
348 const Maybe<protocol::DOM::RGBA>& outlineColor); 352 const Maybe<protocol::DOM::RGBA>& outlineColor);
349 353
350 bool pushDocumentUponHandlelessOperation(ErrorString*); 354 bool pushDocumentUponHandlelessOperation(ErrorString*);
351 355
352 Member<InspectorRevalidateDOMTask> revalidateTask(); 356 Member<InspectorRevalidateDOMTask> revalidateTask();
353 357
358 void visitLayoutTreeNodes(Node*,
359 protocol::Array<protocol::DOM::LayoutTreeNode>&);
360
354 v8::Isolate* m_isolate; 361 v8::Isolate* m_isolate;
355 Member<InspectedFrames> m_inspectedFrames; 362 Member<InspectedFrames> m_inspectedFrames;
356 v8_inspector::V8InspectorSession* m_v8Session; 363 v8_inspector::V8InspectorSession* m_v8Session;
357 Client* m_client; 364 Client* m_client;
358 Member<DOMListener> m_domListener; 365 Member<DOMListener> m_domListener;
359 Member<NodeToIdMap> m_documentNodeToIdMap; 366 Member<NodeToIdMap> m_documentNodeToIdMap;
360 // Owns node mappings for dangling nodes. 367 // Owns node mappings for dangling nodes.
361 HeapVector<Member<NodeToIdMap>> m_danglingNodeToIdMaps; 368 HeapVector<Member<NodeToIdMap>> m_danglingNodeToIdMaps;
362 HeapHashMap<int, Member<Node>> m_idToNode; 369 HeapHashMap<int, Member<Node>> m_idToNode;
363 HeapHashMap<int, Member<NodeToIdMap>> m_idToNodesMap; 370 HeapHashMap<int, Member<NodeToIdMap>> m_idToNodesMap;
364 HashSet<int> m_childrenRequested; 371 HashSet<int> m_childrenRequested;
365 HashSet<int> m_distributedNodesRequested; 372 HashSet<int> m_distributedNodesRequested;
366 HashMap<int, int> m_cachedChildCount; 373 HashMap<int, int> m_cachedChildCount;
367 int m_lastNodeId; 374 int m_lastNodeId;
368 Member<Document> m_document; 375 Member<Document> m_document;
369 typedef HeapHashMap<String, HeapVector<Member<Node>>> SearchResults; 376 typedef HeapHashMap<String, HeapVector<Member<Node>>> SearchResults;
370 SearchResults m_searchResults; 377 SearchResults m_searchResults;
371 Member<InspectorRevalidateDOMTask> m_revalidateTask; 378 Member<InspectorRevalidateDOMTask> m_revalidateTask;
372 Member<InspectorHistory> m_history; 379 Member<InspectorHistory> m_history;
373 Member<DOMEditor> m_domEditor; 380 Member<DOMEditor> m_domEditor;
374 bool m_suppressAttributeModifiedEvent; 381 bool m_suppressAttributeModifiedEvent;
375 int m_backendNodeIdToInspect; 382 int m_backendNodeIdToInspect;
376 }; 383 };
377 384
378 } // namespace blink 385 } // namespace blink
379 386
380 #endif // !defined(InspectorDOMAgent_h) 387 #endif // !defined(InspectorDOMAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698