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

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

Issue 2251343003: [DevTools] Generate separate copies of inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win compile Created 4 years, 3 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 void requestNode(ErrorString*, const String& objectId, int* outNodeId) overr ide; 125 void requestNode(ErrorString*, const String& objectId, int* outNodeId) overr ide;
126 void setInspectMode(ErrorString*, const String& mode, const Maybe<protocol:: DOM::HighlightConfig>&) override; 126 void setInspectMode(ErrorString*, const String& mode, const Maybe<protocol:: DOM::HighlightConfig>&) override;
127 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; 127 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 highlightQuad(ErrorString*, std::unique_ptr<protocol::Array<double>> qu ad, const Maybe<protocol::DOM::RGBA>& color, const Maybe<protocol::DOM::RGBA>& o utlineColor) override; 128 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 highlightNode(ErrorString*, std::unique_ptr<protocol::DOM::HighlightCon fig>, const Maybe<int>& nodeId, const Maybe<int>& backendNodeId, const Maybe<Str ing>& objectId) override; 129 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 hideHighlight(ErrorString*) override; 130 void hideHighlight(ErrorString*) override;
131 void highlightFrame(ErrorString*, const String& frameId, const Maybe<protoco l::DOM::RGBA>& contentColor, const Maybe<protocol::DOM::RGBA>& contentOutlineCol or) override; 131 void highlightFrame(ErrorString*, const String& frameId, const Maybe<protoco l::DOM::RGBA>& contentColor, const Maybe<protocol::DOM::RGBA>& contentOutlineCol or) override;
132 void pushNodeByPathToFrontend(ErrorString*, const String& path, int* outNode Id) override; 132 void pushNodeByPathToFrontend(ErrorString*, const String& path, int* outNode Id) override;
133 void pushNodesByBackendIdsToFrontend(ErrorString*, std::unique_ptr<protocol: :Array<int>> backendNodeIds, std::unique_ptr<protocol::Array<int>>* nodeIds) ove rride; 133 void pushNodesByBackendIdsToFrontend(ErrorString*, std::unique_ptr<protocol: :Array<int>> backendNodeIds, std::unique_ptr<protocol::Array<int>>* nodeIds) ove rride;
134 void setInspectedNode(ErrorString*, int nodeId) override; 134 void setInspectedNode(ErrorString*, int nodeId) override;
135 void resolveNode(ErrorString*, int nodeId, const Maybe<String>& objectGroup, std::unique_ptr<protocol::Runtime::API::RemoteObject>*) override; 135 void resolveNode(ErrorString*, int nodeId, const Maybe<String>& objectGroup, std::unique_ptr<v8_inspector::protocol::Runtime::API::RemoteObject>*) override;
136 void getAttributes(ErrorString*, int nodeId, std::unique_ptr<protocol::Array <String>>* attributes) override; 136 void getAttributes(ErrorString*, int nodeId, std::unique_ptr<protocol::Array <String>>* attributes) override;
137 void copyTo(ErrorString*, int nodeId, int targetNodeId, const Maybe<int>& in sertBeforeNodeId, int* outNodeId) override; 137 void copyTo(ErrorString*, int nodeId, int targetNodeId, const Maybe<int>& in sertBeforeNodeId, int* outNodeId) override;
138 void moveTo(ErrorString*, int nodeId, int targetNodeId, const Maybe<int>& in sertBeforeNodeId, int* outNodeId) override; 138 void moveTo(ErrorString*, int nodeId, int targetNodeId, const Maybe<int>& in sertBeforeNodeId, int* outNodeId) override;
139 void undo(ErrorString*) override; 139 void undo(ErrorString*) override;
140 void redo(ErrorString*) override; 140 void redo(ErrorString*) override;
141 void markUndoableState(ErrorString*) override; 141 void markUndoableState(ErrorString*) override;
142 void focus(ErrorString*, int nodeId) override; 142 void focus(ErrorString*, int nodeId) override;
143 void setFileInputFiles(ErrorString*, int nodeId, std::unique_ptr<protocol::A rray<String>> files) override; 143 void setFileInputFiles(ErrorString*, int nodeId, std::unique_ptr<protocol::A rray<String>> files) override;
144 void getBoxModel(ErrorString*, int nodeId, std::unique_ptr<protocol::DOM::Bo xModel>*) override; 144 void getBoxModel(ErrorString*, int nodeId, std::unique_ptr<protocol::DOM::Bo xModel>*) override;
145 void getNodeForLocation(ErrorString*, int x, int y, int* outNodeId) override ; 145 void getNodeForLocation(ErrorString*, int x, int y, int* outNodeId) override ;
(...skipping 23 matching lines...) Expand all
169 169
170 Node* nodeForId(int nodeId); 170 Node* nodeForId(int nodeId);
171 int boundNodeId(Node*); 171 int boundNodeId(Node*);
172 void setDOMListener(DOMListener*); 172 void setDOMListener(DOMListener*);
173 void inspect(Node*); 173 void inspect(Node*);
174 void nodeHighlightedInOverlay(Node*); 174 void nodeHighlightedInOverlay(Node*);
175 int pushNodePathToFrontend(Node*); 175 int pushNodePathToFrontend(Node*);
176 176
177 static String documentURLString(Document*); 177 static String documentURLString(Document*);
178 178
179 std::unique_ptr<protocol::Runtime::API::RemoteObject> resolveNode(Node*, con st String& objectGroup); 179 std::unique_ptr<v8_inspector::protocol::Runtime::API::RemoteObject> resolveN ode(Node*, const 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 Member<InspectorHistory> m_history; 252 Member<InspectorHistory> m_history;
253 Member<DOMEditor> m_domEditor; 253 Member<DOMEditor> m_domEditor;
254 bool m_suppressAttributeModifiedEvent; 254 bool m_suppressAttributeModifiedEvent;
255 int m_backendNodeIdToInspect; 255 int m_backendNodeIdToInspect;
256 }; 256 };
257 257
258 258
259 } // namespace blink 259 } // namespace blink
260 260
261 #endif // !defined(InspectorDOMAgent_h) 261 #endif // !defined(InspectorDOMAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698