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

Side by Side Diff: Source/devtools/front_end/resources/ServiceWorkerCacheViews.js

Issue 813173002: [ServiceWorker] Cache inspector out from flag, style & icon changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed Experiment, added icon css Created 6 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 * @param {!WebInspector.ServiceWorkerCacheModel} model 8 * @param {!WebInspector.ServiceWorkerCacheModel} model
9 * @param {!WebInspector.ServiceWorkerCacheModel.CacheId} cacheId 9 * @param {!WebInspector.ServiceWorkerCacheModel.CacheId} cacheId
10 * @param {!WebInspector.ServiceWorkerCacheModel.Cache} cache 10 * @param {!WebInspector.ServiceWorkerCacheModel.Cache} cache
11 */ 11 */
12 WebInspector.ServiceWorkerCacheView = function(model, cacheId, cache) 12 WebInspector.ServiceWorkerCacheView = function(model, cacheId, cache)
13 { 13 {
14 WebInspector.VBox.call(this); 14 WebInspector.VBox.call(this);
15 this.registerRequiredCSS("resources/serviceWorkerCacheViews.css"); 15 this.registerRequiredCSS("resources/serviceWorkerCacheViews.css");
16 16
17 this._model = model; 17 this._model = model;
18 this._cacheId = cacheId; 18 this._cacheId = cacheId;
19 19
20 this.element.classList.add("service-worker-cache-data-view"); 20 this.element.classList.add("service-worker-cache-data-view");
21 this.element.classList.add("storage-view");
21 22
22 this._createEditorToolbar(); 23 this._createEditorToolbar();
23 24
24 this._refreshButton = new WebInspector.StatusBarButton(WebInspector.UIString ("Refresh"), "refresh-status-bar-item"); 25 this._refreshButton = new WebInspector.StatusBarButton(WebInspector.UIString ("Refresh"), "refresh-status-bar-item");
25 this._refreshButton.addEventListener("click", this._refreshButtonClicked, th is); 26 this._refreshButton.addEventListener("click", this._refreshButtonClicked, th is);
26 27
27 this._pageSize = 50; 28 this._pageSize = 50;
28 this._skipCount = 0; 29 this._skipCount = 0;
29 30
30 this.update(cache); 31 this.update(cache);
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 contents.createTextChildren("\"", value.description, "\""); 223 contents.createTextChildren("\"", value.description, "\"");
223 break; 224 break;
224 default: 225 default:
225 contents.classList.add("primitive-value"); 226 contents.classList.add("primitive-value");
226 contents.createTextChild(value.description); 227 contents.createTextChild(value.description);
227 } 228 }
228 }, 229 },
229 230
230 __proto__: WebInspector.DataGridNode.prototype 231 __proto__: WebInspector.DataGridNode.prototype
231 } 232 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/resources/ResourcesPanel.js ('k') | Source/devtools/front_end/resources/indexedDBViews.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698