| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 /** @const */ var DeletableItemList = options.DeletableItemList; | 6 /** @const */ var DeletableItemList = options.DeletableItemList; |
| 7 /** @const */ var DeletableItem = options.DeletableItem; | 7 /** @const */ var DeletableItem = options.DeletableItem; |
| 8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; | 8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
| 9 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; | 9 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; |
| 10 | 10 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 this.siteChild.className = 'cookie-site'; | 121 this.siteChild.className = 'cookie-site'; |
| 122 this.dataChild = this.ownerDocument.createElement('div'); | 122 this.dataChild = this.ownerDocument.createElement('div'); |
| 123 this.dataChild.className = 'cookie-data'; | 123 this.dataChild.className = 'cookie-data'; |
| 124 this.sizeChild = this.ownerDocument.createElement('div'); | 124 this.sizeChild = this.ownerDocument.createElement('div'); |
| 125 this.sizeChild.className = 'cookie-size'; | 125 this.sizeChild.className = 'cookie-size'; |
| 126 this.itemsChild = this.ownerDocument.createElement('div'); | 126 this.itemsChild = this.ownerDocument.createElement('div'); |
| 127 this.itemsChild.className = 'cookie-items'; | 127 this.itemsChild.className = 'cookie-items'; |
| 128 this.infoChild = this.ownerDocument.createElement('div'); | 128 this.infoChild = this.ownerDocument.createElement('div'); |
| 129 this.infoChild.className = 'cookie-details'; | 129 this.infoChild.className = 'cookie-details'; |
| 130 this.infoChild.hidden = true; | 130 this.infoChild.hidden = true; |
| 131 |
| 132 if (this.origin.data.appId) { |
| 133 this.siteChild.classList.add('app-cookie-site'); |
| 134 this.itemsChild.classList.add('app-cookie-items'); |
| 135 } |
| 136 |
| 131 var remove = this.ownerDocument.createElement('button'); | 137 var remove = this.ownerDocument.createElement('button'); |
| 132 remove.textContent = loadTimeData.getString('remove_cookie'); | 138 remove.textContent = loadTimeData.getString('remove_cookie'); |
| 133 remove.onclick = this.removeCookie_.bind(this); | 139 remove.onclick = this.removeCookie_.bind(this); |
| 134 this.infoChild.appendChild(remove); | 140 this.infoChild.appendChild(remove); |
| 135 var content = this.contentElement; | 141 var content = this.contentElement; |
| 136 content.appendChild(this.siteChild); | 142 content.appendChild(this.siteChild); |
| 137 content.appendChild(this.dataChild); | 143 content.appendChild(this.dataChild); |
| 138 content.appendChild(this.sizeChild); | 144 content.appendChild(this.sizeChild); |
| 139 content.appendChild(this.itemsChild); | 145 content.appendChild(this.itemsChild); |
| 140 this.itemsChild.appendChild(this.infoChild); | 146 this.itemsChild.appendChild(this.infoChild); |
| (...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 parent.clear(); | 860 parent.clear(); |
| 855 this.addByParent_(parent, 0, children); | 861 this.addByParent_(parent, 0, children); |
| 856 parent.endBatchUpdates(); | 862 parent.endBatchUpdates(); |
| 857 }, | 863 }, |
| 858 }; | 864 }; |
| 859 | 865 |
| 860 return { | 866 return { |
| 861 CookiesList: CookiesList | 867 CookiesList: CookiesList |
| 862 }; | 868 }; |
| 863 }); | 869 }); |
| OLD | NEW |