Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 this._breakpointElements = {}; | 67 this._breakpointElements = {}; |
| 68 this.reset(); | 68 this.reset(); |
| 69 var url = /** @type {string} */ (event.data); | 69 var target = /** @type {!WebInspector.Target} */ (event.data); |
| 70 this._inspectedURL = url.removeURLFragment(); | 70 this._inspectedURL = target.inspectedURL().removeURLFragment(); |
|
dgozman
2016/07/27 20:24:23
if (target === WebInspector.targetManager().mainTa
eostroukhov-old
2016/07/27 21:39:46
Done.
| |
| 71 }, | 71 }, |
| 72 | 72 |
| 73 /** | 73 /** |
| 74 * @param {!WebInspector.DOMNode} node | 74 * @param {!WebInspector.DOMNode} node |
| 75 * @param {!WebInspector.ContextMenu} contextMenu | 75 * @param {!WebInspector.ContextMenu} contextMenu |
| 76 * @param {boolean} createSubMenu | 76 * @param {boolean} createSubMenu |
| 77 */ | 77 */ |
| 78 populateNodeContextMenu: function(node, contextMenu, createSubMenu) | 78 populateNodeContextMenu: function(node, contextMenu, createSubMenu) |
| 79 { | 79 { |
| 80 if (node.pseudoType()) | 80 if (node.pseudoType()) |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 467 this._wrappedPane.show(this.element); | 467 this._wrappedPane.show(this.element); |
| 468 }, | 468 }, |
| 469 | 469 |
| 470 __proto__: WebInspector.View.prototype | 470 __proto__: WebInspector.View.prototype |
| 471 } | 471 } |
| 472 | 472 |
| 473 /** | 473 /** |
| 474 * @type {!WebInspector.DOMBreakpointsSidebarPane} | 474 * @type {!WebInspector.DOMBreakpointsSidebarPane} |
| 475 */ | 475 */ |
| 476 WebInspector.domBreakpointsSidebarPane; | 476 WebInspector.domBreakpointsSidebarPane; |
| OLD | NEW |