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

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

Issue 2437633003: [DevTools] Switch remote locations to Target domain. (Closed)
Patch Set: removed dispose Created 4 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
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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 WebInspector.Target.Capability.Network | WebInspector.Target.Cap ability.Worker; 325 WebInspector.Target.Capability.Network | WebInspector.Target.Cap ability.Worker;
326 } else if (Runtime.queryParam("v8only")) { 326 } else if (Runtime.queryParam("v8only")) {
327 capabilities = WebInspector.Target.Capability.JS; 327 capabilities = WebInspector.Target.Capability.JS;
328 } 328 }
329 329
330 var target = WebInspector.targetManager.createTarget(WebInspector.UIStri ng("Main"), capabilities, connection, null); 330 var target = WebInspector.targetManager.createTarget(WebInspector.UIStri ng("Main"), capabilities, connection, null);
331 target.registerInspectorDispatcher(new WebInspector.Main.InspectorDomain Dispatcher(target)); 331 target.registerInspectorDispatcher(new WebInspector.Main.InspectorDomain Dispatcher(target));
332 target.runtimeAgent().runIfWaitingForDebugger(); 332 target.runtimeAgent().runIfWaitingForDebugger();
333 if (target.hasBrowserCapability()) 333 if (target.hasBrowserCapability())
334 target.inspectorAgent().enable(); 334 target.inspectorAgent().enable();
335 if (Runtime.experiments.isEnabled("nodeDebugging"))
336 new WebInspector.RemoteLocationManager(target);
337 console.timeEnd("Main._createMainTarget"); 335 console.timeEnd("Main._createMainTarget");
338 }, 336 },
339 337
340 _lateInitialization: function() 338 _lateInitialization: function()
341 { 339 {
342 console.timeStamp("Main._lateInitialization"); 340 console.timeStamp("Main._lateInitialization");
343 this._registerShortcuts(); 341 this._registerShortcuts();
344 WebInspector.extensionServer.initializeExtensions(); 342 WebInspector.extensionServer.initializeExtensions();
345 }, 343 },
346 344
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 * @override 1108 * @override
1111 * @return {?Element} 1109 * @return {?Element}
1112 */ 1110 */
1113 settingElement: function() 1111 settingElement: function()
1114 { 1112 {
1115 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); 1113 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers"));
1116 } 1114 }
1117 } 1115 }
1118 1116
1119 new WebInspector.Main(); 1117 new WebInspector.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698