Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/screencast/ScreencastApp.js

Issue 2574823002: DevTools: do not make main panel unconditionally focused by default. (Closed)
Patch Set: fixed the test Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698