| OLD | NEW |
| 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 * @unrestricted | 5 * @unrestricted |
| 6 */ | 6 */ |
| 7 Accessibility.AccessibilitySidebarView = class extends UI.ThrottledWidget { | 7 Accessibility.AccessibilitySidebarView = class extends UI.ThrottledWidget { |
| 8 constructor() { | 8 constructor() { |
| 9 super(); | 9 super(); |
| 10 this._node = null; | 10 this._node = null; |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 * @return {!Element} | 168 * @return {!Element} |
| 169 */ | 169 */ |
| 170 createInfo(textContent, className) { | 170 createInfo(textContent, className) { |
| 171 var classNameOrDefault = className || 'gray-info-message'; | 171 var classNameOrDefault = className || 'gray-info-message'; |
| 172 var info = this.element.createChild('div', classNameOrDefault); | 172 var info = this.element.createChild('div', classNameOrDefault); |
| 173 info.textContent = textContent; | 173 info.textContent = textContent; |
| 174 return info; | 174 return info; |
| 175 } | 175 } |
| 176 | 176 |
| 177 /** | 177 /** |
| 178 * @return {!TreeOutline} | 178 * @return {!UI.TreeOutline} |
| 179 */ | 179 */ |
| 180 createTreeOutline() { | 180 createTreeOutline() { |
| 181 var treeOutline = new TreeOutlineInShadow(); | 181 var treeOutline = new UI.TreeOutlineInShadow(); |
| 182 treeOutline.registerRequiredCSS('accessibility/accessibilityNode.css'); | 182 treeOutline.registerRequiredCSS('accessibility/accessibilityNode.css'); |
| 183 treeOutline.registerRequiredCSS('components/objectValue.css'); | 183 treeOutline.registerRequiredCSS('components/objectValue.css'); |
| 184 | 184 |
| 185 treeOutline.element.classList.add('hidden'); | 185 treeOutline.element.classList.add('hidden'); |
| 186 this.element.appendChild(treeOutline.element); | 186 this.element.appendChild(treeOutline.element); |
| 187 return treeOutline; | 187 return treeOutline; |
| 188 } | 188 } |
| 189 }; | 189 }; |
| OLD | NEW |