OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 Polymer({ | 5 Polymer({ |
6 is: 'bookmarks-folder-node', | 6 is: 'bookmarks-folder-node', |
7 | 7 |
8 behaviors: [ | 8 behaviors: [ |
9 bookmarks.StoreClient, | 9 bookmarks.StoreClient, |
10 ], | 10 ], |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 return this.depth + 1; | 111 return this.depth + 1; |
112 }, | 112 }, |
113 | 113 |
114 /** | 114 /** |
115 * @param {string} itemId | 115 * @param {string} itemId |
116 * @private | 116 * @private |
117 * @return {boolean} | 117 * @return {boolean} |
118 */ | 118 */ |
119 isFolder_: function(itemId) { | 119 isFolder_: function(itemId) { |
120 return !this.getState().nodes[itemId].url; | 120 return !this.getState().nodes[itemId].url; |
121 } | 121 }, |
| 122 |
| 123 /** |
| 124 * @private |
| 125 * @return {boolean} |
| 126 */ |
| 127 isRootFolder_: function() { |
| 128 return this.depth == 0; |
| 129 }, |
122 }); | 130 }); |
OLD | NEW |