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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/settings/FrameworkBlackboxSettingsTab.js

Issue 2094873002: DevTools: fix deepActiveElement and focus on Dialog when document blurs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo accidental rebase Created 4 years, 5 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 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.VBox} 9 * @extends {WebInspector.VBox}
10 * @implements {WebInspector.ListWidget.Delegate} 10 * @implements {WebInspector.ListWidget.Delegate}
(...skipping 10 matching lines...) Expand all
21 this._disabledLabel = WebInspector.UIString("Disabled"); 21 this._disabledLabel = WebInspector.UIString("Disabled");
22 22
23 this._list = new WebInspector.ListWidget(this); 23 this._list = new WebInspector.ListWidget(this);
24 this._list.element.classList.add("blackbox-list"); 24 this._list.element.classList.add("blackbox-list");
25 this._list.registerRequiredCSS("settings/frameworkBlackboxSettingsTab.css"); 25 this._list.registerRequiredCSS("settings/frameworkBlackboxSettingsTab.css");
26 26
27 var placeholder = createElementWithClass("div", "blackbox-list-empty"); 27 var placeholder = createElementWithClass("div", "blackbox-list-empty");
28 placeholder.textContent = WebInspector.UIString("No blackboxed patterns"); 28 placeholder.textContent = WebInspector.UIString("No blackboxed patterns");
29 this._list.setEmptyPlaceholder(placeholder); 29 this._list.setEmptyPlaceholder(placeholder);
30 this._list.show(this.contentElement); 30 this._list.show(this.contentElement);
31 this.contentElement.appendChild(createTextButton(WebInspector.UIString("Add pattern..."), this._addButtonClicked.bind(this), "add-button")); 31 var addPatternButton = createTextButton(WebInspector.UIString("Add pattern.. ."), this._addButtonClicked.bind(this), "add-button");
32 this.contentElement.appendChild(addPatternButton);
32 33
33 this._setting = WebInspector.moduleSetting("skipStackFramesPattern"); 34 this._setting = WebInspector.moduleSetting("skipStackFramesPattern");
34 this._setting.addChangeListener(this._settingUpdated, this); 35 this._setting.addChangeListener(this._settingUpdated, this);
35 36
37 this.setDefaultFocusedElement(addPatternButton);
36 this.contentElement.tabIndex = 0; 38 this.contentElement.tabIndex = 0;
37 } 39 }
38 40
39 WebInspector.FrameworkBlackboxSettingsTab.prototype = { 41 WebInspector.FrameworkBlackboxSettingsTab.prototype = {
40 wasShown: function() 42 wasShown: function()
41 { 43 {
42 WebInspector.SettingsTab.prototype.wasShown.call(this); 44 WebInspector.SettingsTab.prototype.wasShown.call(this);
43 this._settingUpdated(); 45 this._settingUpdated();
44 }, 46 },
45 47
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 * @return {boolean} 174 * @return {boolean}
173 */ 175 */
174 function behaviorValidator(item, index, input) 176 function behaviorValidator(item, index, input)
175 { 177 {
176 return true; 178 return true;
177 } 179 }
178 }, 180 },
179 181
180 __proto__: WebInspector.VBox.prototype 182 __proto__: WebInspector.VBox.prototype
181 } 183 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698