diff options
Diffstat (limited to 'third_party/WebKit/Source/devtools/front_end/screencast/ScreencastApp.js')
| -rw-r--r-- | third_party/WebKit/Source/devtools/front_end/screencast/ScreencastApp.js | 33 |
1 files changed, 33 insertions, 0 deletions
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 f9571bc..2f0cd91 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} |
