| Index: third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
|
| index 957b5baea9d01e8a6a2c06d234e91fb57f678dd4..dd6ac3e63d440d626b3c07c5e612aca4dd6cbd50 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
|
| @@ -550,7 +550,10 @@ WebInspector.NavigatorView.prototype = {
|
|
|
| contextMenu.show();
|
| },
|
| -
|
| + _requestAppBanner: function(agent)
|
| + {
|
| + agent.requestAppBanner();
|
| + },
|
| /**
|
| * @param {!Event} event
|
| * @param {!WebInspector.NavigatorFolderTreeNode} node
|
| @@ -561,7 +564,12 @@ WebInspector.NavigatorView.prototype = {
|
| var project = node._project;
|
|
|
| var contextMenu = new WebInspector.ContextMenu(event);
|
| -
|
| + if (node.parent.isRoot()) {
|
| + var target = WebInspector.NetworkProject.targetForProject(project);
|
| + if (target.isPage()) {
|
| + contextMenu.appendItem(WebInspector.UIString.capitalize("Request app banner"), this._requestAppBanner.bind(this, target.pageAgent()));
|
| + }
|
| + }
|
| if (project && project.type() === WebInspector.projectTypes.FileSystem) {
|
| contextMenu.appendItem(WebInspector.UIString.capitalize("Refresh"), this._handleContextMenuRefresh.bind(this, project, path));
|
| if (node instanceof WebInspector.NavigatorFolderTreeNode) {
|
|
|