| 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 * @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 }; |
| OLD | NEW |