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

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

Issue 2159633002: [DevTools] Generate public versions of protocol classes to be exposed in v8_inspector/public. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed extra files Created 4 years, 5 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 void requestNode(ErrorString*, const String& objectId, int* outNodeId) overr ide; 126 void requestNode(ErrorString*, const String& objectId, int* outNodeId) overr ide;
127 void setInspectMode(ErrorString*, const String& mode, const Maybe<protocol:: DOM::HighlightConfig>&) override; 127 void setInspectMode(ErrorString*, const String& mode, const Maybe<protocol:: DOM::HighlightConfig>&) override;
128 void highlightRect(ErrorString*, int x, int y, int width, int height, const Maybe<protocol::DOM::RGBA>& color, const Maybe<protocol::DOM::RGBA>& outlineColo r) override; 128 void highlightRect(ErrorString*, int x, int y, int width, int height, const Maybe<protocol::DOM::RGBA>& color, const Maybe<protocol::DOM::RGBA>& outlineColo r) override;
129 void highlightQuad(ErrorString*, std::unique_ptr<protocol::Array<double>> qu ad, const Maybe<protocol::DOM::RGBA>& color, const Maybe<protocol::DOM::RGBA>& o utlineColor) override; 129 void highlightQuad(ErrorString*, std::unique_ptr<protocol::Array<double>> qu ad, const Maybe<protocol::DOM::RGBA>& color, const Maybe<protocol::DOM::RGBA>& o utlineColor) override;
130 void highlightNode(ErrorString*, std::unique_ptr<protocol::DOM::HighlightCon fig>, const Maybe<int>& nodeId, const Maybe<int>& backendNodeId, const Maybe<Str ing>& objectId) override; 130 void highlightNode(ErrorString*, std::unique_ptr<protocol::DOM::HighlightCon fig>, const Maybe<int>& nodeId, const Maybe<int>& backendNodeId, const Maybe<Str ing>& objectId) override;
131 void hideHighlight(ErrorString*) override; 131 void hideHighlight(ErrorString*) override;
132 void highlightFrame(ErrorString*, const String& frameId, const Maybe<protoco l::DOM::RGBA>& contentColor, const Maybe<protocol::DOM::RGBA>& contentOutlineCol or) override; 132 void highlightFrame(ErrorString*, const String& frameId, const Maybe<protoco l::DOM::RGBA>& contentColor, const Maybe<protocol::DOM::RGBA>& contentOutlineCol or) override;
133 void pushNodeByPathToFrontend(ErrorString*, const String& path, int* outNode Id) override; 133 void pushNodeByPathToFrontend(ErrorString*, const String& path, int* outNode Id) override;
134 void pushNodesByBackendIdsToFrontend(ErrorString*, std::unique_ptr<protocol: :Array<int>> backendNodeIds, std::unique_ptr<protocol::Array<int>>* nodeIds) ove rride; 134 void pushNodesByBackendIdsToFrontend(ErrorString*, std::unique_ptr<protocol: :Array<int>> backendNodeIds, std::unique_ptr<protocol::Array<int>>* nodeIds) ove rride;
135 void setInspectedNode(ErrorString*, int nodeId) override; 135 void setInspectedNode(ErrorString*, int nodeId) override;
136 void resolveNode(ErrorString*, int nodeId, const Maybe<String>& objectGroup, std::unique_ptr<protocol::Runtime::RemoteObject>*) override; 136 void resolveNode(ErrorString*, int nodeId, const Maybe<String>& objectGroup, std::unique_ptr<protocol::Runtime::API::RemoteObject>*) override;
137 void getAttributes(ErrorString*, int nodeId, std::unique_ptr<protocol::Array <String>>* attributes) override; 137 void getAttributes(ErrorString*, int nodeId, std::unique_ptr<protocol::Array <String>>* attributes) override;
138 void copyTo(ErrorString*, int nodeId, int targetNodeId, const Maybe<int>& in sertBeforeNodeId, int* outNodeId) override; 138 void copyTo(ErrorString*, int nodeId, int targetNodeId, const Maybe<int>& in sertBeforeNodeId, int* outNodeId) override;
139 void moveTo(ErrorString*, int nodeId, int targetNodeId, const Maybe<int>& in sertBeforeNodeId, int* outNodeId) override; 139 void moveTo(ErrorString*, int nodeId, int targetNodeId, const Maybe<int>& in sertBeforeNodeId, int* outNodeId) override;
140 void undo(ErrorString*) override; 140 void undo(ErrorString*) override;
141 void redo(ErrorString*) override; 141 void redo(ErrorString*) override;
142 void markUndoableState(ErrorString*) override; 142 void markUndoableState(ErrorString*) override;
143 void focus(ErrorString*, int nodeId) override; 143 void focus(ErrorString*, int nodeId) override;
144 void setFileInputFiles(ErrorString*, int nodeId, std::unique_ptr<protocol::A rray<String>> files) override; 144 void setFileInputFiles(ErrorString*, int nodeId, std::unique_ptr<protocol::A rray<String>> files) override;
145 void getBoxModel(ErrorString*, int nodeId, std::unique_ptr<protocol::DOM::Bo xModel>*) override; 145 void getBoxModel(ErrorString*, int nodeId, std::unique_ptr<protocol::DOM::Bo xModel>*) override;
146 void getNodeForLocation(ErrorString*, int x, int y, int* outNodeId) override ; 146 void getNodeForLocation(ErrorString*, int x, int y, int* outNodeId) override ;
(...skipping 22 matching lines...) Expand all
169 void pseudoElementDestroyed(PseudoElement*); 169 void pseudoElementDestroyed(PseudoElement*);
170 170
171 Node* nodeForId(int nodeId); 171 Node* nodeForId(int nodeId);
172 int boundNodeId(Node*); 172 int boundNodeId(Node*);
173 void setDOMListener(DOMListener*); 173 void setDOMListener(DOMListener*);
174 void inspect(Node*); 174 void inspect(Node*);
175 void nodeHighlightedInOverlay(Node*); 175 void nodeHighlightedInOverlay(Node*);
176 176
177 static String documentURLString(Document*); 177 static String documentURLString(Document*);
178 178
179 std::unique_ptr<protocol::Runtime::RemoteObject> resolveNode(Node*, const St ring& objectGroup); 179 std::unique_ptr<protocol::Runtime::API::RemoteObject> resolveNode(Node*, con st String& objectGroup);
180 180
181 InspectorHistory* history() { return m_history.get(); } 181 InspectorHistory* history() { return m_history.get(); }
182 182
183 // We represent embedded doms as a part of the same hierarchy. Hence we trea t children of frame owners differently. 183 // We represent embedded doms as a part of the same hierarchy. Hence we trea t children of frame owners differently.
184 // We also skip whitespace text nodes conditionally. Following methods encap sulate these specifics. 184 // We also skip whitespace text nodes conditionally. Following methods encap sulate these specifics.
185 static Node* innerFirstChild(Node*); 185 static Node* innerFirstChild(Node*);
186 static Node* innerNextSibling(Node*); 186 static Node* innerNextSibling(Node*);
187 static Node* innerPreviousSibling(Node*); 187 static Node* innerPreviousSibling(Node*);
188 static unsigned innerChildNodeCount(Node*); 188 static unsigned innerChildNodeCount(Node*);
189 static Node* innerParentNode(Node*); 189 static Node* innerParentNode(Node*);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 Member<InspectorHistory> m_history; 253 Member<InspectorHistory> m_history;
254 Member<DOMEditor> m_domEditor; 254 Member<DOMEditor> m_domEditor;
255 bool m_suppressAttributeModifiedEvent; 255 bool m_suppressAttributeModifiedEvent;
256 int m_backendNodeIdToInspect; 256 int m_backendNodeIdToInspect;
257 }; 257 };
258 258
259 259
260 } // namespace blink 260 } // namespace blink
261 261
262 #endif // !defined(InspectorDOMAgent_h) 262 #endif // !defined(InspectorDOMAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698