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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 this._breakpointTypeLabels = {}; | 46 this._breakpointTypeLabels = {}; |
47 this._breakpointTypeLabels[this._breakpointTypes.SubtreeModified] = WebInspe
ctor.UIString("Subtree Modified"); | 47 this._breakpointTypeLabels[this._breakpointTypes.SubtreeModified] = WebInspe
ctor.UIString("Subtree Modified"); |
48 this._breakpointTypeLabels[this._breakpointTypes.AttributeModified] = WebIns
pector.UIString("Attribute Modified"); | 48 this._breakpointTypeLabels[this._breakpointTypes.AttributeModified] = WebIns
pector.UIString("Attribute Modified"); |
49 this._breakpointTypeLabels[this._breakpointTypes.NodeRemoved] = WebInspector
.UIString("Node Removed"); | 49 this._breakpointTypeLabels[this._breakpointTypes.NodeRemoved] = WebInspector
.UIString("Node Removed"); |
50 | 50 |
51 this._contextMenuLabels = {}; | 51 this._contextMenuLabels = {}; |
52 this._contextMenuLabels[this._breakpointTypes.SubtreeModified] = WebInspecto
r.UIString(WebInspector.useLowerCaseMenuTitles() ? "Subtree modifications" : "Su
btree Modifications"); | 52 this._contextMenuLabels[this._breakpointTypes.SubtreeModified] = WebInspecto
r.UIString(WebInspector.useLowerCaseMenuTitles() ? "Subtree modifications" : "Su
btree Modifications"); |
53 this._contextMenuLabels[this._breakpointTypes.AttributeModified] = WebInspec
tor.UIString(WebInspector.useLowerCaseMenuTitles() ? "Attributes modifications"
: "Attributes Modifications"); | 53 this._contextMenuLabels[this._breakpointTypes.AttributeModified] = WebInspec
tor.UIString(WebInspector.useLowerCaseMenuTitles() ? "Attributes modifications"
: "Attributes Modifications"); |
54 this._contextMenuLabels[this._breakpointTypes.NodeRemoved] = WebInspector.UI
String(WebInspector.useLowerCaseMenuTitles() ? "Node removal" : "Node Removal"); | 54 this._contextMenuLabels[this._breakpointTypes.NodeRemoved] = WebInspector.UI
String(WebInspector.useLowerCaseMenuTitles() ? "Node removal" : "Node Removal"); |
55 | 55 |
56 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel,
WebInspector.ResourceTreeModel.EventTypes.InspectedURLChanged, this._inspectedUR
LChanged, this); | 56 WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Event
s.InspectedURLChanged, this._inspectedURLChanged, this); |
57 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspec
tor.DOMModel.Events.NodeRemoved, this._nodeRemoved, this); | 57 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspec
tor.DOMModel.Events.NodeRemoved, this._nodeRemoved, this); |
58 } | 58 } |
59 | 59 |
60 WebInspector.DOMBreakpointsSidebarPane.prototype = { | 60 WebInspector.DOMBreakpointsSidebarPane.prototype = { |
61 _inspectedURLChanged: function(event) | 61 _inspectedURLChanged: function(event) |
62 { | 62 { |
63 this._breakpointElements = {}; | 63 this._breakpointElements = {}; |
64 this.reset(); | 64 this.reset(); |
65 var url = /** @type {string} */ (event.data); | 65 var url = /** @type {string} */ (event.data); |
66 this._inspectedURL = url.removeURLFragment(); | 66 this._inspectedURL = url.removeURLFragment(); |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 this.element.appendChild(this.bodyElement); | 435 this.element.appendChild(this.bodyElement); |
436 }, | 436 }, |
437 | 437 |
438 __proto__: WebInspector.SidebarPane.prototype | 438 __proto__: WebInspector.SidebarPane.prototype |
439 } | 439 } |
440 | 440 |
441 /** | 441 /** |
442 * @type {!WebInspector.DOMBreakpointsSidebarPane} | 442 * @type {!WebInspector.DOMBreakpointsSidebarPane} |
443 */ | 443 */ |
444 WebInspector.domBreakpointsSidebarPane; | 444 WebInspector.domBreakpointsSidebarPane; |
OLD | NEW |