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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/ProgressIndicator.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 28 matching lines...) Expand all
39 this._contentElement = this._shadowRoot.createChild("div", "progress-indicat or-shadow-container"); 39 this._contentElement = this._shadowRoot.createChild("div", "progress-indicat or-shadow-container");
40 40
41 this._labelElement = this._contentElement.createChild("div", "title"); 41 this._labelElement = this._contentElement.createChild("div", "title");
42 this._progressElement = this._contentElement.createChild("progress"); 42 this._progressElement = this._contentElement.createChild("progress");
43 this._progressElement.value = 0; 43 this._progressElement.value = 0;
44 this._stopButton = this._contentElement.createChild("button", "progress-indi cator-shadow-stop-button"); 44 this._stopButton = this._contentElement.createChild("button", "progress-indi cator-shadow-stop-button");
45 this._stopButton.addEventListener("click", this.cancel.bind(this)); 45 this._stopButton.addEventListener("click", this.cancel.bind(this));
46 46
47 this._isCanceled = false; 47 this._isCanceled = false;
48 this._worked = 0; 48 this._worked = 0;
49 } 49 };
50 50
51 WebInspector.ProgressIndicator.prototype = { 51 WebInspector.ProgressIndicator.prototype = {
52 /** 52 /**
53 * @param {!Element} parent 53 * @param {!Element} parent
54 */ 54 */
55 show: function(parent) 55 show: function(parent)
56 { 56 {
57 parent.appendChild(this.element); 57 parent.appendChild(this.element);
58 }, 58 },
59 59
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 }, 114 },
115 115
116 /** 116 /**
117 * @override 117 * @override
118 * @param {number=} worked 118 * @param {number=} worked
119 */ 119 */
120 worked: function(worked) 120 worked: function(worked)
121 { 121 {
122 this.setWorked(this._worked + (worked || 1)); 122 this.setWorked(this._worked + (worked || 1));
123 } 123 }
124 } 124 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698