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

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

Issue 2345873002: [Devtools] Add capability for the log domain (Closed)
Patch Set: Created 4 years, 3 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 /** 283 /**
284 * @param {!WebInspector.Event} event 284 * @param {!WebInspector.Event} event
285 */ 285 */
286 function onDisconnected(event) 286 function onDisconnected(event)
287 { 287 {
288 if (WebInspector._disconnectedScreenWithReasonWasShown) 288 if (WebInspector._disconnectedScreenWithReasonWasShown)
289 return; 289 return;
290 WebInspector.RemoteDebuggingTerminatedScreen.show(event.data.reason) ; 290 WebInspector.RemoteDebuggingTerminatedScreen.show(event.data.reason) ;
291 } 291 }
292 292
293 var capabilities = WebInspector.Target.Capability.Browser | WebInspector .Target.Capability.JS | WebInspector.Target.Capability.Network | WebInspector.Ta rget.Capability.Worker | WebInspector.Target.Capability.DOM; 293 var capabilities = WebInspector.Target.PAGE_CAPABILITIES;
294 if (Runtime.queryParam("isSharedWorker")) 294 if (Runtime.queryParam("isSharedWorker"))
295 capabilities = WebInspector.Target.Capability.Browser | WebInspector .Target.Capability.Network | WebInspector.Target.Capability.Worker; 295 capabilities = WebInspector.Target.SHARED_WORKER_CAPABILITIES;
296 else if (Runtime.queryParam("v8only")) 296 else if (Runtime.queryParam("v8only"))
297 capabilities = WebInspector.Target.Capability.JS; 297 capabilities = WebInspector.Target.Capability.JS;
298 298
299 this._mainTarget = WebInspector.targetManager.createTarget(WebInspector. UIString("Main"), capabilities, connection, null); 299 this._mainTarget = WebInspector.targetManager.createTarget(WebInspector. UIString("Main"), capabilities, connection, null);
300 console.timeStamp("Main._mainTargetCreated"); 300 console.timeStamp("Main._mainTargetCreated");
301 this._registerShortcuts(); 301 this._registerShortcuts();
302 302
303 this._mainTarget.registerInspectorDispatcher(this); 303 this._mainTarget.registerInspectorDispatcher(this);
304 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E vents.ReloadInspectedPage, this._reloadInspectedPage, this); 304 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E vents.ReloadInspectedPage, this._reloadInspectedPage, this);
305 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E vents.EvaluateForTestInFrontend, this._evaluateForTestInFrontend, this); 305 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E vents.EvaluateForTestInFrontend, this._evaluateForTestInFrontend, this);
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 * @override 1093 * @override
1094 * @return {?Element} 1094 * @return {?Element}
1095 */ 1095 */
1096 settingElement: function() 1096 settingElement: function()
1097 { 1097 {
1098 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); 1098 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers"));
1099 } 1099 }
1100 } 1100 }
1101 1101
1102 new WebInspector.Main(); 1102 new WebInspector.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698