| 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() |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 { | 25 { |
| 26 var rootView = new WebInspector.RootView(); | 26 var rootView = new WebInspector.RootView(); |
| 27 | 27 |
| 28 this._rootSplitWidget = new WebInspector.SplitWidget(false, true, "Inspe
ctorView.screencastSplitViewState", 300, 300); | 28 this._rootSplitWidget = new WebInspector.SplitWidget(false, true, "Inspe
ctorView.screencastSplitViewState", 300, 300); |
| 29 this._rootSplitWidget.setVertical(true); | 29 this._rootSplitWidget.setVertical(true); |
| 30 this._rootSplitWidget.setSecondIsSidebar(true); | 30 this._rootSplitWidget.setSecondIsSidebar(true); |
| 31 this._rootSplitWidget.show(rootView.element); | 31 this._rootSplitWidget.show(rootView.element); |
| 32 this._rootSplitWidget.hideMain(); | 32 this._rootSplitWidget.hideMain(); |
| 33 | 33 |
| 34 this._rootSplitWidget.setSidebarWidget(WebInspector.inspectorView); | 34 this._rootSplitWidget.setSidebarWidget(WebInspector.inspectorView); |
| 35 WebInspector.inspectorView.showInitialPanel(); | |
| 36 rootView.attachToDocument(document); | 35 rootView.attachToDocument(document); |
| 37 }, | 36 }, |
| 38 | 37 |
| 39 /** | 38 /** |
| 40 * @override | 39 * @override |
| 41 * @param {!WebInspector.Target} target | 40 * @param {!WebInspector.Target} target |
| 42 */ | 41 */ |
| 43 targetAdded: function(target) | 42 targetAdded: function(target) |
| 44 { | 43 { |
| 45 if (this._target) | 44 if (this._target) |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 WebInspector.ScreencastAppProvider.prototype = { | 137 WebInspector.ScreencastAppProvider.prototype = { |
| 139 /** | 138 /** |
| 140 * @override | 139 * @override |
| 141 * @return {!WebInspector.App} | 140 * @return {!WebInspector.App} |
| 142 */ | 141 */ |
| 143 createApp: function() | 142 createApp: function() |
| 144 { | 143 { |
| 145 return WebInspector.ScreencastApp._instance(); | 144 return WebInspector.ScreencastApp._instance(); |
| 146 } | 145 } |
| 147 }; | 146 }; |
| OLD | NEW |