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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/main/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
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 {UI.ActionDelegate} 5 * @implements {UI.ActionDelegate}
6 * @unrestricted 6 * @unrestricted
7 */ 7 */
8 Components.RequestAppBannerActionDelegate = class { 8 Main.RequestAppBannerActionDelegate = class {
9 /** 9 /**
10 * @override 10 * @override
11 * @param {!UI.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 = SDK.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 Common.console.show(); 19 Common.console.show();
20 } 20 }
21 return true; 21 return true;
22 } 22 }
23 }; 23 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698