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 /** | 5 /** |
6 * @fileoverview | 6 * @fileoverview |
7 * 'site-list' shows a list of Allowed and Blocked sites for a given | 7 * 'site-list' shows a list of Allowed and Blocked sites for a given |
8 * category. | 8 * category. |
9 */ | 9 */ |
10 Polymer({ | 10 Polymer({ |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 | 308 |
309 /** | 309 /** |
310 * A handler for selecting a site (by clicking on the origin). | 310 * A handler for selecting a site (by clicking on the origin). |
311 * @param {!{model: !{item: !SiteException}}} event | 311 * @param {!{model: !{item: !SiteException}}} event |
312 * @private | 312 * @private |
313 */ | 313 */ |
314 onOriginTap_: function(event) { | 314 onOriginTap_: function(event) { |
315 if (!this.enableSiteSettings_) | 315 if (!this.enableSiteSettings_) |
316 return; | 316 return; |
317 settings.navigateTo( | 317 settings.navigateTo( |
318 settings.Route.SITE_SETTINGS_SITE_DETAILS, | 318 settings.routes.SITE_SETTINGS_SITE_DETAILS, |
319 new URLSearchParams('site=' + event.model.item.origin)); | 319 new URLSearchParams('site=' + event.model.item.origin)); |
320 }, | 320 }, |
321 | 321 |
322 /** | 322 /** |
323 * @param {?SiteException} site | 323 * @param {?SiteException} site |
324 * @private | 324 * @private |
325 */ | 325 */ |
326 resetPermissionForOrigin_: function(site) { | 326 resetPermissionForOrigin_: function(site) { |
327 assert(site); | 327 assert(site); |
328 this.browserProxy.resetCategoryPermissionForOrigin( | 328 this.browserProxy.resetCategoryPermissionForOrigin( |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 /** @private */ | 430 /** @private */ |
431 closeActionMenu_: function() { | 431 closeActionMenu_: function() { |
432 this.actionMenuSite_ = null; | 432 this.actionMenuSite_ = null; |
433 this.activeDialogAnchor_ = null; | 433 this.activeDialogAnchor_ = null; |
434 var actionMenu = /** @type {!CrActionMenuElement} */ ( | 434 var actionMenu = /** @type {!CrActionMenuElement} */ ( |
435 this.$$('dialog[is=cr-action-menu]')); | 435 this.$$('dialog[is=cr-action-menu]')); |
436 if (actionMenu.open) | 436 if (actionMenu.open) |
437 actionMenu.close(); | 437 actionMenu.close(); |
438 }, | 438 }, |
439 }); | 439 }); |
OLD | NEW |