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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/SimpleApp.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/main/SimpleApp.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/SimpleApp.js b/third_party/WebKit/Source/devtools/front_end/main/SimpleApp.js
index 4e4da676b0c30214764d760ff987779faa316531..9488a3434b329e0c7e24a2854232afd2353d99ca 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/SimpleApp.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/SimpleApp.js
@@ -1,43 +1,32 @@
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
/**
- * @constructor
* @implements {WebInspector.App}
+ * @unrestricted
*/
-WebInspector.SimpleApp = function()
-{
-};
-
-WebInspector.SimpleApp.prototype = {
- /**
- * @override
- * @param {!Document} document
- */
- presentUI: function(document)
- {
- var rootView = new WebInspector.RootView();
- WebInspector.inspectorView.show(rootView.element);
- rootView.attachToDocument(document);
- }
+WebInspector.SimpleApp = class {
+ /**
+ * @override
+ * @param {!Document} document
+ */
+ presentUI(document) {
+ var rootView = new WebInspector.RootView();
+ WebInspector.inspectorView.show(rootView.element);
+ rootView.attachToDocument(document);
+ }
};
/**
- * @constructor
* @implements {WebInspector.AppProvider}
+ * @unrestricted
*/
-WebInspector.SimpleAppProvider = function()
-{
-};
-
-WebInspector.SimpleAppProvider.prototype = {
- /**
- * @override
- * @return {!WebInspector.App}
- */
- createApp: function()
- {
- return new WebInspector.SimpleApp();
- }
+WebInspector.SimpleAppProvider = class {
+ /**
+ * @override
+ * @return {!WebInspector.App}
+ */
+ createApp() {
+ return new WebInspector.SimpleApp();
+ }
};

Powered by Google App Engine
This is Rietveld 408576698