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

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

Issue 2122113004: [DevTools] Support for the inspector target type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/main/OverlayController.js » ('j') | 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 console.timeStamp("Main._mainTargetCreated"); 318 console.timeStamp("Main._mainTargetCreated");
319 this._registerShortcuts(); 319 this._registerShortcuts();
320 320
321 this._mainTarget.registerInspectorDispatcher(this); 321 this._mainTarget.registerInspectorDispatcher(this);
322 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E vents.ReloadInspectedPage, this._reloadInspectedPage, this); 322 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E vents.ReloadInspectedPage, this._reloadInspectedPage, this);
323 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E vents.EvaluateForTestInFrontend, this._evaluateForTestInFrontend, this); 323 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E vents.EvaluateForTestInFrontend, this._evaluateForTestInFrontend, this);
324 324
325 if (this._mainTarget.isServiceWorker() || this._mainTarget.isPage() || t his._mainTarget.isJSInspector()) 325 if (this._mainTarget.isServiceWorker() || this._mainTarget.isPage() || t his._mainTarget.isJSInspector())
326 this._mainTarget.runtimeAgent().run(); 326 this._mainTarget.runtimeAgent().run();
327 327
328 this._mainTarget.inspectorAgent().enable(); 328 if (!this._mainTarget.isJSInspector())
pfeldman 2016/07/07 18:00:49 Lets steer it closer to capabilities. I.e. the che
329 this._mainTarget.inspectorAgent().enable();
329 InspectorFrontendHost.readyForTest(); 330 InspectorFrontendHost.readyForTest();
330 331
331 // Asynchronously run the extensions. 332 // Asynchronously run the extensions.
332 setTimeout(lateInitialization, 0); 333 setTimeout(lateInitialization, 0);
333 334
334 function lateInitialization() 335 function lateInitialization()
335 { 336 {
336 console.timeStamp("Main.lateInitialization"); 337 console.timeStamp("Main.lateInitialization");
337 WebInspector.extensionServer.initializeExtensions(); 338 WebInspector.extensionServer.initializeExtensions();
338 } 339 }
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 * @return {?Element} 1118 * @return {?Element}
1118 */ 1119 */
1119 settingElement: function() 1120 settingElement: function()
1120 { 1121 {
1121 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); 1122 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers"));
1122 } 1123 }
1123 } 1124 }
1124 1125
1125 1126
1126 new WebInspector.Main(); 1127 new WebInspector.Main();
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/main/OverlayController.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698