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

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: Rebased patch 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
« no previous file with comments | « Source/devtools/front_end/ui/View.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e973d67c1d7ccf688ac707400004615382caf173..437b58e190deb0fe1154610b5e9fbc38efe91d46 100644
--- a/Source/devtools/front_end/ui/treeoutline.js
+++ b/Source/devtools/front_end/ui/treeoutline.js
@@ -414,6 +414,9 @@ TreeOutline.prototype.collapse = function()
// this is the root, do nothing
}
+/**
+ * @return {boolean}
+ */
TreeOutline.prototype.revealed = function()
{
return true;
@@ -764,6 +767,10 @@ TreeElement.prototype.expandRecursively = function(maxDepth)
}
}
+/**
+ * @param {?TreeElement} ancestor
+ * @return {boolean}
+ */
TreeElement.prototype.hasAncestor = function(ancestor) {
if (!ancestor)
return false;
@@ -790,6 +797,9 @@ TreeElement.prototype.reveal = function()
this.onreveal();
}
+/**
+ * @return {boolean}
+ */
TreeElement.prototype.revealed = function()
{
var currentAncestor = this.parent;
@@ -847,6 +857,7 @@ TreeElement.prototype.revealAndSelect = function(omitFocus)
/**
* @param {boolean=} supressOnDeselect
+ * @return {boolean}
*/
TreeElement.prototype.deselect = function(supressOnDeselect)
{
@@ -966,6 +977,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)
« no previous file with comments | « Source/devtools/front_end/ui/View.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698