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

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

Issue 426553003: [DevTools] Run tests only after all UI bits are initialized. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: renamed to InspectorUILoadedForTests Created 6 years, 4 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
« no previous file with comments | « Source/devtools/front_end/common/WebInspector.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 367
368 WebInspector.extensionServerProxy.setFrontendReady(); 368 WebInspector.extensionServerProxy.setFrontendReady();
369 369
370 InspectorAgent.enable(inspectorAgentEnableCallback); 370 InspectorAgent.enable(inspectorAgentEnableCallback);
371 371
372 function inspectorAgentEnableCallback() 372 function inspectorAgentEnableCallback()
373 { 373 {
374 console.timeStamp("Main.inspectorAgentEnableCallback"); 374 console.timeStamp("Main.inspectorAgentEnableCallback");
375 WebInspector.app.presentUI(mainTarget); 375 WebInspector.app.presentUI(mainTarget);
376 console.timeStamp("Main.inspectorAgentEnableCallbackPresentUI"); 376 console.timeStamp("Main.inspectorAgentEnableCallbackPresentUI");
377 WebInspector.notifications.dispatchEventToListeners(WebInspector.Not ificationService.Events.InspectorUILoadedForTests);
377 } 378 }
378 379
379 WebInspector.actionRegistry = new WebInspector.ActionRegistry(); 380 WebInspector.actionRegistry = new WebInspector.ActionRegistry();
380 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns pector.actionRegistry); 381 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns pector.actionRegistry);
381 WebInspector.ShortcutsScreen.registerShortcuts(); 382 WebInspector.ShortcutsScreen.registerShortcuts();
382 this._registerForwardedShortcuts(); 383 this._registerForwardedShortcuts();
383 this._registerMessageSinkListener(); 384 this._registerMessageSinkListener();
384 385
385 this._loadCompletedForWorkers(); 386 this._loadCompletedForWorkers();
386 InspectorFrontendAPI.loadCompleted(); 387 InspectorFrontendAPI.loadCompleted();
387 WebInspector.notifications.dispatchEventToListeners(WebInspector.Notific ationService.Events.InspectorLoaded);
388 }, 388 },
389 389
390 _registerForwardedShortcuts: function() 390 _registerForwardedShortcuts: function()
391 { 391 {
392 /** @const */ var forwardedActions = ["main.reload", "main.hard-reload"] ; 392 /** @const */ var forwardedActions = ["main.reload", "main.hard-reload"] ;
393 var actionKeys = WebInspector.shortcutRegistry.keysForActions(forwardedA ctions).map(WebInspector.KeyboardShortcut.keyCodeAndModifiersFromKey); 393 var actionKeys = WebInspector.shortcutRegistry.keysForActions(forwardedA ctions).map(WebInspector.KeyboardShortcut.keyCodeAndModifiersFromKey);
394 394
395 actionKeys.push({keyCode: WebInspector.KeyboardShortcut.Keys.F8.code}); 395 actionKeys.push({keyCode: WebInspector.KeyboardShortcut.Keys.F8.code});
396 InspectorFrontendHost.setWhitelistedShortcuts(JSON.stringify(actionKeys) ); 396 InspectorFrontendHost.setWhitelistedShortcuts(JSON.stringify(actionKeys) );
397 }, 397 },
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 898
899 WebInspector.Main.InspectedNodeRevealer.prototype = { 899 WebInspector.Main.InspectedNodeRevealer.prototype = {
900 /** 900 /**
901 * @param {!WebInspector.Event} event 901 * @param {!WebInspector.Event} event
902 */ 902 */
903 _inspectNode: function(event) 903 _inspectNode: function(event)
904 { 904 {
905 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); 905 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data));
906 } 906 }
907 } 907 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/common/WebInspector.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698