UNPKG

atom-nuclide

Version:

A unified developer experience for web and mobile development, built as a suite of features on top of Atom to provide hackability and the support of an active community.

45 lines (40 loc) 947 B
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @constructor * @implements {WebInspector.App} */ WebInspector.SimpleApp = function() { }; WebInspector.SimpleApp.prototype = { /** * @param {!Document} document * @override */ presentUI: function(document) { var rootView = new WebInspector.RootView(); WebInspector.inspectorView.show(rootView.element); WebInspector.inspectorView.showInitialPanel(); rootView.attachToDocument(document); } }; /** * @constructor * @implements {WebInspector.AppProvider} */ WebInspector.SimpleAppProvider = function() { }; WebInspector.SimpleAppProvider.prototype = { /** * @override * @return {!WebInspector.App} */ createApp: function() { return new WebInspector.SimpleApp(); } };