| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 /** | 4 /** |
| 5 * @implements {WebInspector.ActionDelegate} | 5 * @implements {UI.ActionDelegate} |
| 6 * @unrestricted | 6 * @unrestricted |
| 7 */ | 7 */ |
| 8 WebInspector.RequestAppBannerActionDelegate = class { | 8 Components.RequestAppBannerActionDelegate = class { |
| 9 /** | 9 /** |
| 10 * @override | 10 * @override |
| 11 * @param {!WebInspector.Context} context | 11 * @param {!UI.Context} context |
| 12 * @param {string} actionId | 12 * @param {string} actionId |
| 13 * @return {boolean} | 13 * @return {boolean} |
| 14 */ | 14 */ |
| 15 handleAction(context, actionId) { | 15 handleAction(context, actionId) { |
| 16 var target = WebInspector.targetManager.mainTarget(); | 16 var target = SDK.targetManager.mainTarget(); |
| 17 if (target && target.hasBrowserCapability()) { | 17 if (target && target.hasBrowserCapability()) { |
| 18 target.pageAgent().requestAppBanner(); | 18 target.pageAgent().requestAppBanner(); |
| 19 WebInspector.console.show(); | 19 Common.console.show(); |
| 20 } | 20 } |
| 21 return true; | 21 return true; |
| 22 } | 22 } |
| 23 }; | 23 }; |
| OLD | NEW |