| 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 | |
| 5 /** | 4 /** |
| 6 * @constructor | |
| 7 * @implements {WebInspector.App} | 5 * @implements {WebInspector.App} |
| 6 * @unrestricted |
| 8 */ | 7 */ |
| 9 WebInspector.SimpleApp = function() | 8 WebInspector.SimpleApp = class { |
| 10 { | 9 /** |
| 11 }; | 10 * @override |
| 12 | 11 * @param {!Document} document |
| 13 WebInspector.SimpleApp.prototype = { | 12 */ |
| 14 /** | 13 presentUI(document) { |
| 15 * @override | 14 var rootView = new WebInspector.RootView(); |
| 16 * @param {!Document} document | 15 WebInspector.inspectorView.show(rootView.element); |
| 17 */ | 16 rootView.attachToDocument(document); |
| 18 presentUI: function(document) | 17 } |
| 19 { | |
| 20 var rootView = new WebInspector.RootView(); | |
| 21 WebInspector.inspectorView.show(rootView.element); | |
| 22 rootView.attachToDocument(document); | |
| 23 } | |
| 24 }; | 18 }; |
| 25 | 19 |
| 26 /** | 20 /** |
| 27 * @constructor | |
| 28 * @implements {WebInspector.AppProvider} | 21 * @implements {WebInspector.AppProvider} |
| 22 * @unrestricted |
| 29 */ | 23 */ |
| 30 WebInspector.SimpleAppProvider = function() | 24 WebInspector.SimpleAppProvider = class { |
| 31 { | 25 /** |
| 26 * @override |
| 27 * @return {!WebInspector.App} |
| 28 */ |
| 29 createApp() { |
| 30 return new WebInspector.SimpleApp(); |
| 31 } |
| 32 }; | 32 }; |
| 33 | |
| 34 WebInspector.SimpleAppProvider.prototype = { | |
| 35 /** | |
| 36 * @override | |
| 37 * @return {!WebInspector.App} | |
| 38 */ | |
| 39 createApp: function() | |
| 40 { | |
| 41 return new WebInspector.SimpleApp(); | |
| 42 } | |
| 43 }; | |
| OLD | NEW |