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

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

Issue 1149713006: [DevTools] Removed DOMAgent.getEventListenerForNode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@extract-event-listeners-tree-outline
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | Source/core/inspector/InspectorDOMAgent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 virtual void getDocument(ErrorString*, RefPtr<TypeBuilder::DOM::Node>& root) override; 111 virtual void getDocument(ErrorString*, RefPtr<TypeBuilder::DOM::Node>& root) override;
112 virtual void requestChildNodes(ErrorString*, int nodeId, const int* depth) o verride; 112 virtual void requestChildNodes(ErrorString*, int nodeId, const int* depth) o verride;
113 virtual void setAttributeValue(ErrorString*, int elementId, const String& na me, const String& value) override; 113 virtual void setAttributeValue(ErrorString*, int elementId, const String& na me, const String& value) override;
114 virtual void setAttributesAsText(ErrorString*, int elementId, const String& text, const String* name) override; 114 virtual void setAttributesAsText(ErrorString*, int elementId, const String& text, const String* name) override;
115 virtual void removeAttribute(ErrorString*, int elementId, const String& name ) override; 115 virtual void removeAttribute(ErrorString*, int elementId, const String& name ) override;
116 virtual void removeNode(ErrorString*, int nodeId) override; 116 virtual void removeNode(ErrorString*, int nodeId) override;
117 virtual void setNodeName(ErrorString*, int nodeId, const String& name, int* newId) override; 117 virtual void setNodeName(ErrorString*, int nodeId, const String& name, int* newId) override;
118 virtual void getOuterHTML(ErrorString*, int nodeId, WTF::String* outerHTML) override; 118 virtual void getOuterHTML(ErrorString*, int nodeId, WTF::String* outerHTML) override;
119 virtual void setOuterHTML(ErrorString*, int nodeId, const String& outerHTML) override; 119 virtual void setOuterHTML(ErrorString*, int nodeId, const String& outerHTML) override;
120 virtual void setNodeValue(ErrorString*, int nodeId, const String& value) ove rride; 120 virtual void setNodeValue(ErrorString*, int nodeId, const String& value) ove rride;
121 virtual void getEventListenersForNode(ErrorString*, int nodeId, const WTF::S tring* objectGroup, RefPtr<TypeBuilder::Array<TypeBuilder::DOM::EventListener> > & listenersArray) override;
122 virtual void performSearch(ErrorString*, const String& whitespaceTrimmedQuer y, const bool* includeUserAgentShadowDOM, String* searchId, int* resultCount) ov erride; 121 virtual void performSearch(ErrorString*, const String& whitespaceTrimmedQuer y, const bool* includeUserAgentShadowDOM, String* searchId, int* resultCount) ov erride;
123 virtual void getSearchResults(ErrorString*, const String& searchId, int from Index, int toIndex, RefPtr<TypeBuilder::Array<int> >&) override; 122 virtual void getSearchResults(ErrorString*, const String& searchId, int from Index, int toIndex, RefPtr<TypeBuilder::Array<int> >&) override;
124 virtual void discardSearchResults(ErrorString*, const String& searchId) over ride; 123 virtual void discardSearchResults(ErrorString*, const String& searchId) over ride;
125 virtual void resolveNode(ErrorString*, int nodeId, const String* objectGroup , RefPtr<TypeBuilder::Runtime::RemoteObject>& result) override; 124 virtual void resolveNode(ErrorString*, int nodeId, const String* objectGroup , RefPtr<TypeBuilder::Runtime::RemoteObject>& result) override;
126 virtual void getAttributes(ErrorString*, int nodeId, RefPtr<TypeBuilder::Arr ay<String> >& result) override; 125 virtual void getAttributes(ErrorString*, int nodeId, RefPtr<TypeBuilder::Arr ay<String> >& result) override;
127 virtual void setInspectModeEnabled(ErrorString*, bool enabled, const bool* i nspectUAShadowDOM, const RefPtr<JSONObject>* highlightConfig) override; 126 virtual void setInspectModeEnabled(ErrorString*, bool enabled, const bool* i nspectUAShadowDOM, const RefPtr<JSONObject>* highlightConfig) override;
128 virtual void requestNode(ErrorString*, const String& objectId, int* nodeId) override; 127 virtual void requestNode(ErrorString*, const String& objectId, int* nodeId) override;
129 virtual void pushNodeByPathToFrontend(ErrorString*, const String& path, int* nodeId) override; 128 virtual void pushNodeByPathToFrontend(ErrorString*, const String& path, int* nodeId) override;
130 virtual void pushNodesByBackendIdsToFrontend(ErrorString*, const RefPtr<JSON Array>& nodeIds, RefPtr<TypeBuilder::Array<int> >&) override; 129 virtual void pushNodesByBackendIdsToFrontend(ErrorString*, const RefPtr<JSON Array>& nodeIds, RefPtr<TypeBuilder::Array<int> >&) override;
131 virtual void setInspectedNode(ErrorString*, int nodeId) override; 130 virtual void setInspectedNode(ErrorString*, int nodeId) override;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 225
227 int pushNodePathToFrontend(Node*, NodeToIdMap* nodeMap); 226 int pushNodePathToFrontend(Node*, NodeToIdMap* nodeMap);
228 int pushNodePathToFrontend(Node*); 227 int pushNodePathToFrontend(Node*);
229 void pushChildNodesToFrontend(int nodeId, int depth = 1); 228 void pushChildNodesToFrontend(int nodeId, int depth = 1);
230 229
231 void invalidateFrameOwnerElement(LocalFrame*); 230 void invalidateFrameOwnerElement(LocalFrame*);
232 231
233 PassRefPtr<TypeBuilder::DOM::Node> buildObjectForNode(Node*, int depth, Node ToIdMap*); 232 PassRefPtr<TypeBuilder::DOM::Node> buildObjectForNode(Node*, int depth, Node ToIdMap*);
234 PassRefPtr<TypeBuilder::Array<String> > buildArrayForElementAttributes(Eleme nt*); 233 PassRefPtr<TypeBuilder::Array<String> > buildArrayForElementAttributes(Eleme nt*);
235 PassRefPtr<TypeBuilder::Array<TypeBuilder::DOM::Node> > buildArrayForContain erChildren(Node* container, int depth, NodeToIdMap* nodesMap); 234 PassRefPtr<TypeBuilder::Array<TypeBuilder::DOM::Node> > buildArrayForContain erChildren(Node* container, int depth, NodeToIdMap* nodesMap);
236 PassRefPtr<TypeBuilder::DOM::EventListener> buildObjectForEventListener(cons t RegisteredEventListener&, const AtomicString& eventType, Node*, const String* objectGroupId);
237 PassRefPtr<TypeBuilder::Array<TypeBuilder::DOM::Node> > buildArrayForPseudoE lements(Element*, NodeToIdMap* nodesMap); 235 PassRefPtr<TypeBuilder::Array<TypeBuilder::DOM::Node> > buildArrayForPseudoE lements(Element*, NodeToIdMap* nodesMap);
238 PassRefPtr<TypeBuilder::Array<TypeBuilder::DOM::BackendNode>> buildArrayForD istributedNodes(InsertionPoint*); 236 PassRefPtr<TypeBuilder::Array<TypeBuilder::DOM::BackendNode>> buildArrayForD istributedNodes(InsertionPoint*);
239 237
240 Node* nodeForPath(const String& path); 238 Node* nodeForPath(const String& path);
241 239
242 void discardFrontendBindings(); 240 void discardFrontendBindings();
243 241
244 void innerHighlightQuad(PassOwnPtr<FloatQuad>, const RefPtr<JSONObject>* col or, const RefPtr<JSONObject>* outlineColor); 242 void innerHighlightQuad(PassOwnPtr<FloatQuad>, const RefPtr<JSONObject>* col or, const RefPtr<JSONObject>* outlineColor);
245 243
246 bool pushDocumentUponHandlelessOperation(ErrorString*); 244 bool pushDocumentUponHandlelessOperation(ErrorString*);
(...skipping 24 matching lines...) Expand all
271 OwnPtrWillBeMember<DOMEditor> m_domEditor; 269 OwnPtrWillBeMember<DOMEditor> m_domEditor;
272 bool m_suppressAttributeModifiedEvent; 270 bool m_suppressAttributeModifiedEvent;
273 RawPtrWillBeMember<Listener> m_listener; 271 RawPtrWillBeMember<Listener> m_listener;
274 int m_backendNodeIdToInspect; 272 int m_backendNodeIdToInspect;
275 }; 273 };
276 274
277 275
278 } // namespace blink 276 } // namespace blink
279 277
280 #endif // !defined(InspectorDOMAgent_h) 278 #endif // !defined(InspectorDOMAgent_h)
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorDOMAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698