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

Unified Diff: third_party/WebKit/Source/devtools/front_end/extensions/ExtensionAuditCategory.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: all done 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/extensions/ExtensionAuditCategory.js
diff --git a/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionAuditCategory.js b/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionAuditCategory.js
index 95816a5f1d81e36d61f19ce32e8898b6cf968563..d7af9a403478fd116e511187c716c0bc1a295cb6 100644
--- a/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionAuditCategory.js
+++ b/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionAuditCategory.js
@@ -27,47 +27,47 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
/**
- * @constructor
- * @param {string} extensionOrigin
- * @param {string} id
- * @param {string} displayName
- * @param {number=} ruleCount
+ * @unrestricted
*/
-WebInspector.ExtensionAuditCategory = function(extensionOrigin, id, displayName, ruleCount)
-{
+WebInspector.ExtensionAuditCategory = class {
+ /**
+ * @param {string} extensionOrigin
+ * @param {string} id
+ * @param {string} displayName
+ * @param {number=} ruleCount
+ */
+ constructor(extensionOrigin, id, displayName, ruleCount) {
this.extensionOrigin = extensionOrigin;
this.id = id;
this.displayName = displayName;
- this.ruleCount = ruleCount;
+ this.ruleCount = ruleCount;
+ }
};
/**
* @interface
*/
-WebInspector.ExtensionAuditCategoryResults = function()
-{
-};
+WebInspector.ExtensionAuditCategoryResults = function() {};
WebInspector.ExtensionAuditCategoryResults.prototype = {
- /**
- * @return {string}
- */
- id: function() { },
+ /**
+ * @return {string}
+ */
+ id: function() {},
- /**
- * @param {string} displayName
- * @param {string} description
- * @param {string} severity
- * @param {!Object} details
- */
- addResult: function(displayName, description, severity, details) { },
+ /**
+ * @param {string} displayName
+ * @param {string} description
+ * @param {string} severity
+ * @param {!Object} details
+ */
+ addResult: function(displayName, description, severity, details) {},
- /**
- * @param {number} progress
- */
- updateProgress: function(progress) { },
+ /**
+ * @param {number} progress
+ */
+ updateProgress: function(progress) {},
- done: function() { }
+ done: function() {}
};

Powered by Google App Engine
This is Rietveld 408576698