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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js

Issue 2137773002: [DevTools] Replace the target type with capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 * @implements {WebInspector.TargetManager.Observer} 8 * @implements {WebInspector.TargetManager.Observer}
9 */ 9 */
10 WebInspector.AppManifestView = function() 10 WebInspector.AppManifestView = function()
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 var value = parsedManifest[name]; 125 var value = parsedManifest[name];
126 if (typeof value !== "string") 126 if (typeof value !== "string")
127 return ""; 127 return "";
128 return value; 128 return value;
129 } 129 }
130 }, 130 },
131 131
132 _addToHomescreen: function() 132 _addToHomescreen: function()
133 { 133 {
134 var target = WebInspector.targetManager.mainTarget(); 134 var target = WebInspector.targetManager.mainTarget();
135 if (target && target.isPage()) { 135 if (target && target.hasBrowserCapability()) {
136 target.pageAgent().requestAppBanner(); 136 target.pageAgent().requestAppBanner();
137 WebInspector.console.show(); 137 WebInspector.console.show();
138 } 138 }
139 }, 139 },
140 140
141 __proto__: WebInspector.VBox.prototype 141 __proto__: WebInspector.VBox.prototype
142 } 142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698