| OLD | NEW |
| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 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 const Maybe<int>& depth, |
| 125 const Maybe<bool>& traverseFrames, |
| 124 std::unique_ptr<protocol::DOM::Node>* root) override; | 126 std::unique_ptr<protocol::DOM::Node>* root) override; |
| 125 void getLayoutTreeNodes( | 127 void getLayoutTreeNodes( |
| 126 ErrorString*, | 128 ErrorString*, |
| 127 std::unique_ptr<protocol::Array<protocol::DOM::LayoutTreeNode>>* | 129 std::unique_ptr<protocol::Array<protocol::DOM::LayoutTreeNode>>* |
| 128 layoutTreeNodes) override; | 130 layoutTreeNodes) override; |
| 129 void collectClassNamesFromSubtree( | 131 void collectClassNamesFromSubtree( |
| 130 ErrorString*, | 132 ErrorString*, |
| 131 int nodeId, | 133 int nodeId, |
| 132 std::unique_ptr<protocol::Array<String>>* classNames) override; | 134 std::unique_ptr<protocol::Array<String>>* classNames) override; |
| 133 void requestChildNodes(ErrorString*, | 135 void requestChildNodes(ErrorString*, |
| 134 int nodeId, | 136 int nodeId, |
| 135 const Maybe<int>& depth) override; | 137 const Maybe<int>& depth, |
| 138 const Maybe<bool>& traverseFrames) override; |
| 136 void querySelector(ErrorString*, | 139 void querySelector(ErrorString*, |
| 137 int nodeId, | 140 int nodeId, |
| 138 const String& selector, | 141 const String& selector, |
| 139 int* outNodeId) override; | 142 int* outNodeId) override; |
| 140 void querySelectorAll( | 143 void querySelectorAll( |
| 141 ErrorString*, | 144 ErrorString*, |
| 142 int nodeId, | 145 int nodeId, |
| 143 const String& selector, | 146 const String& selector, |
| 144 std::unique_ptr<protocol::Array<int>>* nodeIds) override; | 147 std::unique_ptr<protocol::Array<int>>* nodeIds) override; |
| 145 void setNodeName(ErrorString*, | 148 void setNodeName(ErrorString*, |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 int bind(Node*, NodeToIdMap*); | 318 int bind(Node*, NodeToIdMap*); |
| 316 void unbind(Node*, NodeToIdMap*); | 319 void unbind(Node*, NodeToIdMap*); |
| 317 | 320 |
| 318 Node* assertEditableNode(ErrorString*, int nodeId); | 321 Node* assertEditableNode(ErrorString*, int nodeId); |
| 319 Node* assertEditableChildNode(ErrorString*, | 322 Node* assertEditableChildNode(ErrorString*, |
| 320 Element* parentElement, | 323 Element* parentElement, |
| 321 int nodeId); | 324 int nodeId); |
| 322 Element* assertEditableElement(ErrorString*, int nodeId); | 325 Element* assertEditableElement(ErrorString*, int nodeId); |
| 323 | 326 |
| 324 int pushNodePathToFrontend(Node*, NodeToIdMap* nodeMap); | 327 int pushNodePathToFrontend(Node*, NodeToIdMap* nodeMap); |
| 325 void pushChildNodesToFrontend(int nodeId, int depth = 1); | 328 void pushChildNodesToFrontend(int nodeId, |
| 329 int depth = 1, |
| 330 bool traverseFrames = false); |
| 326 | 331 |
| 327 void invalidateFrameOwnerElement(LocalFrame*); | 332 void invalidateFrameOwnerElement(LocalFrame*); |
| 328 | 333 |
| 329 std::unique_ptr<protocol::DOM::Node> buildObjectForNode(Node*, | 334 std::unique_ptr<protocol::DOM::Node> buildObjectForNode(Node*, |
| 330 int depth, | 335 int depth, |
| 336 bool traverseFrames, |
| 331 NodeToIdMap*); | 337 NodeToIdMap*); |
| 332 std::unique_ptr<protocol::Array<String>> buildArrayForElementAttributes( | 338 std::unique_ptr<protocol::Array<String>> buildArrayForElementAttributes( |
| 333 Element*); | 339 Element*); |
| 334 std::unique_ptr<protocol::Array<protocol::DOM::Node>> | 340 std::unique_ptr<protocol::Array<protocol::DOM::Node>> |
| 335 buildArrayForContainerChildren(Node* container, | 341 buildArrayForContainerChildren(Node* container, |
| 336 int depth, | 342 int depth, |
| 343 bool traverseFrames, |
| 337 NodeToIdMap* nodesMap); | 344 NodeToIdMap* nodesMap); |
| 338 std::unique_ptr<protocol::Array<protocol::DOM::Node>> | 345 std::unique_ptr<protocol::Array<protocol::DOM::Node>> |
| 339 buildArrayForPseudoElements(Element*, NodeToIdMap* nodesMap); | 346 buildArrayForPseudoElements(Element*, NodeToIdMap* nodesMap); |
| 340 std::unique_ptr<protocol::Array<protocol::DOM::BackendNode>> | 347 std::unique_ptr<protocol::Array<protocol::DOM::BackendNode>> |
| 341 buildArrayForDistributedNodes(InsertionPoint*); | 348 buildArrayForDistributedNodes(InsertionPoint*); |
| 342 std::unique_ptr<protocol::Array<protocol::DOM::BackendNode>> | 349 std::unique_ptr<protocol::Array<protocol::DOM::BackendNode>> |
| 343 buildDistributedNodesForSlot(HTMLSlotElement*); | 350 buildDistributedNodesForSlot(HTMLSlotElement*); |
| 344 | 351 |
| 345 Node* nodeForPath(const String& path); | 352 Node* nodeForPath(const String& path); |
| 346 Node* nodeForRemoteId(ErrorString*, const String& id); | 353 Node* nodeForRemoteId(ErrorString*, const String& id); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 Member<InspectorRevalidateDOMTask> m_revalidateTask; | 385 Member<InspectorRevalidateDOMTask> m_revalidateTask; |
| 379 Member<InspectorHistory> m_history; | 386 Member<InspectorHistory> m_history; |
| 380 Member<DOMEditor> m_domEditor; | 387 Member<DOMEditor> m_domEditor; |
| 381 bool m_suppressAttributeModifiedEvent; | 388 bool m_suppressAttributeModifiedEvent; |
| 382 int m_backendNodeIdToInspect; | 389 int m_backendNodeIdToInspect; |
| 383 }; | 390 }; |
| 384 | 391 |
| 385 } // namespace blink | 392 } // namespace blink |
| 386 | 393 |
| 387 #endif // !defined(InspectorDOMAgent_h) | 394 #endif // !defined(InspectorDOMAgent_h) |
| OLD | NEW |