| 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: 'history-side-bar', | 6 is: 'history-side-bar', |
| 7 | 7 |
| 8 behaviors: [Polymer.IronA11yKeysBehavior], | 8 behaviors: [Polymer.IronA11yKeysBehavior], |
| 9 | 9 |
| 10 properties: { | 10 properties: { |
| 11 selectedPage: { | 11 selectedPage: { |
| 12 type: String, | 12 type: String, |
| 13 notify: true, | 13 notify: true, |
| 14 }, | 14 }, |
| 15 | 15 |
| 16 // If true, the sidebar is contained within an app-drawer. | |
| 17 drawer: { | |
| 18 type: Boolean, | |
| 19 reflectToAttribute: true, | |
| 20 }, | |
| 21 | |
| 22 showFooter: Boolean, | 16 showFooter: Boolean, |
| 23 }, | 17 }, |
| 24 | 18 |
| 25 keyBindings: { | 19 keyBindings: { |
| 26 'space:keydown': 'onSpacePressed_', | 20 'space:keydown': 'onSpacePressed_', |
| 27 }, | 21 }, |
| 28 | 22 |
| 29 /** | 23 /** |
| 30 * @param {CustomEvent} e | 24 * @param {CustomEvent} e |
| 31 * @private | 25 * @private |
| (...skipping 24 matching lines...) Expand all Loading... |
| 56 | 50 |
| 57 /** | 51 /** |
| 58 * Prevent clicks on sidebar items from navigating. These are only links for | 52 * Prevent clicks on sidebar items from navigating. These are only links for |
| 59 * accessibility purposes, taps are handled separately by <iron-selector>. | 53 * accessibility purposes, taps are handled separately by <iron-selector>. |
| 60 * @private | 54 * @private |
| 61 */ | 55 */ |
| 62 onItemClick_: function(e) { | 56 onItemClick_: function(e) { |
| 63 e.preventDefault(); | 57 e.preventDefault(); |
| 64 }, | 58 }, |
| 65 }); | 59 }); |
| OLD | NEW |