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

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

Issue 2604883002: DevTools: namespace globals (Closed)
Patch Set: address CL feedback Created 3 years, 12 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 * @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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698