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

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

Issue 2058323002: Add ARIA panel to accessibility sidebar pane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Preliminary cleanup 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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.AccessibilitySubPane} 7 * @extends {WebInspector.AccessibilitySubPane}
8 */ 8 */
9 WebInspector.AXNodeSubPane = function() 9 WebInspector.AXNodeSubPane = function()
10 { 10 {
11 WebInspector.AccessibilitySubPane.call(this, WebInspector.UIString("Computed Properties")); 11 WebInspector.AccessibilitySubPane.call(this, WebInspector.UIString("Computed Properties"));
12 12
13 this._noNodeInfo = this.createInfo(WebInspector.UIString("No accessibility n ode")); 13 this._noNodeInfo = this.createInfo(WebInspector.UIString("No accessibility n ode"));
14 this._ignoredInfo = this.createInfo(WebInspector.UIString("Accessibility nod e not exposed"), "ax-ignored-info hidden"); 14 this._ignoredInfo = this.createInfo(WebInspector.UIString("Accessibility nod e not exposed"), "ax-ignored-info hidden");
15 15
16 this._treeOutline = this.createTreeOutline(); 16 this._treeOutline = this.createTreeOutline();
17 this._ignoredReasonsTree = this.createTreeOutline(); 17 this._ignoredReasonsTree = this.createTreeOutline();
18
19 this.element.classList.add("computed");
dgozman 2016/07/18 22:38:20 We use more specific classes to make search easier
aboxhall 2016/07/19 17:20:54 Done.
18 }; 20 };
19 21
20 22
21 WebInspector.AXNodeSubPane.prototype = { 23 WebInspector.AXNodeSubPane.prototype = {
22 /** 24 /**
23 * @param {?AccessibilityAgent.AXNode} axNode 25 * @param {?AccessibilityAgent.AXNode} axNode
24 * @override 26 * @override
25 */ 27 */
26 setAXNode: function(axNode) 28 setAXNode: function(axNode)
27 { 29 {
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 reasonElement = WebInspector.formatLocalized("Static text node is used a s name for\u00a0", []); 678 reasonElement = WebInspector.formatLocalized("Static text node is used a s name for\u00a0", []);
677 break; 679 break;
678 case "uninteresting": 680 case "uninteresting":
679 reasonElement = WebInspector.formatLocalized("Element not interesting fo r accessibility.", []); 681 reasonElement = WebInspector.formatLocalized("Element not interesting fo r accessibility.", []);
680 break; 682 break;
681 } 683 }
682 if (reasonElement) 684 if (reasonElement)
683 reasonElement.classList.add("ax-reason"); 685 reasonElement.classList.add("ax-reason");
684 return reasonElement; 686 return reasonElement;
685 }; 687 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698