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

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

Issue 2200893003: DevTools: Add autocomplete for ARIA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: skip_compilation Created 4 years, 3 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 28 matching lines...) Expand all
39 /** 39 /**
40 * @param {?AccessibilityAgent.AXNode} accessibilityNode 40 * @param {?AccessibilityAgent.AXNode} accessibilityNode
41 * @this {WebInspector.AccessibilitySidebarView} 41 * @this {WebInspector.AccessibilitySidebarView}
42 */ 42 */
43 function accessibilityNodeCallback(accessibilityNode) 43 function accessibilityNodeCallback(accessibilityNode)
44 { 44 {
45 if (this._axNodeSubPane) 45 if (this._axNodeSubPane)
46 this._axNodeSubPane.setAXNode(accessibilityNode); 46 this._axNodeSubPane.setAXNode(accessibilityNode);
47 } 47 }
48 var node = this.node(); 48 var node = this.node();
49 this._ariaSubPane.setNode(node);
49 return WebInspector.AccessibilityModel.fromTarget(node.target()).getAXNo de(node.id) 50 return WebInspector.AccessibilityModel.fromTarget(node.target()).getAXNo de(node.id)
50 .then(accessibilityNodeCallback.bind(this)) 51 .then(accessibilityNodeCallback.bind(this));
51 }, 52 },
52 53
53 /** 54 /**
54 * @override 55 * @override
55 */ 56 */
56 wasShown: function() 57 wasShown: function()
57 { 58 {
58 WebInspector.ThrottledWidget.prototype.wasShown.call(this); 59 WebInspector.ThrottledWidget.prototype.wasShown.call(this);
59 60
60 this._axNodeSubPane.setNode(this.node()); 61 this._axNodeSubPane.setNode(this.node());
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 treeOutline.registerRequiredCSS("accessibility/accessibilityNode.css"); 176 treeOutline.registerRequiredCSS("accessibility/accessibilityNode.css");
176 treeOutline.registerRequiredCSS("components/objectValue.css"); 177 treeOutline.registerRequiredCSS("components/objectValue.css");
177 178
178 treeOutline.element.classList.add("hidden"); 179 treeOutline.element.classList.add("hidden");
179 this.element.appendChild(treeOutline.element); 180 this.element.appendChild(treeOutline.element);
180 return treeOutline; 181 return treeOutline;
181 }, 182 },
182 183
183 __proto__: WebInspector.SimpleView.prototype 184 __proto__: WebInspector.SimpleView.prototype
184 } 185 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698