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

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

Issue 2373023002: Make DOM.getChildNodes & DOM.getDocument optionally pierce iframe boundaries (Closed)
Patch Set: Added a requestFrames parameter to fix the broken test 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 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;
113 void requestChildNodes(ErrorString*, int nodeId, const Maybe<int>& depth) ov erride; 113 void requestChildNodes(ErrorString*, int nodeId, const Maybe<int>& depth, co nst Maybe<bool>& traverseFrames) override;
114 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;
115 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;
116 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;
117 void setNodeValue(ErrorString*, int nodeId, const String& value) override; 117 void setNodeValue(ErrorString*, int nodeId, const String& value) override;
118 void removeNode(ErrorString*, int nodeId) override; 118 void removeNode(ErrorString*, int nodeId) override;
119 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;
120 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;
121 void removeAttribute(ErrorString*, int nodeId, const String& name) override; 121 void removeAttribute(ErrorString*, int nodeId, const String& name) override;
122 void getOuterHTML(ErrorString*, int nodeId, String* outerHTML) override; 122 void getOuterHTML(ErrorString*, int nodeId, String* outerHTML) override;
123 void setOuterHTML(ErrorString*, int nodeId, const String& outerHTML) overrid e; 123 void setOuterHTML(ErrorString*, int nodeId, const String& outerHTML) overrid e;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 HashSet<int> m_distributedNodesRequested; 249 HashSet<int> m_distributedNodesRequested;
250 HashMap<int, int> m_cachedChildCount; 250 HashMap<int, int> m_cachedChildCount;
251 int m_lastNodeId; 251 int m_lastNodeId;
252 Member<Document> m_document; 252 Member<Document> m_document;
253 typedef HeapHashMap<String, HeapVector<Member<Node>>> SearchResults; 253 typedef HeapHashMap<String, HeapVector<Member<Node>>> SearchResults;
254 SearchResults m_searchResults; 254 SearchResults m_searchResults;
255 Member<InspectorRevalidateDOMTask> m_revalidateTask; 255 Member<InspectorRevalidateDOMTask> m_revalidateTask;
256 Member<InspectorHistory> m_history; 256 Member<InspectorHistory> m_history;
257 Member<DOMEditor> m_domEditor; 257 Member<DOMEditor> m_domEditor;
258 bool m_suppressAttributeModifiedEvent; 258 bool m_suppressAttributeModifiedEvent;
259 bool m_traverseFrames;
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