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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/main/SimpleApp.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 * @unrestricted 6 * @unrestricted
7 */ 7 */
8 Main.SimpleApp = class { 8 Main.SimpleApp = class {
9 /** 9 /**
10 * @override 10 * @override
11 * @param {!Document} document 11 * @param {!Document} document
12 */ 12 */
13 presentUI(document) { 13 presentUI(document) {
14 var rootView = new UI.RootView(); 14 var rootView = new UI.RootView();
15 UI.inspectorView.show(rootView.element); 15 UI.inspectorView.show(rootView.element);
16 rootView.attachToDocument(document); 16 rootView.attachToDocument(document);
17 rootView.focus();
17 } 18 }
18 }; 19 };
19 20
20 /** 21 /**
21 * @implements {Common.AppProvider} 22 * @implements {Common.AppProvider}
22 * @unrestricted 23 * @unrestricted
23 */ 24 */
24 Main.SimpleAppProvider = class { 25 Main.SimpleAppProvider = class {
25 /** 26 /**
26 * @override 27 * @override
27 * @return {!Common.App} 28 * @return {!Common.App}
28 */ 29 */
29 createApp() { 30 createApp() {
30 return new Main.SimpleApp(); 31 return new Main.SimpleApp();
31 } 32 }
32 }; 33 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698