| OLD | NEW |
| 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.AXTreePane = function() | 9 WebInspector.AXTreePane = function() |
| 10 { | 10 { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 /** | 46 /** |
| 47 * @constructor | 47 * @constructor |
| 48 * @extends {TreeElement} | 48 * @extends {TreeElement} |
| 49 * @param {!WebInspector.AccessibilityNode} axNode | 49 * @param {!WebInspector.AccessibilityNode} axNode |
| 50 * @param {!WebInspector.Target} target | 50 * @param {!WebInspector.Target} target |
| 51 */ | 51 */ |
| 52 WebInspector.AXNodeTreeElement = function(axNode, target) | 52 WebInspector.AXNodeTreeElement = function(axNode, target) |
| 53 { | 53 { |
| 54 // Pass an empty title, the title gets made later in onattach. |
| 55 TreeElement.call(this, ""); |
| 56 |
| 54 /** @type {!WebInspector.AccessibilityNode} */ | 57 /** @type {!WebInspector.AccessibilityNode} */ |
| 55 this._axNode = axNode; | 58 this._axNode = axNode; |
| 56 | 59 |
| 57 /** @type {!WebInspector.Target} */ | 60 /** @type {!WebInspector.Target} */ |
| 58 this._target = target; | 61 this._target = target; |
| 59 | 62 |
| 60 // Pass an empty title, the title gets made later in onattach. | |
| 61 TreeElement.call(this, ""); | |
| 62 | |
| 63 this.selectable = false; | 63 this.selectable = false; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 /** @type {!Object<string, string>} */ | 66 /** @type {!Object<string, string>} */ |
| 67 WebInspector.AXNodeTreeElement.RoleStyles = { | 67 WebInspector.AXNodeTreeElement.RoleStyles = { |
| 68 internalRole: "ax-internal-role", | 68 internalRole: "ax-internal-role", |
| 69 role: "ax-role", | 69 role: "ax-role", |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 WebInspector.AXNodeTreeElement.prototype = { | 72 WebInspector.AXNodeTreeElement.prototype = { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 _appendIgnoredNodeElement: function() | 122 _appendIgnoredNodeElement: function() |
| 123 { | 123 { |
| 124 var ignoredNodeElement = createElementWithClass("span", "monospace"); | 124 var ignoredNodeElement = createElementWithClass("span", "monospace"); |
| 125 ignoredNodeElement.textContent = WebInspector.UIString("Ignored"); | 125 ignoredNodeElement.textContent = WebInspector.UIString("Ignored"); |
| 126 ignoredNodeElement.classList.add("ax-tree-ignored-node"); | 126 ignoredNodeElement.classList.add("ax-tree-ignored-node"); |
| 127 this.listItemElement.appendChild(ignoredNodeElement); | 127 this.listItemElement.appendChild(ignoredNodeElement); |
| 128 }, | 128 }, |
| 129 | 129 |
| 130 __proto__: TreeElement.prototype | 130 __proto__: TreeElement.prototype |
| 131 }; | 131 }; |
| OLD | NEW |