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

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

Issue 2248683006: Site Settings Desktop: Implement individual cookie removal and RemoveAll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * @typedef {{hasChildren: boolean, 6 * @typedef {{hasChildren: boolean,
7 * id: string, 7 * id: string,
8 * title: string, 8 * title: string,
9 * totalUsage: string, 9 * totalUsage: string,
10 * type: string}} 10 * type: string}}
11 */ 11 */
12 var CookieDetails; 12 var CookieDetails;
13 13
14 /** 14 /**
15 * @typedef {{title: string, 15 * @typedef {{title: string,
16 * id: string, 16 * id: string,
17 * data: CookieDetails}} 17 * data: CookieDetails}}
18 */ 18 */
19 var CookieDataItem; 19 var CookieDataItem;
20 20
21 /** 21 /**
22 * @typedef {{site: string, 22 * @typedef {{site: string,
23 * id: string, 23 * id: string,
24 * localData: string}} 24 * localData: string}}
25 */ 25 */
26 var CookieDataSummaryItem; 26 var CookieDataSummaryItem;
27 27
28 /**
29 * @typedef {{id: string,
30 * start: number,
31 * children: !Array<CookieDetails>}}
32 */
33 var CookieList;
34
35 /**
36 * @typedef {{id: string,
37 * start: !number,
38 * count: !number}}
39 */
40 var CookieRemovePacket;
41
28 cr.define('settings', function() { 42 cr.define('settings', function() {
29 'use strict'; 43 'use strict';
30 44
31 /** 45 /**
32 * @constructor 46 * @constructor
33 */ 47 */
34 function CookieTreeNode(data) { 48 function CookieTreeNode(data) {
35 /** 49 /**
36 * The data for this cookie node. 50 * The data for this cookie node.
37 * @private {CookieDetails} 51 * @private {CookieDetails}
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 root.appendChild(content); 234 root.appendChild(content);
221 } 235 }
222 } 236 }
223 }, 237 },
224 }; 238 };
225 239
226 return { 240 return {
227 CookieTreeNode: CookieTreeNode, 241 CookieTreeNode: CookieTreeNode,
228 }; 242 };
229 }); 243 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698