| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 * @implements {WebInspector.App} | 7 * @implements {WebInspector.App} |
| 8 * @implements {WebInspector.TargetManager.Observer} | 8 * @implements {WebInspector.TargetManager.Observer} |
| 9 */ | 9 */ |
| 10 WebInspector.ScreencastApp = function() | 10 WebInspector.ScreencastApp = function() |
| 11 { | 11 { |
| 12 this._enabledSetting = WebInspector.settings.createSetting("screencastEnable
d", true); | 12 this._enabledSetting = WebInspector.settings.createSetting("screencastEnable
d", true); |
| 13 this._toggleButton = new WebInspector.ToolbarToggle(WebInspector.UIString("T
oggle screencast"), "screencast-toolbar-item"); | 13 this._toggleButton = new WebInspector.ToolbarToggle(WebInspector.UIString("T
oggle screencast"), "phone-toolbar-item"); |
| 14 this._toggleButton.setToggled(this._enabledSetting.get()); | 14 this._toggleButton.setToggled(this._enabledSetting.get()); |
| 15 this._toggleButton.addEventListener("click", this._toggleButtonClicked, this
); | 15 this._toggleButton.addEventListener("click", this._toggleButtonClicked, this
); |
| 16 WebInspector.targetManager.observeTargets(this); | 16 WebInspector.targetManager.observeTargets(this); |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 WebInspector.ScreencastApp.prototype = { | 19 WebInspector.ScreencastApp.prototype = { |
| 20 /** | 20 /** |
| 21 * @override | 21 * @override |
| 22 * @param {!Document} document | 22 * @param {!Document} document |
| 23 * @param {function()} callback | 23 * @param {function()} callback |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 WebInspector.ScreencastAppProvider.prototype = { | 139 WebInspector.ScreencastAppProvider.prototype = { |
| 140 /** | 140 /** |
| 141 * @override | 141 * @override |
| 142 * @return {!WebInspector.App} | 142 * @return {!WebInspector.App} |
| 143 */ | 143 */ |
| 144 createApp: function() | 144 createApp: function() |
| 145 { | 145 { |
| 146 return WebInspector.ScreencastApp._instance(); | 146 return WebInspector.ScreencastApp._instance(); |
| 147 } | 147 } |
| 148 }; | 148 }; |
| OLD | NEW |