| 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 * @implements {Common.App} | 5 * @implements {Common.App} |
| 6 * @implements {SDK.TargetManager.Observer} | 6 * @implements {SDK.TargetManager.Observer} |
| 7 * @unrestricted | 7 * @unrestricted |
| 8 */ | 8 */ |
| 9 Screencast.ScreencastApp = class { | 9 Screencast.ScreencastApp = class { |
| 10 constructor() { | 10 constructor() { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 var rootView = new UI.RootView(); | 32 var rootView = new UI.RootView(); |
| 33 | 33 |
| 34 this._rootSplitWidget = new UI.SplitWidget(false, true, 'InspectorView.scree
ncastSplitViewState', 300, 300); | 34 this._rootSplitWidget = new UI.SplitWidget(false, true, 'InspectorView.scree
ncastSplitViewState', 300, 300); |
| 35 this._rootSplitWidget.setVertical(true); | 35 this._rootSplitWidget.setVertical(true); |
| 36 this._rootSplitWidget.setSecondIsSidebar(true); | 36 this._rootSplitWidget.setSecondIsSidebar(true); |
| 37 this._rootSplitWidget.show(rootView.element); | 37 this._rootSplitWidget.show(rootView.element); |
| 38 this._rootSplitWidget.hideMain(); | 38 this._rootSplitWidget.hideMain(); |
| 39 | 39 |
| 40 this._rootSplitWidget.setSidebarWidget(UI.inspectorView); | 40 this._rootSplitWidget.setSidebarWidget(UI.inspectorView); |
| 41 rootView.attachToDocument(document); | 41 rootView.attachToDocument(document); |
| 42 rootView.focus(); |
| 42 } | 43 } |
| 43 | 44 |
| 44 /** | 45 /** |
| 45 * @override | 46 * @override |
| 46 * @param {!SDK.Target} target | 47 * @param {!SDK.Target} target |
| 47 */ | 48 */ |
| 48 targetAdded(target) { | 49 targetAdded(target) { |
| 49 if (this._target) | 50 if (this._target) |
| 50 return; | 51 return; |
| 51 this._target = target; | 52 this._target = target; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 */ | 120 */ |
| 120 Screencast.ScreencastAppProvider = class { | 121 Screencast.ScreencastAppProvider = class { |
| 121 /** | 122 /** |
| 122 * @override | 123 * @override |
| 123 * @return {!Common.App} | 124 * @return {!Common.App} |
| 124 */ | 125 */ |
| 125 createApp() { | 126 createApp() { |
| 126 return Screencast.ScreencastApp._instance(); | 127 return Screencast.ScreencastApp._instance(); |
| 127 } | 128 } |
| 128 }; | 129 }; |
| OLD | NEW |