OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 /** | |
5 * @implements {UI.ActionDelegate} | |
6 * @unrestricted | |
7 */ | |
8 Components.RequestAppBannerActionDelegate = class { | |
9 /** | |
10 * @override | |
11 * @param {!UI.Context} context | |
12 * @param {string} actionId | |
13 * @return {boolean} | |
14 */ | |
15 handleAction(context, actionId) { | |
16 var target = SDK.targetManager.mainTarget(); | |
17 if (target && target.hasBrowserCapability()) { | |
18 target.pageAgent().requestAppBanner(); | |
19 Common.console.show(); | |
20 } | |
21 return true; | |
22 } | |
23 }; | |
OLD | NEW |