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

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

Issue 1307833003: Make the skipWaiting checkbox in Service Workers view unchecked by default (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 * @implements {WebInspector.TargetManager.Observer} 8 * @implements {WebInspector.TargetManager.Observer}
9 */ 9 */
10 WebInspector.ServiceWorkersView = function() 10 WebInspector.ServiceWorkersView = function()
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 this._pushButton.disabled = true 289 this._pushButton.disabled = true
290 this._deleteButton = buttonsNode.createChild("button", "service-workers-butt on service-workers-delete-button"); 290 this._deleteButton = buttonsNode.createChild("button", "service-workers-butt on service-workers-delete-button");
291 this._deleteButton.addEventListener("click", this._deleteButtonClicked.bind( this), false); 291 this._deleteButton.addEventListener("click", this._deleteButtonClicked.bind( this), false);
292 this._deleteButton.title = WebInspector.UIString("Delete"); 292 this._deleteButton.title = WebInspector.UIString("Delete");
293 this._childrenListNode = this._element.createChild("div", "service-workers-r egistration-content"); 293 this._childrenListNode = this._element.createChild("div", "service-workers-r egistration-content");
294 294
295 this._skipWaitingCheckboxLabel = createCheckboxLabel(WebInspector.UIString(" Skip waiting")); 295 this._skipWaitingCheckboxLabel = createCheckboxLabel(WebInspector.UIString(" Skip waiting"));
296 this._skipWaitingCheckboxLabel.title = WebInspector.UIString("Simulate skipW aiting()"); 296 this._skipWaitingCheckboxLabel.title = WebInspector.UIString("Simulate skipW aiting()");
297 this._skipWaitingCheckboxLabel.classList.add("service-workers-skip-waiting-c heckbox-label"); 297 this._skipWaitingCheckboxLabel.classList.add("service-workers-skip-waiting-c heckbox-label");
298 this._skipWaitingCheckbox = this._skipWaitingCheckboxLabel.checkboxElement; 298 this._skipWaitingCheckbox = this._skipWaitingCheckboxLabel.checkboxElement;
299 this._skipWaitingCheckbox.checked = true;
300 this._skipWaitingCheckbox.classList.add("service-workers-skip-waiting-checkb ox"); 299 this._skipWaitingCheckbox.classList.add("service-workers-skip-waiting-checkb ox");
301 this._skipWaitingCheckbox.addEventListener("change", this._skipWaitingCheckb oxChanged.bind(this), false); 300 this._skipWaitingCheckbox.addEventListener("change", this._skipWaitingCheckb oxChanged.bind(this), false);
302 301
303 /** 302 /**
304 * @type {!Object.<string, !Array.<!WebInspector.ServiceWorkerVersion>>} 303 * @type {!Object.<string, !Array.<!WebInspector.ServiceWorkerVersion>>}
305 */ 304 */
306 this._categorizedVersions = {}; 305 this._categorizedVersions = {};
307 for (var mode in WebInspector.ServiceWorkerVersion.Modes) 306 for (var mode in WebInspector.ServiceWorkerVersion.Modes)
308 this._categorizedVersions[WebInspector.ServiceWorkerVersion.Modes[mode]] = []; 307 this._categorizedVersions[WebInspector.ServiceWorkerVersion.Modes[mode]] = [];
309 308
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 696
698 /** 697 /**
699 * @param {string} versionId 698 * @param {string} versionId
700 * @param {!Event} event 699 * @param {!Event} event
701 */ 700 */
702 _inspectButtonClicked: function(versionId, event) 701 _inspectButtonClicked: function(versionId, event)
703 { 702 {
704 this._manager.inspectWorker(versionId); 703 this._manager.inspectWorker(versionId);
705 }, 704 },
706 } 705 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698