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

Unified Diff: Source/core/inspector/InspectorDOMAgent.h

Issue 397303002: DevTools: [Elements] Implement shortcut-based node cut-copy-pasting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add visual feedback for nodes in the clipboard Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InspectorDOMAgent.h
diff --git a/Source/core/inspector/InspectorDOMAgent.h b/Source/core/inspector/InspectorDOMAgent.h
index 1a62ab09a65e4107f4f5570a2e3143db457513b3..63ff8a60a03c0bbbcfac9c38ff9c29bee6afc646 100644
--- a/Source/core/inspector/InspectorDOMAgent.h
+++ b/Source/core/inspector/InspectorDOMAgent.h
@@ -142,6 +142,7 @@ public:
virtual void highlightNode(ErrorString*, const RefPtr<JSONObject>& highlightConfig, const int* nodeId, const String* objectId) OVERRIDE;
virtual void highlightFrame(ErrorString*, const String& frameId, const RefPtr<JSONObject>* color, const RefPtr<JSONObject>* outlineColor) OVERRIDE;
+ virtual void copyTo(ErrorString*, int nodeId, int targetElementId, const int* const anchorNodeId, const bool* const deep, int* newNodeId) OVERRIDE;
virtual void moveTo(ErrorString*, int nodeId, int targetNodeId, const int* anchorNodeId, int* newNodeId) OVERRIDE;
virtual void undo(ErrorString*) OVERRIDE;
virtual void redo(ErrorString*) OVERRIDE;
@@ -229,6 +230,7 @@ private:
void unbind(Node*, NodeToIdMap*);
Node* assertEditableNode(ErrorString*, int nodeId);
+ Node* assertEditableChildNode(ErrorString*, Element* parentElement, int nodeId);
Element* assertEditableElement(ErrorString*, int nodeId);
void inspect(Node*);
« no previous file with comments | « no previous file | Source/core/inspector/InspectorDOMAgent.cpp » ('j') | Source/core/inspector/InspectorDOMAgent.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698