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.MouseFocusBehavior, | |
10 bookmarks.StoreClient, | 9 bookmarks.StoreClient, |
11 ], | 10 ], |
12 | 11 |
13 properties: { | 12 properties: { |
14 itemId: { | 13 itemId: { |
15 type: String, | 14 type: String, |
16 observer: 'updateFromStore', | 15 observer: 'updateFromStore', |
17 }, | 16 }, |
18 | 17 |
19 depth: { | 18 depth: { |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 * @param {boolean} isClosed | 377 * @param {boolean} isClosed |
379 * @private | 378 * @private |
380 */ | 379 */ |
381 updateAriaExpanded_: function(hasChildFolder, isClosed) { | 380 updateAriaExpanded_: function(hasChildFolder, isClosed) { |
382 if (hasChildFolder) | 381 if (hasChildFolder) |
383 this.getFocusTarget().setAttribute('aria-expanded', String(!isClosed)); | 382 this.getFocusTarget().setAttribute('aria-expanded', String(!isClosed)); |
384 else | 383 else |
385 this.getFocusTarget().removeAttribute('aria-expanded'); | 384 this.getFocusTarget().removeAttribute('aria-expanded'); |
386 }, | 385 }, |
387 }); | 386 }); |
OLD | NEW |