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

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

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 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 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.View} 7 * @extends {WebInspector.SimpleView}
8 * @param {!WebInspector.ServiceWorkerCacheModel} model 8 * @param {!WebInspector.ServiceWorkerCacheModel} model
9 * @param {!WebInspector.ServiceWorkerCacheModel.Cache} cache 9 * @param {!WebInspector.ServiceWorkerCacheModel.Cache} cache
10 */ 10 */
11 WebInspector.ServiceWorkerCacheView = function(model, cache) 11 WebInspector.ServiceWorkerCacheView = function(model, cache)
12 { 12 {
13 WebInspector.View.call(this, WebInspector.UIString("Cache")); 13 WebInspector.SimpleView.call(this, WebInspector.UIString("Cache"));
14 this.registerRequiredCSS("resources/serviceWorkerCacheViews.css"); 14 this.registerRequiredCSS("resources/serviceWorkerCacheViews.css");
15 15
16 this._model = model; 16 this._model = model;
17 17
18 this.element.classList.add("service-worker-cache-data-view"); 18 this.element.classList.add("service-worker-cache-data-view");
19 this.element.classList.add("storage-view"); 19 this.element.classList.add("storage-view");
20 20
21 this._createEditorToolbar(); 21 this._createEditorToolbar();
22 22
23 this._refreshButton = new WebInspector.ToolbarButton(WebInspector.UIString(" Refresh"), "refresh-toolbar-item"); 23 this._refreshButton = new WebInspector.ToolbarButton(WebInspector.UIString(" Refresh"), "refresh-toolbar-item");
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 _refreshButtonClicked: function(event) 142 _refreshButtonClicked: function(event)
143 { 143 {
144 this._updateData(true); 144 this._updateData(true);
145 }, 145 },
146 146
147 /** 147 /**
148 * @override 148 * @override
149 * @return {!Array.<!WebInspector.ToolbarItem>} 149 * @return {!Array.<!WebInspector.ToolbarItem>}
150 */ 150 */
151 toolbarItems: function() 151 syncToolbarItems: function()
152 { 152 {
153 return [this._refreshButton]; 153 return [this._refreshButton];
154 }, 154 },
155 155
156 clear: function() 156 clear: function()
157 { 157 {
158 this._dataGrid.rootNode().removeChildren(); 158 this._dataGrid.rootNode().removeChildren();
159 this._entries = []; 159 this._entries = [];
160 }, 160 },
161 161
162 __proto__: WebInspector.View.prototype 162 __proto__: WebInspector.SimpleView.prototype
163 } 163 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698