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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/RequestAppBannerActionDelegate.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/components/RequestAppBannerActionDelegate.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/RequestAppBannerActionDelegate.js b/third_party/WebKit/Source/devtools/front_end/components/RequestAppBannerActionDelegate.js
index c85b6c95d4d30280ae13feb3aa9013f1355a97fc..3714ba6f7e96ad3733c6004fca80cfe48d1db286 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/RequestAppBannerActionDelegate.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/RequestAppBannerActionDelegate.js
@@ -1,29 +1,23 @@
// Copyright 2016 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.ActionDelegate}
+ * @unrestricted
*/
-WebInspector.RequestAppBannerActionDelegate = function()
-{
-};
-
-WebInspector.RequestAppBannerActionDelegate.prototype = {
- /**
- * @override
- * @param {!WebInspector.Context} context
- * @param {string} actionId
- * @return {boolean}
- */
- handleAction: function(context, actionId)
- {
- var target = WebInspector.targetManager.mainTarget();
- if (target && target.hasBrowserCapability()) {
- target.pageAgent().requestAppBanner();
- WebInspector.console.show();
- }
- return true;
+WebInspector.RequestAppBannerActionDelegate = class {
+ /**
+ * @override
+ * @param {!WebInspector.Context} context
+ * @param {string} actionId
+ * @return {boolean}
+ */
+ handleAction(context, actionId) {
+ var target = WebInspector.targetManager.mainTarget();
+ if (target && target.hasBrowserCapability()) {
+ target.pageAgent().requestAppBanner();
+ WebInspector.console.show();
}
+ return true;
+ }
};

Powered by Google App Engine
This is Rietveld 408576698