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

Side by Side Diff: chrome/browser/resources/settings/site_settings/site_list.js

Issue 2769453002: MD Settings: Allow deleting read-only content setting exceptions. (Closed)
Patch Set: Created 3 years, 9 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 /** 5 /**
6 * Enumeration mapping all possible controlled-by values for exceptions to 6 * Enumeration mapping all possible controlled-by values for exceptions to
7 * icons. 7 * icons.
8 * @enum {string} 8 * @enum {string}
9 */ 9 */
10 var iconControlledBy = { 10 var iconControlledBy = {
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 487
488 if (item.incognito) 488 if (item.incognito)
489 return loadTimeData.getString('incognitoSite'); 489 return loadTimeData.getString('incognitoSite');
490 return item.embeddingDisplayName; 490 return item.embeddingDisplayName;
491 }, 491 },
492 492
493 /** 493 /**
494 * @param {!{model: !{item: !SiteException}}} e 494 * @param {!{model: !{item: !SiteException}}} e
495 * @private 495 * @private
496 */ 496 */
497 onResetButtonTap_: function(e) {
498 // Trigger same logic as opening the menu and choosing the Reset item.
499 this.actionMenuSite_ = e.model.item;
500 this.onResetTap_();
dschuyler 2017/03/22 18:33:08 It looks like only this.onActionMenuActivate_(sett
tommycli 2017/03/22 21:05:37 Done.
501 },
502
503 /**
504 * @param {!{model: !{item: !SiteException}}} e
505 * @private
506 */
497 onShowActionMenuTap_: function(e) { 507 onShowActionMenuTap_: function(e) {
498 this.actionMenuSite_ = e.model.item; 508 this.actionMenuSite_ = e.model.item;
499 /** @type {!CrActionMenuElement} */ ( 509 /** @type {!CrActionMenuElement} */ (
500 this.$$('dialog[is=cr-action-menu]')).showAt( 510 this.$$('dialog[is=cr-action-menu]')).showAt(
501 /** @type {!Element} */ ( 511 /** @type {!Element} */ (
502 Polymer.dom(/** @type {!Event} */ (e)).localTarget)); 512 Polymer.dom(/** @type {!Event} */ (e)).localTarget));
503 }, 513 },
504 514
505 /** @private */ 515 /** @private */
506 closeActionMenu_: function() { 516 closeActionMenu_: function() {
507 this.actionMenuSite_ = null; 517 this.actionMenuSite_ = null;
508 var actionMenu = /** @type {!CrActionMenuElement} */ ( 518 var actionMenu = /** @type {!CrActionMenuElement} */ (
509 this.$$('dialog[is=cr-action-menu]')); 519 this.$$('dialog[is=cr-action-menu]'));
510 if (actionMenu.open) 520 if (actionMenu.open)
511 actionMenu.close(); 521 actionMenu.close();
512 }, 522 },
513 }); 523 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698