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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/UIList.js

Issue 2389333002: DevTools: update styles for debugger's CallStackSidebarPane (Closed)
Patch Set: reset result after reorder, address comments Created 4 years, 2 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 * @param {string} title 80 * @param {string} title
81 * @param {string} subtitle 81 * @param {string} subtitle
82 * @param {boolean=} isLabel 82 * @param {boolean=} isLabel
83 */ 83 */
84 WebInspector.UIList.Item = function(title, subtitle, isLabel) 84 WebInspector.UIList.Item = function(title, subtitle, isLabel)
85 { 85 {
86 this.element = createElementWithClass("div", "list-item"); 86 this.element = createElementWithClass("div", "list-item");
87 if (isLabel) 87 if (isLabel)
88 this.element.classList.add("label"); 88 this.element.classList.add("label");
89 89
90 this.titleElement = this.element.createChild("div", "title");
90 this.subtitleElement = this.element.createChild("div", "subtitle"); 91 this.subtitleElement = this.element.createChild("div", "subtitle");
91 this.titleElement = this.element.createChild("div", "title");
92 92
93 this._hidden = false; 93 this._hidden = false;
94 this._isLabel = !!isLabel; 94 this._isLabel = !!isLabel;
95 this.setTitle(title); 95 this.setTitle(title);
96 this.setSubtitle(subtitle); 96 this.setSubtitle(subtitle);
97 this.setSelected(false); 97 this.setSelected(false);
98 } 98 }
99 99
100 WebInspector.UIList.Item.prototype = { 100 WebInspector.UIList.Item.prototype = {
101 /** 101 /**
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 }, 227 },
228 228
229 /** 229 /**
230 * @param {boolean} hoverable 230 * @param {boolean} hoverable
231 */ 231 */
232 setHoverable: function(hoverable) 232 setHoverable: function(hoverable)
233 { 233 {
234 this.element.classList.toggle("ignore-hover", !hoverable); 234 this.element.classList.toggle("ignore-hover", !hoverable);
235 }, 235 },
236 } 236 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698