| 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;
|
| + }
|
| };
|
|
|