| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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-item', | 6 is: 'history-item', |
| 7 | 7 |
| 8 properties: { | 8 properties: { |
| 9 timeAccessed_: { | 9 timeAccessed_: { |
| 10 type: String, | 10 type: String, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 var position = this.$['menu-button'].getBoundingClientRect(); | 83 var position = this.$['menu-button'].getBoundingClientRect(); |
| 84 | 84 |
| 85 this.fire('toggle-menu', { | 85 this.fire('toggle-menu', { |
| 86 x: position.left, | 86 x: position.left, |
| 87 y: position.top, | 87 y: position.top, |
| 88 accessTime: this.timestamp_ | 88 accessTime: this.timestamp_ |
| 89 }); | 89 }); |
| 90 | 90 |
| 91 // Stops the 'tap' event from closing the menu when it opens. | 91 // Stops the 'tap' event from closing the menu when it opens. |
| 92 e.stopPropagation(); | 92 e.stopPropagation(); |
| 93 }, |
| 94 |
| 95 selectionNotAllowed_: function() { |
| 96 return !loadTimeData.getBoolean('allowDeletingHistory'); |
| 93 } | 97 } |
| 94 }); | 98 }); |
| OLD | NEW |