Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / devtools / front_end / main / SimpleApp.js
blob935630b020d603223f1ee4dfd264f95495737c73
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
3 // found in the LICENSE file.
5 /**
6 * @constructor
7 * @implements {WebInspector.App}
8 */
9 WebInspector.SimpleApp = function()
13 WebInspector.SimpleApp.prototype = {
14 /**
15 * @param {!Document} document
16 * @override
18 presentUI: function(document)
20 var rootView = new WebInspector.RootView();
21 WebInspector.inspectorView.show(rootView.element);
22 WebInspector.inspectorView.showInitialPanel();
23 rootView.attachToDocument(document);
27 /**
28 * @constructor
29 * @implements {WebInspector.AppProvider}
31 WebInspector.SimpleAppProvider = function()
35 WebInspector.SimpleAppProvider.prototype = {
36 /**
37 * @override
38 * @return {!WebInspector.App}
40 createApp: function()
42 return new WebInspector.SimpleApp();