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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js

Issue 2112593003: [DevTools] Remove [V8] from InspectorInstrumentation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: migrated to inspector-protocol test 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 this.sidebarPanes.xhrBreakpoints.highlightBreakpoint(details.auxData ["breakpointURL"]); 288 this.sidebarPanes.xhrBreakpoints.highlightBreakpoint(details.auxData ["breakpointURL"]);
289 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a XMLHttpRequest.")); 289 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a XMLHttpRequest."));
290 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Exc eption) { 290 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Exc eption) {
291 var description = details.auxData["description"] || ""; 291 var description = details.auxData["description"] || "";
292 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on exception: '%s'.", description.split("\n", 1)[0])); 292 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on exception: '%s'.", description.split("\n", 1)[0]));
293 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Pro miseRejection) { 293 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Pro miseRejection) {
294 var description = details.auxData["description"] || ""; 294 var description = details.auxData["description"] || "";
295 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on promise rejection: '%s'.", description.split("\n", 1)[0])); 295 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on promise rejection: '%s'.", description.split("\n", 1)[0]));
296 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Ass ert) { 296 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Ass ert) {
297 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on assertion.")); 297 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on assertion."));
298 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.CSP Violation) {
299 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a script blocked due to Content Security Policy directive: \"%s\".", details. auxData["directiveText"]));
300 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Deb ugCommand) { 298 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Deb ugCommand) {
301 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a debugged function.")); 299 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a debugged function."));
302 } else { 300 } else {
303 if (details.callFrames.length) 301 if (details.callFrames.length)
304 WebInspector.debuggerWorkspaceBinding.createCallFrameLiveLocatio n(details.callFrames[0].location(), didGetUILocation.bind(this), this._liveLocat ionPool); 302 WebInspector.debuggerWorkspaceBinding.createCallFrameLiveLocatio n(details.callFrames[0].location(), didGetUILocation.bind(this), this._liveLocat ionPool);
305 else 303 else
306 console.warn("ScriptsPanel paused, but callFrames.length is zero ."); // TODO remove this once we understand this case better 304 console.warn("ScriptsPanel paused, but callFrames.length is zero ."); // TODO remove this once we understand this case better
307 } 305 }
308 306
309 this._splitWidget.showBoth(true); 307 this._splitWidget.showBoth(true);
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 __proto__: WebInspector.VBox.prototype 1470 __proto__: WebInspector.VBox.prototype
1473 } 1471 }
1474 1472
1475 /** 1473 /**
1476 * @return {boolean} 1474 * @return {boolean}
1477 */ 1475 */
1478 WebInspector.SourcesPanel.WrapperView.isShowing = function() 1476 WebInspector.SourcesPanel.WrapperView.isShowing = function()
1479 { 1477 {
1480 return !!WebInspector.SourcesPanel.WrapperView._instance && WebInspector.Sou rcesPanel.WrapperView._instance.isShowing(); 1478 return !!WebInspector.SourcesPanel.WrapperView._instance && WebInspector.Sou rcesPanel.WrapperView._instance.isShowing();
1481 } 1479 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698