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

Side by Side Diff: chrome/browser/resources/md_history/history_item.js

Issue 1586373002: MD History: Delete button in the toolbar allows deletion of multiple history-items. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patch_to_be_uploaded
Patch Set: Rebase. Created 4 years, 10 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 unified diff | Download patch
OLDNEW
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698