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

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

Issue 2174863003: DevTools: traverse widget hierarchy to reveal views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean 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 24 matching lines...) Expand all
35 */ 35 */
36 WebInspector.BreakpointsSidebarPaneBase = function(title) 36 WebInspector.BreakpointsSidebarPaneBase = function(title)
37 { 37 {
38 WebInspector.View.call(this, title); 38 WebInspector.View.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 = "info"; 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);
49 } 49 }
50 50
51 WebInspector.BreakpointsSidebarPaneBase.prototype = { 51 WebInspector.BreakpointsSidebarPaneBase.prototype = {
52 /** 52 /**
53 * @param {!Element} element 53 * @param {!Element} element
54 * @param {?Node=} beforeNode 54 * @param {?Node=} beforeNode
55 * @protected 55 * @protected
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.View.prototype
96 } 96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698