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

Side by Side Diff: Source/devtools/front_end/settings/FrameworkBlackboxDialog.js

Issue 423153002: DevTools: Styling for blackbox regex UI dialog. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/helpScreen.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * @constructor 8 * @constructor
9 * @extends {WebInspector.DialogDelegate} 9 * @extends {WebInspector.DialogDelegate}
10 */ 10 */
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 } 156 }
157 if (patterns[i].pattern === oldPattern) { 157 if (patterns[i].pattern === oldPattern) {
158 patterns[i] = { pattern: newPattern, disabled: disabled }; 158 patterns[i] = { pattern: newPattern, disabled: disabled };
159 break; 159 break;
160 } 160 }
161 } 161 }
162 WebInspector.settings.skipStackFramesPattern.setAsArray(patterns); 162 WebInspector.settings.skipStackFramesPattern.setAsArray(patterns);
163 163
164 if (oldPattern && oldPattern === newPattern) { 164 if (oldPattern && oldPattern === newPattern) {
165 this._entries.put(newPattern, disabled ? this._disabledLabel : this. _blackboxLabel) 165 this._entries.put(newPattern, disabled ? this._disabledLabel : this. _blackboxLabel)
166 this._patternsList.itemForId(oldPattern).classList.toggle("disabled" , disabled);
166 this._patternsList.refreshItem(newPattern); 167 this._patternsList.refreshItem(newPattern);
167 return; 168 return;
168 } 169 }
169 170
170 if (oldPattern) { 171 if (oldPattern) {
171 this._patternsList.removeItem(oldPattern); 172 this._patternsList.removeItem(oldPattern);
172 this._entries.remove(oldPattern); 173 this._entries.remove(oldPattern);
173 } 174 }
174 this._addPattern(newPattern, disabled); 175 this._addPattern(newPattern, disabled);
175 }, 176 },
(...skipping 20 matching lines...) Expand all
196 197
197 /** 198 /**
198 * @param {string} pattern 199 * @param {string} pattern
199 * @param {boolean=} disabled 200 * @param {boolean=} disabled
200 */ 201 */
201 _addPattern: function(pattern, disabled) 202 _addPattern: function(pattern, disabled)
202 { 203 {
203 if (!pattern || this._entries.contains(pattern)) 204 if (!pattern || this._entries.contains(pattern))
204 return; 205 return;
205 this._entries.put(pattern, disabled ? this._disabledLabel : this._blackb oxLabel); 206 this._entries.put(pattern, disabled ? this._disabledLabel : this._blackb oxLabel);
206 this._patternsList.addItem(pattern, null); 207 var listItem = this._patternsList.addItem(pattern, null);
208 listItem.classList.toggle("disabled", disabled);
207 this._resize(); 209 this._resize();
208 }, 210 },
209 211
210 focus: function() 212 focus: function()
211 { 213 {
212 WebInspector.setCurrentFocusElement(this.element); 214 WebInspector.setCurrentFocusElement(this.element);
213 }, 215 },
214 216
215 _onDoneClick: function() 217 _onDoneClick: function()
216 { 218 {
217 WebInspector.Dialog.hide(); 219 WebInspector.Dialog.hide();
218 }, 220 },
219 221
220 onEnter: function(event) 222 onEnter: function(event)
221 { 223 {
222 var focusElement = WebInspector.currentFocusElement(); 224 var focusElement = WebInspector.currentFocusElement();
223 var nodeName = focusElement && focusElement.nodeName.toLowerCase(); 225 var nodeName = focusElement && focusElement.nodeName.toLowerCase();
224 if (nodeName === "input" || nodeName === "select") { 226 if (nodeName === "input" || nodeName === "select") {
225 this.focus(); 227 this.focus();
226 event.consume(true); 228 event.consume(true);
227 return; 229 return;
228 } 230 }
229 }, 231 },
230 232
231 __proto__: WebInspector.DialogDelegate.prototype 233 __proto__: WebInspector.DialogDelegate.prototype
232 } 234 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/helpScreen.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698