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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 this._breakpointTypeLabels[this._breakpointTypes.AttributeModified] = WebIns
pector.UIString("Attribute Modified"); | 52 this._breakpointTypeLabels[this._breakpointTypes.AttributeModified] = WebIns
pector.UIString("Attribute Modified"); |
53 this._breakpointTypeLabels[this._breakpointTypes.NodeRemoved] = WebInspector
.UIString("Node Removed"); | 53 this._breakpointTypeLabels[this._breakpointTypes.NodeRemoved] = WebInspector
.UIString("Node Removed"); |
54 | 54 |
55 this._contextMenuLabels = {}; | 55 this._contextMenuLabels = {}; |
56 this._contextMenuLabels[this._breakpointTypes.SubtreeModified] = WebInspecto
r.UIString.capitalize("Subtree ^modifications"); | 56 this._contextMenuLabels[this._breakpointTypes.SubtreeModified] = WebInspecto
r.UIString.capitalize("Subtree ^modifications"); |
57 this._contextMenuLabels[this._breakpointTypes.AttributeModified] = WebInspec
tor.UIString.capitalize("Attributes ^modifications"); | 57 this._contextMenuLabels[this._breakpointTypes.AttributeModified] = WebInspec
tor.UIString.capitalize("Attributes ^modifications"); |
58 this._contextMenuLabels[this._breakpointTypes.NodeRemoved] = WebInspector.UI
String.capitalize("Node ^removal"); | 58 this._contextMenuLabels[this._breakpointTypes.NodeRemoved] = WebInspector.UI
String.capitalize("Node ^removal"); |
59 | 59 |
60 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspec
tor.DOMModel.Events.NodeRemoved, this._nodeRemoved, this); | 60 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspec
tor.DOMModel.Events.NodeRemoved, this._nodeRemoved, this); |
61 this._update(); | 61 this._update(); |
62 } | 62 }; |
63 | 63 |
64 WebInspector.DOMBreakpointsSidebarPane.Marker = "breakpoint-marker"; | 64 WebInspector.DOMBreakpointsSidebarPane.Marker = "breakpoint-marker"; |
65 | 65 |
66 WebInspector.DOMBreakpointsSidebarPane.prototype = { | 66 WebInspector.DOMBreakpointsSidebarPane.prototype = { |
67 /** | 67 /** |
68 * @param {!WebInspector.DOMNode} node | 68 * @param {!WebInspector.DOMNode} node |
69 * @param {!WebInspector.ContextMenu} contextMenu | 69 * @param {!WebInspector.ContextMenu} contextMenu |
70 * @param {boolean} createSubMenu | 70 * @param {boolean} createSubMenu |
71 */ | 71 */ |
72 populateNodeContextMenu: function(node, contextMenu, createSubMenu) | 72 populateNodeContextMenu: function(node, contextMenu, createSubMenu) |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 var path = breakpoint.path; | 397 var path = breakpoint.path; |
398 if (!pathToBreakpoints.has(path)) { | 398 if (!pathToBreakpoints.has(path)) { |
399 pathToBreakpoints.set(path, []); | 399 pathToBreakpoints.set(path, []); |
400 domModel.pushNodeByPathToFrontend(path, didPushNodeByPathToFront
end.bind(this, path)); | 400 domModel.pushNodeByPathToFrontend(path, didPushNodeByPathToFront
end.bind(this, path)); |
401 } | 401 } |
402 pathToBreakpoints.get(path).push(breakpoint); | 402 pathToBreakpoints.get(path).push(breakpoint); |
403 } | 403 } |
404 }, | 404 }, |
405 | 405 |
406 __proto__: WebInspector.BreakpointsSidebarPaneBase.prototype | 406 __proto__: WebInspector.BreakpointsSidebarPaneBase.prototype |
407 } | 407 }; |
408 | 408 |
409 /** | 409 /** |
410 * @constructor | 410 * @constructor |
411 * @extends {WebInspector.VBox} | 411 * @extends {WebInspector.VBox} |
412 */ | 412 */ |
413 WebInspector.DOMBreakpointsSidebarPane.Proxy = function() | 413 WebInspector.DOMBreakpointsSidebarPane.Proxy = function() |
414 { | 414 { |
415 WebInspector.VBox.call(this); | 415 WebInspector.VBox.call(this); |
416 this.registerRequiredCSS("components/breakpointsList.css"); | 416 this.registerRequiredCSS("components/breakpointsList.css"); |
417 } | 417 }; |
418 | 418 |
419 WebInspector.DOMBreakpointsSidebarPane.Proxy.prototype = { | 419 WebInspector.DOMBreakpointsSidebarPane.Proxy.prototype = { |
420 wasShown: function() | 420 wasShown: function() |
421 { | 421 { |
422 WebInspector.SimpleView.prototype.wasShown.call(this); | 422 WebInspector.SimpleView.prototype.wasShown.call(this); |
423 var pane = WebInspector.domBreakpointsSidebarPane; | 423 var pane = WebInspector.domBreakpointsSidebarPane; |
424 if (pane.element.parentNode !== this.element) | 424 if (pane.element.parentNode !== this.element) |
425 pane.show(this.element); | 425 pane.show(this.element); |
426 }, | 426 }, |
427 | 427 |
428 __proto__: WebInspector.VBox.prototype | 428 __proto__: WebInspector.VBox.prototype |
429 } | 429 }; |
430 | 430 |
431 /** | 431 /** |
432 * @type {!WebInspector.DOMBreakpointsSidebarPane} | 432 * @type {!WebInspector.DOMBreakpointsSidebarPane} |
433 */ | 433 */ |
434 WebInspector.domBreakpointsSidebarPane; | 434 WebInspector.domBreakpointsSidebarPane; |
OLD | NEW |