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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 void restore() override; | 102 void restore() override; |
103 | 103 |
104 HeapVector<Member<Document>> documents(); | 104 HeapVector<Member<Document>> documents(); |
105 void reset(); | 105 void reset(); |
106 | 106 |
107 // Methods called from the frontend for DOM nodes inspection. | 107 // Methods called from the frontend for DOM nodes inspection. |
108 void enable(ErrorString*) override; | 108 void enable(ErrorString*) override; |
109 void disable(ErrorString*) override; | 109 void disable(ErrorString*) override; |
110 void getDocument(ErrorString*, std::unique_ptr<protocol::DOM::Node>* root) o
verride; | 110 void getDocument(ErrorString*, std::unique_ptr<protocol::DOM::Node>* root) o
verride; |
| 111 void getRenderTreeNodes(ErrorString*, std::unique_ptr<protocol::Array<protoc
ol::DOM::RenderTreeNode>>* out_renderTreeNodes) override; |
111 void collectClassNamesFromSubtree(ErrorString*, int nodeId, std::unique_ptr<
protocol::Array<String>>* classNames) override; | 112 void collectClassNamesFromSubtree(ErrorString*, int nodeId, std::unique_ptr<
protocol::Array<String>>* classNames) override; |
112 void requestChildNodes(ErrorString*, int nodeId, const Maybe<int>& depth) ov
erride; | 113 void requestChildNodes(ErrorString*, int nodeId, const Maybe<int>& depth) ov
erride; |
113 void querySelector(ErrorString*, int nodeId, const String& selector, int* ou
tNodeId) override; | 114 void querySelector(ErrorString*, int nodeId, const String& selector, int* ou
tNodeId) override; |
114 void querySelectorAll(ErrorString*, int nodeId, const String& selector, std:
:unique_ptr<protocol::Array<int>>* nodeIds) override; | 115 void querySelectorAll(ErrorString*, int nodeId, const String& selector, std:
:unique_ptr<protocol::Array<int>>* nodeIds) override; |
115 void setNodeName(ErrorString*, int nodeId, const String& name, int* outNodeI
d) override; | 116 void setNodeName(ErrorString*, int nodeId, const String& name, int* outNodeI
d) override; |
116 void setNodeValue(ErrorString*, int nodeId, const String& value) override; | 117 void setNodeValue(ErrorString*, int nodeId, const String& value) override; |
117 void removeNode(ErrorString*, int nodeId) override; | 118 void removeNode(ErrorString*, int nodeId) override; |
118 void setAttributeValue(ErrorString*, int nodeId, const String& name, const S
tring& value) override; | 119 void setAttributeValue(ErrorString*, int nodeId, const String& name, const S
tring& value) override; |
119 void setAttributesAsText(ErrorString*, int nodeId, const String& text, const
Maybe<String>& name) override; | 120 void setAttributesAsText(ErrorString*, int nodeId, const String& text, const
Maybe<String>& name) override; |
120 void removeAttribute(ErrorString*, int nodeId, const String& name) override; | 121 void removeAttribute(ErrorString*, int nodeId, const String& name) override; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 Member<InspectorHistory> m_history; | 254 Member<InspectorHistory> m_history; |
254 Member<DOMEditor> m_domEditor; | 255 Member<DOMEditor> m_domEditor; |
255 bool m_suppressAttributeModifiedEvent; | 256 bool m_suppressAttributeModifiedEvent; |
256 int m_backendNodeIdToInspect; | 257 int m_backendNodeIdToInspect; |
257 }; | 258 }; |
258 | 259 |
259 | 260 |
260 } // namespace blink | 261 } // namespace blink |
261 | 262 |
262 #endif // !defined(InspectorDOMAgent_h) | 263 #endif // !defined(InspectorDOMAgent_h) |
OLD | NEW |