Index: third_party/WebKit/Source/devtools/front_end/screencast/ScreencastApp.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastApp.js b/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastApp.js |
index f9571bc1279292eb890c3a1edb2a00d939845023..2f0cd9148eaa866e0b95ae27d8b7e3ce63c83357 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastApp.js |
+++ b/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastApp.js |
@@ -92,6 +92,12 @@ WebInspector.ScreencastApp.prototype = { |
this._rootSplitWidget.showBoth(); |
else |
this._rootSplitWidget.hideMain(); |
+ }, |
+ |
+ _requestAppBanner: function() |
+ { |
+ if (this._target && this._target.pageAgent()) |
+ this._target.pageAgent().requestAppBanner(); |
} |
}; |
@@ -128,6 +134,33 @@ WebInspector.ScreencastApp.ToolbarButtonProvider.prototype = { |
} |
} |
+ |
+/** |
+ * @constructor |
+ * @implements {WebInspector.ActionDelegate} |
+ */ |
+WebInspector.ScreencastApp.ActionDelegate = function() |
+{ |
+}; |
+ |
+WebInspector.ScreencastApp.ActionDelegate.prototype = { |
+ /** |
+ * @override |
+ * @param {!WebInspector.Context} context |
+ * @param {string} actionId |
+ * @return {boolean} |
+ */ |
+ handleAction: function(context, actionId) |
+ { |
+ if (actionId === "screencast.request-app-banner") { |
+ WebInspector.ScreencastApp._instance()._requestAppBanner() |
+ return true; |
+ } |
+ return false; |
+ } |
+}; |
+ |
+ |
/** |
* @constructor |
* @implements {WebInspector.AppProvider} |