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

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

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 (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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 if (version.isRunning() || version.isStarting()) { 468 if (version.isRunning() || version.isStarting()) {
469 var inspectButton = runningStatusRightCell.createChild("div", "s ervice-workers-versions-table-running-status-inspect"); 469 var inspectButton = runningStatusRightCell.createChild("div", "s ervice-workers-versions-table-running-status-inspect");
470 inspectButton.setTextAndTitle(WebInspector.UIString("inspect")); 470 inspectButton.setTextAndTitle(WebInspector.UIString("inspect"));
471 inspectButton.addEventListener("click", this._inspectButtonClick ed.bind(this, version.id), false); 471 inspectButton.addEventListener("click", this._inspectButtonClick ed.bind(this, version.id), false);
472 } 472 }
473 } else { 473 } else {
474 this._workerCell.setTextAndTitle(version.runningStatus); 474 this._workerCell.setTextAndTitle(version.runningStatus);
475 } 475 }
476 476
477 this._scriptCell.setTextAndTitle(version.scriptURL.asParsedURL().path); 477 this._scriptCell.setTextAndTitle(version.scriptURL.asParsedURL().path);
478 this._updatedCell.setTextAndTitle(version.scriptResponseTime ? (new Date (version.scriptResponseTime * 1000)).toConsoleTime() : ''); 478 this._updatedCell.setTextAndTitle(version.scriptResponseTime ? (new Date (version.scriptResponseTime * 1000)).toConsoleTime() : "");
479 this._scriptLastModifiedCell.setTextAndTitle(version.scriptLastModified ? (new Date(version.scriptLastModified * 1000)).toConsoleTime() : ''); 479 this._scriptLastModifiedCell.setTextAndTitle(version.scriptLastModified ? (new Date(version.scriptLastModified * 1000)).toConsoleTime() : "");
480 480
481 this._messagesPanel.removeChildren(); 481 this._messagesPanel.removeChildren();
482 if (version.scriptLastModified) { 482 if (version.scriptLastModified) {
483 var scriptLastModifiedLabel = this._messagesPanel.createChild("label ", " service-workers-info service-worker-script-last-modified", "dt-icon-label") ; 483 var scriptLastModifiedLabel = this._messagesPanel.createChild("label ", " service-workers-info service-worker-script-last-modified", "dt-icon-label") ;
484 scriptLastModifiedLabel.type = "info-icon"; 484 scriptLastModifiedLabel.type = "info-icon";
485 scriptLastModifiedLabel.createTextChild(WebInspector.UIString("Last- Modified: %s", (new Date(version.scriptLastModified * 1000)).toConsoleTime())); 485 scriptLastModifiedLabel.createTextChild(WebInspector.UIString("Last- Modified: %s", (new Date(version.scriptLastModified * 1000)).toConsoleTime()));
486 } 486 }
487 if (version.scriptResponseTime) { 487 if (version.scriptResponseTime) {
488 var scriptResponseTimeDiv = this._messagesPanel.createChild("label", " service-workers-info service-worker-script-response-time", "dt-icon-label"); 488 var scriptResponseTimeDiv = this._messagesPanel.createChild("label", " service-workers-info service-worker-script-response-time", "dt-icon-label");
489 scriptResponseTimeDiv.type = "info-icon"; 489 scriptResponseTimeDiv.type = "info-icon";
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 * @param {string} versionId 587 * @param {string} versionId
588 * @param {!Event} event 588 * @param {!Event} event
589 */ 589 */
590 _inspectButtonClicked: function(versionId, event) 590 _inspectButtonClicked: function(versionId, event)
591 { 591 {
592 this._manager.inspectWorker(versionId); 592 this._manager.inspectWorker(versionId);
593 }, 593 },
594 594
595 __proto__: WebInspector.VBox.prototype 595 __proto__: WebInspector.VBox.prototype
596 } 596 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698