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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js

Issue 2138123003: DevTools: remove panel-based clipboard events dispatching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js b/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js
index 4b9023d7429fbf7378ceaf0db7cc838bf45bff98..9096ee1e8eaa7b66b46c4018ec5081043a25841d 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js
@@ -787,18 +787,6 @@ WebInspector.ElementsPanel.prototype = {
},
/**
- * @return {?WebInspector.ElementsTreeOutline}
- */
- _focusedTreeOutline: function()
- {
- for (var i = 0; i < this._treeOutlines.length; ++i) {
- if (this._treeOutlines[i].hasFocus())
- return this._treeOutlines[i];
- }
- return null;
- },
-
- /**
* @param {!WebInspector.DOMNode} node
* @return {?WebInspector.ElementsTreeElement}
*/
@@ -809,36 +797,6 @@ WebInspector.ElementsPanel.prototype = {
},
/**
- * @param {!Event} event
- */
- handleCopyEvent: function(event)
- {
- var treeOutline = this._focusedTreeOutline();
- if (treeOutline)
- treeOutline.handleCopyOrCutKeyboardEvent(false, event);
- },
-
- /**
- * @param {!Event} event
- */
- handleCutEvent: function(event)
- {
- var treeOutline = this._focusedTreeOutline();
- if (treeOutline)
- treeOutline.handleCopyOrCutKeyboardEvent(true, event);
- },
-
- /**
- * @param {!Event} event
- */
- handlePasteEvent: function(event)
- {
- var treeOutline = this._focusedTreeOutline();
- if (treeOutline)
- treeOutline.handlePasteKeyboardEvent(event);
- },
-
- /**
* @param {!WebInspector.DOMNode} node
* @return {!WebInspector.DOMNode}
*/

Powered by Google App Engine
This is Rietveld 408576698