| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 14 matching lines...) Expand all Loading... |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * @constructor | 32 * @constructor |
| 33 * @extends {WebInspector.SidebarPane} | 33 * @extends {WebInspector.SidebarPane} |
| 34 */ | 34 */ |
| 35 WebInspector.NativeBreakpointsSidebarPane = function(title) | 35 WebInspector.BreakpointsSidebarPaneBase = function(title) |
| 36 { | 36 { |
| 37 WebInspector.SidebarPane.call(this, title); | 37 WebInspector.SidebarPane.call(this, title); |
| 38 this.registerRequiredCSS("components/breakpointsList.css"); | 38 this.registerRequiredCSS("components/breakpointsList.css"); |
| 39 | 39 |
| 40 this.listElement = createElement("ol"); | 40 this.listElement = createElement("ol"); |
| 41 this.listElement.className = "breakpoint-list"; | 41 this.listElement.className = "breakpoint-list"; |
| 42 | 42 |
| 43 this.emptyElement = createElement("div"); | 43 this.emptyElement = createElement("div"); |
| 44 this.emptyElement.className = "info"; | 44 this.emptyElement.className = "info"; |
| 45 this.emptyElement.textContent = WebInspector.UIString("No Breakpoints"); | 45 this.emptyElement.textContent = WebInspector.UIString("No Breakpoints"); |
| 46 | 46 |
| 47 this.bodyElement.appendChild(this.emptyElement); | 47 this.bodyElement.appendChild(this.emptyElement); |
| 48 } | 48 } |
| 49 | 49 |
| 50 WebInspector.NativeBreakpointsSidebarPane.prototype = { | 50 WebInspector.BreakpointsSidebarPaneBase.prototype = { |
| 51 /** | 51 /** |
| 52 * @param {!Element} element | 52 * @param {!Element} element |
| 53 * @param {?Node=} beforeNode | 53 * @param {?Node=} beforeNode |
| 54 * @protected | 54 * @protected |
| 55 */ | 55 */ |
| 56 addListElement: function(element, beforeNode) | 56 addListElement: function(element, beforeNode) |
| 57 { | 57 { |
| 58 if (beforeNode) { | 58 if (beforeNode) { |
| 59 this.listElement.insertBefore(element, beforeNode); | 59 this.listElement.insertBefore(element, beforeNode); |
| 60 } else { | 60 } else { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 86 { | 86 { |
| 87 this.listElement.removeChildren(); | 87 this.listElement.removeChildren(); |
| 88 if (this.listElement.parentElement) { | 88 if (this.listElement.parentElement) { |
| 89 this.bodyElement.removeChild(this.listElement); | 89 this.bodyElement.removeChild(this.listElement); |
| 90 this.bodyElement.appendChild(this.emptyElement); | 90 this.bodyElement.appendChild(this.emptyElement); |
| 91 } | 91 } |
| 92 }, | 92 }, |
| 93 | 93 |
| 94 __proto__: WebInspector.SidebarPane.prototype | 94 __proto__: WebInspector.SidebarPane.prototype |
| 95 } | 95 } |
| OLD | NEW |