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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month 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/sources/NavigatorView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
index d4ccc42aa7015908c7a6401caccae405ae13c4b8..8aa4fcadd5ca1a1a6978338ca6d9c4eb8f7b8785 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
@@ -882,11 +882,17 @@ WebInspector.NavigatorFolderTreeElement = function(navigatorView, type, title, h
};
WebInspector.NavigatorFolderTreeElement.prototype = {
+ /**
+ * @override
+ */
onpopulate: function()
{
this._node.populate();
},
+ /**
+ * @override
+ */
onattach: function()
{
this.collapse();
@@ -976,6 +982,9 @@ WebInspector.NavigatorSourceTreeElement.prototype = {
return this._uiSourceCode;
},
+ /**
+ * @override
+ */
onattach: function()
{
this.listItemElement.draggable = true;
@@ -1007,6 +1016,9 @@ WebInspector.NavigatorSourceTreeElement.prototype = {
return isSelected && this.treeOutline.element.hasFocus() && !WebInspector.isBeingEdited(this.treeOutline.element);
},
+ /**
+ * @override
+ */
selectOnMouseDown: function(event)
{
if (event.which !== 1 || !this._shouldRenameOnMouseDown()) {
@@ -1501,6 +1513,9 @@ WebInspector.NavigatorFolderTreeNode.prototype = {
return treeElement;
},
+ /**
+ * @override
+ */
wasPopulated: function()
{
if (!this._treeElement || this._treeElement._node !== this)
@@ -1524,6 +1539,10 @@ WebInspector.NavigatorFolderTreeNode.prototype = {
return this._type !== WebInspector.NavigatorView.Types.Domain && node instanceof WebInspector.NavigatorFolderTreeNode;
},
+ /**
+ * @param {!WebInspector.NavigatorTreeNode} node
+ * @override
+ */
didAddChild: function(node)
{
function titleForNode(node)

Powered by Google App Engine
This is Rietveld 408576698