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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js

Issue 1979163003: Updated icons in Resources/Application panel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sprited new assets used in Application/Resources panel Created 4 years, 7 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 /* 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 this._applicationTreeElement = this._addSidebarSection(WebInspector.UIString ("Application")); 50 this._applicationTreeElement = this._addSidebarSection(WebInspector.UIString ("Application"));
51 this._manifestTreeElement = new WebInspector.AppManifestTreeElement(this); 51 this._manifestTreeElement = new WebInspector.AppManifestTreeElement(this);
52 this._applicationTreeElement.appendChild(this._manifestTreeElement); 52 this._applicationTreeElement.appendChild(this._manifestTreeElement);
53 this.serviceWorkersTreeElement = new WebInspector.ServiceWorkersTreeElement( this); 53 this.serviceWorkersTreeElement = new WebInspector.ServiceWorkersTreeElement( this);
54 this._applicationTreeElement.appendChild(this.serviceWorkersTreeElement); 54 this._applicationTreeElement.appendChild(this.serviceWorkersTreeElement);
55 var clearStorageTreeElement = new WebInspector.ClearStorageTreeElement(this) ; 55 var clearStorageTreeElement = new WebInspector.ClearStorageTreeElement(this) ;
56 this._applicationTreeElement.appendChild(clearStorageTreeElement); 56 this._applicationTreeElement.appendChild(clearStorageTreeElement);
57 57
58 var storageTreeElement = this._addSidebarSection(WebInspector.UIString("Stor age")); 58 var storageTreeElement = this._addSidebarSection(WebInspector.UIString("Stor age"));
59 this.localStorageListTreeElement = new WebInspector.StorageCategoryTreeEleme nt(this, WebInspector.UIString("Local Storage"), "LocalStorage", ["domstorage-st orage-tree-item", "local-storage"]); 59 this.localStorageListTreeElement = new WebInspector.StorageCategoryTreeEleme nt(this, WebInspector.UIString("Local Storage"), "LocalStorage", ["localstorage- tree-item", "table-tree-item", "resource-tree-item"]);
pfeldman 2016/05/18 05:36:50 localstorage-tree-item is unused.
chowse 2016/05/18 17:17:42 Done.
60 storageTreeElement.appendChild(this.localStorageListTreeElement); 60 storageTreeElement.appendChild(this.localStorageListTreeElement);
61 this.sessionStorageListTreeElement = new WebInspector.StorageCategoryTreeEle ment(this, WebInspector.UIString("Session Storage"), "SessionStorage", ["domstor age-storage-tree-item", "session-storage"]); 61 this.sessionStorageListTreeElement = new WebInspector.StorageCategoryTreeEle ment(this, WebInspector.UIString("Session Storage"), "SessionStorage", ["session storage-tree-item", "table-tree-item", "resource-tree-item"]);
pfeldman 2016/05/18 05:36:50 ditto
chowse 2016/05/18 17:17:42 Done.
62 storageTreeElement.appendChild(this.sessionStorageListTreeElement); 62 storageTreeElement.appendChild(this.sessionStorageListTreeElement);
63 this.indexedDBListTreeElement = new WebInspector.IndexedDBTreeElement(this); 63 this.indexedDBListTreeElement = new WebInspector.IndexedDBTreeElement(this);
64 storageTreeElement.appendChild(this.indexedDBListTreeElement); 64 storageTreeElement.appendChild(this.indexedDBListTreeElement);
65 this.databasesListTreeElement = new WebInspector.StorageCategoryTreeElement( this, WebInspector.UIString("Web SQL"), "Databases", ["database-storage-tree-ite m"]); 65 this.databasesListTreeElement = new WebInspector.StorageCategoryTreeElement( this, WebInspector.UIString("Web SQL"), "Databases", ["websql-tree-item", "datab ase-tree-item", "resource-tree-item"]);
pfeldman 2016/05/18 05:36:50 websql-tree-item is unused.
chowse 2016/05/18 17:17:42 Done.
66 storageTreeElement.appendChild(this.databasesListTreeElement); 66 storageTreeElement.appendChild(this.databasesListTreeElement);
67 this.cookieListTreeElement = new WebInspector.StorageCategoryTreeElement(thi s, WebInspector.UIString("Cookies"), "Cookies", ["cookie-storage-tree-item"]); 67 this.cookieListTreeElement = new WebInspector.StorageCategoryTreeElement(thi s, WebInspector.UIString("Cookies"), "Cookies", ["cookie-tree-item", "resource-t ree-item"]);
68 storageTreeElement.appendChild(this.cookieListTreeElement); 68 storageTreeElement.appendChild(this.cookieListTreeElement);
69 69
70 var cacheTreeElement = this._addSidebarSection(WebInspector.UIString("Cache" )); 70 var cacheTreeElement = this._addSidebarSection(WebInspector.UIString("Cache" ));
71 this.cacheStorageListTreeElement = new WebInspector.ServiceWorkerCacheTreeEl ement(this); 71 this.cacheStorageListTreeElement = new WebInspector.ServiceWorkerCacheTreeEl ement(this);
72 cacheTreeElement.appendChild(this.cacheStorageListTreeElement); 72 cacheTreeElement.appendChild(this.cacheStorageListTreeElement);
73 this.applicationCacheListTreeElement = new WebInspector.StorageCategoryTreeE lement(this, WebInspector.UIString("Application Cache"), "ApplicationCache", ["a pplication-cache-storage-tree-item"]); 73 this.applicationCacheListTreeElement = new WebInspector.StorageCategoryTreeE lement(this, WebInspector.UIString("Application Cache"), "ApplicationCache", ["a ppcache-tree-item", "table-tree-item", "resource-tree-item"]);
pfeldman 2016/05/18 05:36:50 ditto
chowse 2016/05/18 17:17:42 Done.
74 cacheTreeElement.appendChild(this.applicationCacheListTreeElement); 74 cacheTreeElement.appendChild(this.applicationCacheListTreeElement);
75 75
76 this.resourcesListTreeElement = this._addSidebarSection(WebInspector.UIStrin g("Frames")); 76 this.resourcesListTreeElement = this._addSidebarSection(WebInspector.UIStrin g("Frames"));
77 77
78 var mainContainer = new WebInspector.VBox(); 78 var mainContainer = new WebInspector.VBox();
79 this.storageViews = mainContainer.element.createChild("div", "vbox flex-auto "); 79 this.storageViews = mainContainer.element.createChild("div", "vbox flex-auto ");
80 this._storageViewToolbar = new WebInspector.Toolbar("resources-toolbar", mai nContainer.element); 80 this._storageViewToolbar = new WebInspector.Toolbar("resources-toolbar", mai nContainer.element);
81 this.splitWidget().setMainWidget(mainContainer); 81 this.splitWidget().setMainWidget(mainContainer);
82 82
83 /** @type {!Map.<!WebInspector.Database, !Object.<string, !WebInspector.Data baseTableView>>} */ 83 /** @type {!Map.<!WebInspector.Database, !Object.<string, !WebInspector.Data baseTableView>>} */
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 this._addDOMStorage(domStorage); 429 this._addDOMStorage(domStorage);
430 }, 430 },
431 431
432 /** 432 /**
433 * @param {!WebInspector.DOMStorage} domStorage 433 * @param {!WebInspector.DOMStorage} domStorage
434 */ 434 */
435 _addDOMStorage: function(domStorage) 435 _addDOMStorage: function(domStorage)
436 { 436 {
437 console.assert(!this._domStorageTreeElements.get(domStorage)); 437 console.assert(!this._domStorageTreeElements.get(domStorage));
438 438
439 var domStorageTreeElement = new WebInspector.DOMStorageTreeElement(this, domStorage, (domStorage.isLocalStorage ? "local-storage" : "session-storage")); 439 var domStorageTreeElement = new WebInspector.DOMStorageTreeElement(this, domStorage, (domStorage.isLocalStorage ? "local-storage-tree-item" : "session-s torage-tree-item"));
pfeldman 2016/05/18 05:36:50 no need for icons on actual elements?
chowse 2016/05/18 17:17:42 Done.
440 this._domStorageTreeElements.set(domStorage, domStorageTreeElement); 440 this._domStorageTreeElements.set(domStorage, domStorageTreeElement);
441 if (domStorage.isLocalStorage) 441 if (domStorage.isLocalStorage)
442 this.localStorageListTreeElement.appendChild(domStorageTreeElement); 442 this.localStorageListTreeElement.appendChild(domStorageTreeElement);
443 else 443 else
444 this.sessionStorageListTreeElement.appendChild(domStorageTreeElement ); 444 this.sessionStorageListTreeElement.appendChild(domStorageTreeElement );
445 }, 445 },
446 446
447 /** 447 /**
448 * @param {!WebInspector.Event} event 448 * @param {!WebInspector.Event} event
449 */ 449 */
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 } 977 }
978 978
979 /** 979 /**
980 * @constructor 980 * @constructor
981 * @extends {WebInspector.BaseStorageTreeElement} 981 * @extends {WebInspector.BaseStorageTreeElement}
982 * @param {!WebInspector.ResourcesPanel} storagePanel 982 * @param {!WebInspector.ResourcesPanel} storagePanel
983 * @param {!WebInspector.ResourceTreeFrame} frame 983 * @param {!WebInspector.ResourceTreeFrame} frame
984 */ 984 */
985 WebInspector.FrameTreeElement = function(storagePanel, frame) 985 WebInspector.FrameTreeElement = function(storagePanel, frame)
986 { 986 {
987 WebInspector.BaseStorageTreeElement.call(this, storagePanel, "", ["navigator -tree-item", "navigator-folder-tree-item"]); 987 WebInspector.BaseStorageTreeElement.call(this, storagePanel, "", ["navigator -tree-item", "navigator-frame-tree-item"]);
988 this._frame = frame; 988 this._frame = frame;
989 this.frameNavigated(frame); 989 this.frameNavigated(frame);
990 } 990 }
991 991
992 WebInspector.FrameTreeElement.prototype = { 992 WebInspector.FrameTreeElement.prototype = {
993 frameNavigated: function(frame) 993 frameNavigated: function(frame)
994 { 994 {
995 this.removeChildren(); 995 this.removeChildren();
996 this._frameId = frame.id; 996 this._frameId = frame.id;
997 this.title = frame.displayName(); 997 this.title = frame.displayName();
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 } 1197 }
1198 1198
1199 /** 1199 /**
1200 * @constructor 1200 * @constructor
1201 * @extends {WebInspector.BaseStorageTreeElement} 1201 * @extends {WebInspector.BaseStorageTreeElement}
1202 * @param {!WebInspector.ResourcesPanel} storagePanel 1202 * @param {!WebInspector.ResourcesPanel} storagePanel
1203 * @param {!WebInspector.Database} database 1203 * @param {!WebInspector.Database} database
1204 */ 1204 */
1205 WebInspector.DatabaseTreeElement = function(storagePanel, database) 1205 WebInspector.DatabaseTreeElement = function(storagePanel, database)
1206 { 1206 {
1207 WebInspector.BaseStorageTreeElement.call(this, storagePanel, database.name, ["database-storage-tree-item"], true); 1207 WebInspector.BaseStorageTreeElement.call(this, storagePanel, database.name, ["database-tree-item", "resource-tree-item"], true);
1208 this._database = database; 1208 this._database = database;
1209 } 1209 }
1210 1210
1211 WebInspector.DatabaseTreeElement.prototype = { 1211 WebInspector.DatabaseTreeElement.prototype = {
1212 get itemURL() 1212 get itemURL()
1213 { 1213 {
1214 return "database://" + encodeURI(this._database.name); 1214 return "database://" + encodeURI(this._database.name);
1215 }, 1215 },
1216 1216
1217 /** 1217 /**
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 1252
1253 __proto__: WebInspector.BaseStorageTreeElement.prototype 1253 __proto__: WebInspector.BaseStorageTreeElement.prototype
1254 } 1254 }
1255 1255
1256 /** 1256 /**
1257 * @constructor 1257 * @constructor
1258 * @extends {WebInspector.BaseStorageTreeElement} 1258 * @extends {WebInspector.BaseStorageTreeElement}
1259 */ 1259 */
1260 WebInspector.DatabaseTableTreeElement = function(storagePanel, database, tableNa me) 1260 WebInspector.DatabaseTableTreeElement = function(storagePanel, database, tableNa me)
1261 { 1261 {
1262 WebInspector.BaseStorageTreeElement.call(this, storagePanel, tableName, ["da tabase-table-storage-tree-item"]); 1262 WebInspector.BaseStorageTreeElement.call(this, storagePanel, tableName, ["ta ble-tree-item", "resource-tree-item"]);
1263 this._database = database; 1263 this._database = database;
1264 this._tableName = tableName; 1264 this._tableName = tableName;
1265 } 1265 }
1266 1266
1267 WebInspector.DatabaseTableTreeElement.prototype = { 1267 WebInspector.DatabaseTableTreeElement.prototype = {
1268 get itemURL() 1268 get itemURL()
1269 { 1269 {
1270 return "database://" + encodeURI(this._database.name) + "/" + encodeURI( this._tableName); 1270 return "database://" + encodeURI(this._database.name) + "/" + encodeURI( this._tableName);
1271 }, 1271 },
1272 1272
(...skipping 12 matching lines...) Expand all
1285 } 1285 }
1286 1286
1287 1287
1288 /** 1288 /**
1289 * @constructor 1289 * @constructor
1290 * @extends {WebInspector.StorageCategoryTreeElement} 1290 * @extends {WebInspector.StorageCategoryTreeElement}
1291 * @param {!WebInspector.ResourcesPanel} storagePanel 1291 * @param {!WebInspector.ResourcesPanel} storagePanel
1292 */ 1292 */
1293 WebInspector.ServiceWorkerCacheTreeElement = function(storagePanel) 1293 WebInspector.ServiceWorkerCacheTreeElement = function(storagePanel)
1294 { 1294 {
1295 WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspecto r.UIString("Cache Storage"), "CacheStorage", ["service-worker-cache-storage-tree -item"]); 1295 WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspecto r.UIString("Cache Storage"), "CacheStorage", ["service-worker-cache-tree-item", "database-tree-item", "resource-tree-item"]);
pfeldman 2016/05/18 05:36:49 Remove service-worker-cache-tree-item
chowse 2016/05/18 17:17:42 Done.
1296 } 1296 }
1297 1297
1298 WebInspector.ServiceWorkerCacheTreeElement.prototype = { 1298 WebInspector.ServiceWorkerCacheTreeElement.prototype = {
1299 _initialize: function() 1299 _initialize: function()
1300 { 1300 {
1301 /** @type {!Array.<!WebInspector.SWCacheTreeElement>} */ 1301 /** @type {!Array.<!WebInspector.SWCacheTreeElement>} */
1302 this._swCacheTreeElements = []; 1302 this._swCacheTreeElements = [];
1303 var target = this._storagePanel._target; 1303 var target = this._storagePanel._target;
1304 if (target) { 1304 if (target) {
1305 var model = WebInspector.ServiceWorkerCacheModel.fromTarget(target); 1305 var model = WebInspector.ServiceWorkerCacheModel.fromTarget(target);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
1395 1395
1396 /** 1396 /**
1397 * @constructor 1397 * @constructor
1398 * @extends {WebInspector.BaseStorageTreeElement} 1398 * @extends {WebInspector.BaseStorageTreeElement}
1399 * @param {!WebInspector.ResourcesPanel} storagePanel 1399 * @param {!WebInspector.ResourcesPanel} storagePanel
1400 * @param {!WebInspector.ServiceWorkerCacheModel} model 1400 * @param {!WebInspector.ServiceWorkerCacheModel} model
1401 * @param {!WebInspector.ServiceWorkerCacheModel.Cache} cache 1401 * @param {!WebInspector.ServiceWorkerCacheModel.Cache} cache
1402 */ 1402 */
1403 WebInspector.SWCacheTreeElement = function(storagePanel, model, cache) 1403 WebInspector.SWCacheTreeElement = function(storagePanel, model, cache)
1404 { 1404 {
1405 WebInspector.BaseStorageTreeElement.call(this, storagePanel, cache.cacheName + " - " + cache.securityOrigin, ["service-worker-cache-tree-item"]); 1405 WebInspector.BaseStorageTreeElement.call(this, storagePanel, cache.cacheName + " - " + cache.securityOrigin, ["service-worker-cache-tree-item", "table-tree- item", "resource-tree-item"]);
pfeldman 2016/05/18 05:36:50 ditto
chowse 2016/05/18 17:17:42 Done.
1406 this._model = model; 1406 this._model = model;
1407 this._cache = cache; 1407 this._cache = cache;
1408 } 1408 }
1409 1409
1410 WebInspector.SWCacheTreeElement.prototype = { 1410 WebInspector.SWCacheTreeElement.prototype = {
1411 get itemURL() 1411 get itemURL()
1412 { 1412 {
1413 // I don't think this will work at all. 1413 // I don't think this will work at all.
1414 return "cache://" + this._cache.cacheId; 1414 return "cache://" + this._cache.cacheId;
1415 }, 1415 },
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 } 1466 }
1467 1467
1468 1468
1469 /** 1469 /**
1470 * @constructor 1470 * @constructor
1471 * @extends {WebInspector.BaseStorageTreeElement} 1471 * @extends {WebInspector.BaseStorageTreeElement}
1472 * @param {!WebInspector.ResourcesPanel} storagePanel 1472 * @param {!WebInspector.ResourcesPanel} storagePanel
1473 */ 1473 */
1474 WebInspector.ServiceWorkersTreeElement = function(storagePanel) 1474 WebInspector.ServiceWorkersTreeElement = function(storagePanel)
1475 { 1475 {
1476 WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UI String("Service Workers"), [], false, true); 1476 WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UI String("Service Workers"), ["service-worker-tree-item", "resource-tree-item"], f alse, false);
pfeldman 2016/05/18 05:36:50 here and below: no need to specify "false, false",
chowse 2016/05/18 17:17:42 Done.
1477 } 1477 }
1478 1478
1479 WebInspector.ServiceWorkersTreeElement.prototype = { 1479 WebInspector.ServiceWorkersTreeElement.prototype = {
1480 /** 1480 /**
1481 * @return {string} 1481 * @return {string}
1482 */ 1482 */
1483 get itemURL() 1483 get itemURL()
1484 { 1484 {
1485 return "service-workers://"; 1485 return "service-workers://";
1486 }, 1486 },
(...skipping 14 matching lines...) Expand all
1501 __proto__: WebInspector.BaseStorageTreeElement.prototype 1501 __proto__: WebInspector.BaseStorageTreeElement.prototype
1502 } 1502 }
1503 1503
1504 /** 1504 /**
1505 * @constructor 1505 * @constructor
1506 * @extends {WebInspector.BaseStorageTreeElement} 1506 * @extends {WebInspector.BaseStorageTreeElement}
1507 * @param {!WebInspector.ResourcesPanel} storagePanel 1507 * @param {!WebInspector.ResourcesPanel} storagePanel
1508 */ 1508 */
1509 WebInspector.AppManifestTreeElement = function(storagePanel) 1509 WebInspector.AppManifestTreeElement = function(storagePanel)
1510 { 1510 {
1511 WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UI String("Manifest"), [], false, true); 1511 WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UI String("Manifest"), ["manifest-tree-item", "resource-tree-item"], false, false);
1512 } 1512 }
1513 1513
1514 WebInspector.AppManifestTreeElement.prototype = { 1514 WebInspector.AppManifestTreeElement.prototype = {
1515 /** 1515 /**
1516 * @return {string} 1516 * @return {string}
1517 */ 1517 */
1518 get itemURL() 1518 get itemURL()
1519 { 1519 {
1520 return "manifest://"; 1520 return "manifest://";
1521 }, 1521 },
(...skipping 14 matching lines...) Expand all
1536 __proto__: WebInspector.BaseStorageTreeElement.prototype 1536 __proto__: WebInspector.BaseStorageTreeElement.prototype
1537 } 1537 }
1538 1538
1539 /** 1539 /**
1540 * @constructor 1540 * @constructor
1541 * @extends {WebInspector.BaseStorageTreeElement} 1541 * @extends {WebInspector.BaseStorageTreeElement}
1542 * @param {!WebInspector.ResourcesPanel} storagePanel 1542 * @param {!WebInspector.ResourcesPanel} storagePanel
1543 */ 1543 */
1544 WebInspector.ClearStorageTreeElement = function(storagePanel) 1544 WebInspector.ClearStorageTreeElement = function(storagePanel)
1545 { 1545 {
1546 WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UI String("Clear storage"), [], false, true); 1546 WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UI String("Clear storage"), ["clear-storage-tree-item", "resource-tree-item"], fals e, false);
1547 } 1547 }
1548 1548
1549 WebInspector.ClearStorageTreeElement.prototype = { 1549 WebInspector.ClearStorageTreeElement.prototype = {
1550 /** 1550 /**
1551 * @return {string} 1551 * @return {string}
1552 */ 1552 */
1553 get itemURL() 1553 get itemURL()
1554 { 1554 {
1555 return "clear-storage://"; 1555 return "clear-storage://";
1556 }, 1556 },
(...skipping 14 matching lines...) Expand all
1571 __proto__: WebInspector.BaseStorageTreeElement.prototype 1571 __proto__: WebInspector.BaseStorageTreeElement.prototype
1572 } 1572 }
1573 1573
1574 /** 1574 /**
1575 * @constructor 1575 * @constructor
1576 * @extends {WebInspector.StorageCategoryTreeElement} 1576 * @extends {WebInspector.StorageCategoryTreeElement}
1577 * @param {!WebInspector.ResourcesPanel} storagePanel 1577 * @param {!WebInspector.ResourcesPanel} storagePanel
1578 */ 1578 */
1579 WebInspector.IndexedDBTreeElement = function(storagePanel) 1579 WebInspector.IndexedDBTreeElement = function(storagePanel)
1580 { 1580 {
1581 WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspecto r.UIString("IndexedDB"), "IndexedDB", ["indexed-db-storage-tree-item"]); 1581 WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspecto r.UIString("IndexedDB"), "IndexedDB", ["indexed-db-tree-item", "database-tree-it em", "resource-tree-item"]);
pfeldman 2016/05/18 05:36:50 Remove indexed-db-tree-item
chowse 2016/05/18 17:17:42 Done.
1582 } 1582 }
1583 1583
1584 WebInspector.IndexedDBTreeElement.prototype = { 1584 WebInspector.IndexedDBTreeElement.prototype = {
1585 _initialize: function() 1585 _initialize: function()
1586 { 1586 {
1587 WebInspector.targetManager.addModelListener(WebInspector.IndexedDBModel, WebInspector.IndexedDBModel.EventTypes.DatabaseAdded, this._indexedDBAdded, thi s); 1587 WebInspector.targetManager.addModelListener(WebInspector.IndexedDBModel, WebInspector.IndexedDBModel.EventTypes.DatabaseAdded, this._indexedDBAdded, thi s);
1588 WebInspector.targetManager.addModelListener(WebInspector.IndexedDBModel, WebInspector.IndexedDBModel.EventTypes.DatabaseRemoved, this._indexedDBRemoved, this); 1588 WebInspector.targetManager.addModelListener(WebInspector.IndexedDBModel, WebInspector.IndexedDBModel.EventTypes.DatabaseRemoved, this._indexedDBRemoved, this);
1589 WebInspector.targetManager.addModelListener(WebInspector.IndexedDBModel, WebInspector.IndexedDBModel.EventTypes.DatabaseLoaded, this._indexedDBLoaded, t his); 1589 WebInspector.targetManager.addModelListener(WebInspector.IndexedDBModel, WebInspector.IndexedDBModel.EventTypes.DatabaseLoaded, this._indexedDBLoaded, t his);
1590 /** @type {!Array.<!WebInspector.IDBDatabaseTreeElement>} */ 1590 /** @type {!Array.<!WebInspector.IDBDatabaseTreeElement>} */
1591 this._idbDatabaseTreeElements = []; 1591 this._idbDatabaseTreeElements = [];
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 1697
1698 /** 1698 /**
1699 * @constructor 1699 * @constructor
1700 * @extends {WebInspector.BaseStorageTreeElement} 1700 * @extends {WebInspector.BaseStorageTreeElement}
1701 * @param {!WebInspector.ResourcesPanel} storagePanel 1701 * @param {!WebInspector.ResourcesPanel} storagePanel
1702 * @param {!WebInspector.IndexedDBModel} model 1702 * @param {!WebInspector.IndexedDBModel} model
1703 * @param {!WebInspector.IndexedDBModel.DatabaseId} databaseId 1703 * @param {!WebInspector.IndexedDBModel.DatabaseId} databaseId
1704 */ 1704 */
1705 WebInspector.IDBDatabaseTreeElement = function(storagePanel, model, databaseId) 1705 WebInspector.IDBDatabaseTreeElement = function(storagePanel, model, databaseId)
1706 { 1706 {
1707 WebInspector.BaseStorageTreeElement.call(this, storagePanel, databaseId.name + " - " + databaseId.securityOrigin, ["indexed-db-storage-tree-item"]); 1707 WebInspector.BaseStorageTreeElement.call(this, storagePanel, databaseId.name + " - " + databaseId.securityOrigin, ["indexed-db-tree-item", "database-tree-it em", "resource-tree-item"]);
pfeldman 2016/05/18 05:36:49 ditto
chowse 2016/05/18 17:17:42 Done.
1708 this._model = model; 1708 this._model = model;
1709 this._databaseId = databaseId; 1709 this._databaseId = databaseId;
1710 this._idbObjectStoreTreeElements = {}; 1710 this._idbObjectStoreTreeElements = {};
1711 } 1711 }
1712 1712
1713 WebInspector.IDBDatabaseTreeElement.prototype = { 1713 WebInspector.IDBDatabaseTreeElement.prototype = {
1714 get itemURL() 1714 get itemURL()
1715 { 1715 {
1716 return "indexedDB://" + this._databaseId.securityOrigin + "/" + this._da tabaseId.name; 1716 return "indexedDB://" + this._databaseId.securityOrigin + "/" + this._da tabaseId.name;
1717 }, 1717 },
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1804 /** 1804 /**
1805 * @constructor 1805 * @constructor
1806 * @extends {WebInspector.BaseStorageTreeElement} 1806 * @extends {WebInspector.BaseStorageTreeElement}
1807 * @param {!WebInspector.ResourcesPanel} storagePanel 1807 * @param {!WebInspector.ResourcesPanel} storagePanel
1808 * @param {!WebInspector.IndexedDBModel} model 1808 * @param {!WebInspector.IndexedDBModel} model
1809 * @param {!WebInspector.IndexedDBModel.DatabaseId} databaseId 1809 * @param {!WebInspector.IndexedDBModel.DatabaseId} databaseId
1810 * @param {!WebInspector.IndexedDBModel.ObjectStore} objectStore 1810 * @param {!WebInspector.IndexedDBModel.ObjectStore} objectStore
1811 */ 1811 */
1812 WebInspector.IDBObjectStoreTreeElement = function(storagePanel, model, databaseI d, objectStore) 1812 WebInspector.IDBObjectStoreTreeElement = function(storagePanel, model, databaseI d, objectStore)
1813 { 1813 {
1814 WebInspector.BaseStorageTreeElement.call(this, storagePanel, objectStore.nam e, ["indexed-db-object-store-storage-tree-item"]); 1814 WebInspector.BaseStorageTreeElement.call(this, storagePanel, objectStore.nam e, ["indexed-db-tree-item", "table-tree-item", "resource-tree-item"]);
pfeldman 2016/05/18 05:36:50 ditto
chowse 2016/05/18 17:17:42 Done.
1815 this._model = model; 1815 this._model = model;
1816 this._databaseId = databaseId; 1816 this._databaseId = databaseId;
1817 this._idbIndexTreeElements = {}; 1817 this._idbIndexTreeElements = {};
1818 } 1818 }
1819 1819
1820 WebInspector.IDBObjectStoreTreeElement.prototype = { 1820 WebInspector.IDBObjectStoreTreeElement.prototype = {
1821 get itemURL() 1821 get itemURL()
1822 { 1822 {
1823 return "indexedDB://" + this._databaseId.securityOrigin + "/" + this._da tabaseId.name + "/" + this._objectStore.name; 1823 return "indexedDB://" + this._databaseId.securityOrigin + "/" + this._da tabaseId.name + "/" + this._objectStore.name;
1824 }, 1824 },
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 * @constructor 1935 * @constructor
1936 * @extends {WebInspector.BaseStorageTreeElement} 1936 * @extends {WebInspector.BaseStorageTreeElement}
1937 * @param {!WebInspector.ResourcesPanel} storagePanel 1937 * @param {!WebInspector.ResourcesPanel} storagePanel
1938 * @param {!WebInspector.IndexedDBModel} model 1938 * @param {!WebInspector.IndexedDBModel} model
1939 * @param {!WebInspector.IndexedDBModel.DatabaseId} databaseId 1939 * @param {!WebInspector.IndexedDBModel.DatabaseId} databaseId
1940 * @param {!WebInspector.IndexedDBModel.ObjectStore} objectStore 1940 * @param {!WebInspector.IndexedDBModel.ObjectStore} objectStore
1941 * @param {!WebInspector.IndexedDBModel.Index} index 1941 * @param {!WebInspector.IndexedDBModel.Index} index
1942 */ 1942 */
1943 WebInspector.IDBIndexTreeElement = function(storagePanel, model, databaseId, obj ectStore, index) 1943 WebInspector.IDBIndexTreeElement = function(storagePanel, model, databaseId, obj ectStore, index)
1944 { 1944 {
1945 WebInspector.BaseStorageTreeElement.call(this, storagePanel, index.name, ["i ndexed-db-index-storage-tree-item"]); 1945 WebInspector.BaseStorageTreeElement.call(this, storagePanel, index.name, ["i ndexed-db-tree-item", "index-tree-item", "resource-tree-item"]);
pfeldman 2016/05/18 05:36:50 ditto
chowse 2016/05/18 17:17:42 Done.
1946 this._model = model; 1946 this._model = model;
1947 this._databaseId = databaseId; 1947 this._databaseId = databaseId;
1948 this._objectStore = objectStore; 1948 this._objectStore = objectStore;
1949 this._index = index; 1949 this._index = index;
1950 } 1950 }
1951 1951
1952 WebInspector.IDBIndexTreeElement.prototype = { 1952 WebInspector.IDBIndexTreeElement.prototype = {
1953 get itemURL() 1953 get itemURL()
1954 { 1954 {
1955 return "indexedDB://" + this._databaseId.securityOrigin + "/" + this._da tabaseId.name + "/" + this._objectStore.name + "/" + this._index.name; 1955 return "indexedDB://" + this._databaseId.securityOrigin + "/" + this._da tabaseId.name + "/" + this._objectStore.name + "/" + this._index.name;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 2002
2003 __proto__: WebInspector.BaseStorageTreeElement.prototype 2003 __proto__: WebInspector.BaseStorageTreeElement.prototype
2004 } 2004 }
2005 2005
2006 /** 2006 /**
2007 * @constructor 2007 * @constructor
2008 * @extends {WebInspector.BaseStorageTreeElement} 2008 * @extends {WebInspector.BaseStorageTreeElement}
2009 */ 2009 */
2010 WebInspector.DOMStorageTreeElement = function(storagePanel, domStorage, classNam e) 2010 WebInspector.DOMStorageTreeElement = function(storagePanel, domStorage, classNam e)
2011 { 2011 {
2012 WebInspector.BaseStorageTreeElement.call(this, storagePanel, domStorage.secu rityOrigin ? domStorage.securityOrigin : WebInspector.UIString("Local Files"), [ "domstorage-storage-tree-item", className]); 2012 WebInspector.BaseStorageTreeElement.call(this, storagePanel, domStorage.secu rityOrigin ? domStorage.securityOrigin : WebInspector.UIString("Local Files"), [ className, "table-tree-item", "resource-tree-item"]);
pfeldman 2016/05/18 05:36:50 no need for className anymore
chowse 2016/05/18 17:17:42 Done.
2013 this._domStorage = domStorage; 2013 this._domStorage = domStorage;
2014 } 2014 }
2015 2015
2016 WebInspector.DOMStorageTreeElement.prototype = { 2016 WebInspector.DOMStorageTreeElement.prototype = {
2017 get itemURL() 2017 get itemURL()
2018 { 2018 {
2019 return "storage://" + this._domStorage.securityOrigin + "/" + (this._dom Storage.isLocalStorage ? "local" : "session"); 2019 return "storage://" + this._domStorage.securityOrigin + "/" + (this._dom Storage.isLocalStorage ? "local" : "session");
2020 }, 2020 },
2021 2021
2022 /** 2022 /**
2023 * @override 2023 * @override
2024 * @return {boolean} 2024 * @return {boolean}
2025 */ 2025 */
2026 onselect: function(selectedByUser) 2026 onselect: function(selectedByUser)
2027 { 2027 {
2028 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this, select edByUser); 2028 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this, select edByUser);
2029 this._storagePanel._showDOMStorage(this._domStorage); 2029 this._storagePanel._showDOMStorage(this._domStorage);
2030 return false; 2030 return false;
2031 }, 2031 },
2032 2032
2033 __proto__: WebInspector.BaseStorageTreeElement.prototype 2033 __proto__: WebInspector.BaseStorageTreeElement.prototype
2034 } 2034 }
2035 2035
2036 /** 2036 /**
2037 * @constructor 2037 * @constructor
2038 * @extends {WebInspector.BaseStorageTreeElement} 2038 * @extends {WebInspector.BaseStorageTreeElement}
2039 */ 2039 */
2040 WebInspector.CookieTreeElement = function(storagePanel, cookieDomain) 2040 WebInspector.CookieTreeElement = function(storagePanel, cookieDomain)
2041 { 2041 {
2042 WebInspector.BaseStorageTreeElement.call(this, storagePanel, cookieDomain ? cookieDomain : WebInspector.UIString("Local Files"), ["cookie-storage-tree-item" ]); 2042 WebInspector.BaseStorageTreeElement.call(this, storagePanel, cookieDomain ? cookieDomain : WebInspector.UIString("Local Files"), ["cookie-tree-item", "resou rce-tree-item"]);
2043 this._cookieDomain = cookieDomain; 2043 this._cookieDomain = cookieDomain;
2044 } 2044 }
2045 2045
2046 WebInspector.CookieTreeElement.prototype = { 2046 WebInspector.CookieTreeElement.prototype = {
2047 get itemURL() 2047 get itemURL()
2048 { 2048 {
2049 return "cookies://" + this._cookieDomain; 2049 return "cookies://" + this._cookieDomain;
2050 }, 2050 },
2051 2051
2052 onattach: function() 2052 onattach: function()
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
2236 WebInspector.ResourcesPanelFactory.prototype = { 2236 WebInspector.ResourcesPanelFactory.prototype = {
2237 /** 2237 /**
2238 * @override 2238 * @override
2239 * @return {!WebInspector.Panel} 2239 * @return {!WebInspector.Panel}
2240 */ 2240 */
2241 createPanel: function() 2241 createPanel: function()
2242 { 2242 {
2243 return WebInspector.ResourcesPanel._instance(); 2243 return WebInspector.ResourcesPanel._instance();
2244 } 2244 }
2245 } 2245 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698