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

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

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 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) 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 12 matching lines...) Expand all
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
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.View} 33 * @extends {WebInspector.SimpleView}
34 * @param {string} title 34 * @param {string} title
35 */ 35 */
36 WebInspector.BreakpointsSidebarPaneBase = function(title) 36 WebInspector.BreakpointsSidebarPaneBase = function(title)
37 { 37 {
38 WebInspector.View.call(this, title); 38 WebInspector.SimpleView.call(this, title);
39 this.registerRequiredCSS("components/breakpointsList.css"); 39 this.registerRequiredCSS("components/breakpointsList.css");
40 40
41 this.listElement = createElement("ol"); 41 this.listElement = createElement("ol");
42 this.listElement.className = "breakpoint-list"; 42 this.listElement.className = "breakpoint-list";
43 43
44 this.emptyElement = createElement("div"); 44 this.emptyElement = createElement("div");
45 this.emptyElement.className = "gray-info-message"; 45 this.emptyElement.className = "gray-info-message";
46 this.emptyElement.textContent = WebInspector.UIString("No Breakpoints"); 46 this.emptyElement.textContent = WebInspector.UIString("No Breakpoints");
47 47
48 this.element.appendChild(this.emptyElement); 48 this.element.appendChild(this.emptyElement);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 */ 85 */
86 reset: function() 86 reset: function()
87 { 87 {
88 this.listElement.removeChildren(); 88 this.listElement.removeChildren();
89 if (this.listElement.parentElement) { 89 if (this.listElement.parentElement) {
90 this.element.removeChild(this.listElement); 90 this.element.removeChild(this.listElement);
91 this.element.appendChild(this.emptyElement); 91 this.element.appendChild(this.emptyElement);
92 } 92 }
93 }, 93 },
94 94
95 __proto__: WebInspector.View.prototype 95 __proto__: WebInspector.SimpleView.prototype
96 } 96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698