Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(931)

Side by Side Diff: Source/devtools/front_end/main/Main.js

Issue 675753002: [DevTools] Drop "ui" module from toolbox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rootview bug fix Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 if (canDock) 255 if (canDock)
256 WebInspector.app = new WebInspector.AdvancedApp(); 256 WebInspector.app = new WebInspector.AdvancedApp();
257 else if (Runtime.queryParam("remoteFrontend")) 257 else if (Runtime.queryParam("remoteFrontend"))
258 WebInspector.app = new WebInspector.ScreencastApp(); 258 WebInspector.app = new WebInspector.ScreencastApp();
259 else 259 else
260 WebInspector.app = new WebInspector.SimpleApp(); 260 WebInspector.app = new WebInspector.SimpleApp();
261 261
262 // It is important to kick controller lifetime after apps are instantiat ed. 262 // It is important to kick controller lifetime after apps are instantiat ed.
263 WebInspector.dockController.initialize(); 263 WebInspector.dockController.initialize();
264 console.timeStamp("Main._presentUI"); 264 console.timeStamp("Main._presentUI");
265 WebInspector.app.presentUI(); 265 WebInspector.app.presentUI(document);
266 266
267 if (!WebInspector.isWorkerFrontend()) 267 if (!WebInspector.isWorkerFrontend())
268 WebInspector.inspectElementModeController = new WebInspector.Inspect ElementModeController(); 268 WebInspector.inspectElementModeController = new WebInspector.Inspect ElementModeController();
269 this._createGlobalStatusBarItems(); 269 this._createGlobalStatusBarItems();
270 270
271 InspectorFrontendHost.loadCompleted(); 271 InspectorFrontendHost.loadCompleted();
272 272
273 // Give UI cycles to repaint, then proceed with creating connection. 273 // Give UI cycles to repaint, then proceed with creating connection.
274 setTimeout(this._createConnection.bind(this), 0); 274 setTimeout(this._createConnection.bind(this), 0);
275 }, 275 },
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 /** 893 /**
894 * @param {!WebInspector.Event} event 894 * @param {!WebInspector.Event} event
895 */ 895 */
896 _inspectNode: function(event) 896 _inspectNode: function(event)
897 { 897 {
898 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); 898 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data));
899 } 899 }
900 } 900 }
901 901
902 new WebInspector.Main(); 902 new WebInspector.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698