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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js

Issue 2153153003: DevTools: remove dead code, disambiguate expand for sections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.ThrottledWidget} 7 * @extends {WebInspector.ThrottledWidget}
8 */ 8 */
9 WebInspector.AccessibilitySidebarView = function() 9 WebInspector.AccessibilitySidebarView = function()
10 { 10 {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 * @override 50 * @override
51 */ 51 */
52 wasShown: function() 52 wasShown: function()
53 { 53 {
54 WebInspector.ThrottledWidget.prototype.wasShown.call(this); 54 WebInspector.ThrottledWidget.prototype.wasShown.call(this);
55 55
56 if (!this._sidebarPaneStack) { 56 if (!this._sidebarPaneStack) {
57 this._axNodeSubPane = new WebInspector.AXNodeSubPane(); 57 this._axNodeSubPane = new WebInspector.AXNodeSubPane();
58 this._axNodeSubPane.setNode(this.node()); 58 this._axNodeSubPane.setNode(this.node());
59 this._axNodeSubPane.show(this.element); 59 this._axNodeSubPane.show(this.element);
60 this._axNodeSubPane.expand(); 60 this._axNodeSubPane.expandPane();
61 61
62 this._sidebarPaneStack = new WebInspector.SidebarPaneStack(); 62 this._sidebarPaneStack = new WebInspector.SidebarPaneStack();
63 this._sidebarPaneStack.element.classList.add("flex-auto"); 63 this._sidebarPaneStack.element.classList.add("flex-auto");
64 this._sidebarPaneStack.show(this.element); 64 this._sidebarPaneStack.show(this.element);
65 this._sidebarPaneStack.addPane(this._axNodeSubPane); 65 this._sidebarPaneStack.addPane(this._axNodeSubPane);
66 } 66 }
67 67
68 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebIn spector.DOMModel.Events.AttrModified, this._onAttrChange, this); 68 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebIn spector.DOMModel.Events.AttrModified, this._onAttrChange, this);
69 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebIn spector.DOMModel.Events.AttrRemoved, this._onAttrChange, this); 69 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebIn spector.DOMModel.Events.AttrRemoved, this._onAttrChange, this);
70 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebIn spector.DOMModel.Events.CharacterDataModified, this._onNodeChange, this); 70 WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebIn spector.DOMModel.Events.CharacterDataModified, this._onNodeChange, this);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 treeOutline.registerRequiredCSS("accessibility/accessibilityNode.css"); 180 treeOutline.registerRequiredCSS("accessibility/accessibilityNode.css");
181 treeOutline.registerRequiredCSS("components/objectValue.css"); 181 treeOutline.registerRequiredCSS("components/objectValue.css");
182 182
183 treeOutline.element.classList.add("hidden"); 183 treeOutline.element.classList.add("hidden");
184 this.element.appendChild(treeOutline.element); 184 this.element.appendChild(treeOutline.element);
185 return treeOutline; 185 return treeOutline;
186 }, 186 },
187 187
188 __proto__: WebInspector.SidebarPane.prototype 188 __proto__: WebInspector.SidebarPane.prototype
189 } 189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698