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