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

Unified Diff: Source/devtools/front_end/ui/treeoutline.js

Issue 340513003: DevTools: Add JSDoc for static methods, fix JSDoc types and induced errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/devtools/front_end/ui/treeoutline.js
diff --git a/Source/devtools/front_end/ui/treeoutline.js b/Source/devtools/front_end/ui/treeoutline.js
index a9e1efa133e60fb5a348994faf1539bf1fea439b..1ebc79ad5e01a8b3cbc66cd1b3819d5c2c0bb3ba 100644
--- a/Source/devtools/front_end/ui/treeoutline.js
+++ b/Source/devtools/front_end/ui/treeoutline.js
@@ -415,6 +415,9 @@ TreeOutline.prototype.collapse = function()
// this is the root, do nothing
}
+/**
+ * @return {boolean}
+ */
TreeOutline.prototype.revealed = function()
{
return true;
@@ -765,6 +768,10 @@ TreeElement.prototype.expandRecursively = function(maxDepth)
}
}
+/**
+ * @param {?TreeElement} ancestor
+ * @return {boolean}
+ */
TreeElement.prototype.hasAncestor = function(ancestor) {
if (!ancestor)
return false;
@@ -791,6 +798,9 @@ TreeElement.prototype.reveal = function()
this.onreveal();
}
+/**
+ * @return {boolean}
+ */
TreeElement.prototype.revealed = function()
{
var currentAncestor = this.parent;
@@ -848,6 +858,7 @@ TreeElement.prototype.revealAndSelect = function(omitFocus)
/**
* @param {boolean=} supressOnDeselect
+ * @return {boolean}
*/
TreeElement.prototype.deselect = function(supressOnDeselect)
{
@@ -967,6 +978,9 @@ TreeElement.prototype.traversePreviousTreeElement = function(skipUnrevealed, don
return this.parent;
}
+/**
+ * @return {boolean}
+ */
TreeElement.prototype.isEventWithinDisclosureTriangle = function(event)
{
// FIXME: We should not use getComputedStyle(). For that we need to get rid of using ::before for disclosure triangle. (http://webk.it/74446)

Powered by Google App Engine
This is Rietveld 408576698