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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/DOMBreakpointsSidebarPane.js

Issue 2186753002: [DevTools] Track URL through the target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Event s.InspectedURLChanged, this._inspectedURLChanged, this); 58 WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Event s.InspectedURLChanged, this._inspectedURLChanged, this);
59 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspec tor.DOMModel.Events.NodeRemoved, this._nodeRemoved, this); 59 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspec tor.DOMModel.Events.NodeRemoved, this._nodeRemoved, this);
60 } 60 }
61 61
62 WebInspector.DOMBreakpointsSidebarPane.Marker = "breakpoint-marker"; 62 WebInspector.DOMBreakpointsSidebarPane.Marker = "breakpoint-marker";
63 63
64 WebInspector.DOMBreakpointsSidebarPane.prototype = { 64 WebInspector.DOMBreakpointsSidebarPane.prototype = {
65 _inspectedURLChanged: function(event) 65 _inspectedURLChanged: function(event)
66 { 66 {
67 var target = /** @type {!WebInspector.Target} */ (event.data);
68 if (target !== WebInspector.targetManager.mainTarget())
69 return;
67 this._breakpointElements = {}; 70 this._breakpointElements = {};
68 this.reset(); 71 this.reset();
69 var url = /** @type {string} */ (event.data); 72 this._inspectedURL = target.inspectedURL().removeURLFragment();
70 this._inspectedURL = url.removeURLFragment();
71 }, 73 },
72 74
73 /** 75 /**
74 * @param {!WebInspector.DOMNode} node 76 * @param {!WebInspector.DOMNode} node
75 * @param {!WebInspector.ContextMenu} contextMenu 77 * @param {!WebInspector.ContextMenu} contextMenu
76 * @param {boolean} createSubMenu 78 * @param {boolean} createSubMenu
77 */ 79 */
78 populateNodeContextMenu: function(node, contextMenu, createSubMenu) 80 populateNodeContextMenu: function(node, contextMenu, createSubMenu)
79 { 81 {
80 if (node.pseudoType()) 82 if (node.pseudoType())
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 this._wrappedPane.show(this.element); 469 this._wrappedPane.show(this.element);
468 }, 470 },
469 471
470 __proto__: WebInspector.View.prototype 472 __proto__: WebInspector.View.prototype
471 } 473 }
472 474
473 /** 475 /**
474 * @type {!WebInspector.DOMBreakpointsSidebarPane} 476 * @type {!WebInspector.DOMBreakpointsSidebarPane}
475 */ 477 */
476 WebInspector.domBreakpointsSidebarPane; 478 WebInspector.domBreakpointsSidebarPane;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698