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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/RequestAppBannerActionDelegate.js

Issue 2608043002: DevTools: extract modules (with extensions) (Closed)
Patch Set: fix externs (PerfUI) Created 3 years, 11 months 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 unified diff | Download patch
OLDNEW
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698