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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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 13 matching lines...) Expand all
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 * @unrestricted 32 * @unrestricted
33 */ 33 */
34 WebInspector.BreakpointsSidebarPaneBase = class extends WebInspector.VBox { 34 Components.BreakpointsSidebarPaneBase = class extends UI.VBox {
35 constructor() { 35 constructor() {
36 super(); 36 super();
37 this.registerRequiredCSS('components/breakpointsList.css'); 37 this.registerRequiredCSS('components/breakpointsList.css');
38 38
39 this.listElement = createElement('ol'); 39 this.listElement = createElement('ol');
40 this.listElement.className = 'breakpoint-list'; 40 this.listElement.className = 'breakpoint-list';
41 41
42 this.emptyElement = createElement('div'); 42 this.emptyElement = createElement('div');
43 this.emptyElement.className = 'gray-info-message'; 43 this.emptyElement.className = 'gray-info-message';
44 this.emptyElement.textContent = WebInspector.UIString('No Breakpoints'); 44 this.emptyElement.textContent = Common.UIString('No Breakpoints');
45 45
46 this.element.appendChild(this.emptyElement); 46 this.element.appendChild(this.emptyElement);
47 } 47 }
48 48
49 /** 49 /**
50 * @param {!Element} element 50 * @param {!Element} element
51 * @param {?Node=} beforeNode 51 * @param {?Node=} beforeNode
52 * @protected 52 * @protected
53 */ 53 */
54 addListElement(element, beforeNode) { 54 addListElement(element, beforeNode) {
(...skipping 24 matching lines...) Expand all
79 * @protected 79 * @protected
80 */ 80 */
81 reset() { 81 reset() {
82 this.listElement.removeChildren(); 82 this.listElement.removeChildren();
83 if (this.listElement.parentElement) { 83 if (this.listElement.parentElement) {
84 this.element.removeChild(this.listElement); 84 this.element.removeChild(this.listElement);
85 this.element.appendChild(this.emptyElement); 85 this.element.appendChild(this.emptyElement);
86 } 86 }
87 } 87 }
88 }; 88 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698