| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1504 }; | 1504 }; |
| 1505 | 1505 |
| 1506 Resources.CookieTreeElement = class extends Resources.BaseStorageTreeElement { | 1506 Resources.CookieTreeElement = class extends Resources.BaseStorageTreeElement { |
| 1507 /** | 1507 /** |
| 1508 * @param {!Resources.ResourcesPanel} storagePanel | 1508 * @param {!Resources.ResourcesPanel} storagePanel |
| 1509 * @param {!SDK.ResourceTreeFrame} frame | 1509 * @param {!SDK.ResourceTreeFrame} frame |
| 1510 * @param {string} cookieDomain | 1510 * @param {string} cookieDomain |
| 1511 */ | 1511 */ |
| 1512 constructor(storagePanel, frame, cookieDomain) { | 1512 constructor(storagePanel, frame, cookieDomain) { |
| 1513 super(storagePanel, cookieDomain ? cookieDomain : Common.UIString('Local Fil
es'), false); | 1513 super(storagePanel, cookieDomain ? cookieDomain : Common.UIString('Local Fil
es'), false); |
| 1514 this._target = frame.target(); | 1514 this._target = frame.resourceTreeModel().target(); |
| 1515 this._cookieDomain = cookieDomain; | 1515 this._cookieDomain = cookieDomain; |
| 1516 var icon = UI.Icon.create('mediumicon-cookie', 'resource-tree-item'); | 1516 var icon = UI.Icon.create('mediumicon-cookie', 'resource-tree-item'); |
| 1517 this.setLeadingIcons([icon]); | 1517 this.setLeadingIcons([icon]); |
| 1518 } | 1518 } |
| 1519 | 1519 |
| 1520 get itemURL() { | 1520 get itemURL() { |
| 1521 return 'cookies://' + this._cookieDomain; | 1521 return 'cookies://' + this._cookieDomain; |
| 1522 } | 1522 } |
| 1523 | 1523 |
| 1524 /** | 1524 /** |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1647 | 1647 |
| 1648 this.element.classList.add('storage-view'); | 1648 this.element.classList.add('storage-view'); |
| 1649 this._emptyWidget = new UI.EmptyWidget(''); | 1649 this._emptyWidget = new UI.EmptyWidget(''); |
| 1650 this._emptyWidget.show(this.element); | 1650 this._emptyWidget.show(this.element); |
| 1651 } | 1651 } |
| 1652 | 1652 |
| 1653 setText(text) { | 1653 setText(text) { |
| 1654 this._emptyWidget.text = text; | 1654 this._emptyWidget.text = text; |
| 1655 } | 1655 } |
| 1656 }; | 1656 }; |
| OLD | NEW |