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

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

Issue 1113813002: [DevTools] Rename View to Widget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/front_end/audits/AuditsPanel.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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.ThrottledElementsSidebarView} 7 * @extends {WebInspector.ThrottledElementsSidebarView}
8 */ 8 */
9 WebInspector.AccessibilitySidebarView = function() 9 WebInspector.AccessibilitySidebarView = function()
10 { 10 {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 { 78 {
79 /** 79 /**
80 * @param {?AccessibilityAgent.AXNode} accessibilityNode 80 * @param {?AccessibilityAgent.AXNode} accessibilityNode
81 * @this {WebInspector.AXNodeSubPane} 81 * @this {WebInspector.AXNodeSubPane}
82 */ 82 */
83 function accessibilityNodeCallback(accessibilityNode) 83 function accessibilityNodeCallback(accessibilityNode)
84 { 84 {
85 this._setAXNode(accessibilityNode); 85 this._setAXNode(accessibilityNode);
86 callback(); 86 callback();
87 } 87 }
88 var node = this.parentView().parentView().node(); 88 var node = this.parentWidget().parentWidget().node();
89 WebInspector.AccessibilityModel.fromTarget(node.target()).getAXNode(node .id, accessibilityNodeCallback.bind(this)); 89 WebInspector.AccessibilityModel.fromTarget(node.target()).getAXNode(node .id, accessibilityNodeCallback.bind(this));
90 }, 90 },
91 91
92 /** 92 /**
93 * @override 93 * @override
94 */ 94 */
95 wasShown: function() 95 wasShown: function()
96 { 96 {
97 WebInspector.SidebarPane.prototype.wasShown.call(this); 97 WebInspector.SidebarPane.prototype.wasShown.call(this);
98 98
(...skipping 29 matching lines...) Expand all
128 if (!axNode) { 128 if (!axNode) {
129 this._computedNameElement.classList.add("hidden"); 129 this._computedNameElement.classList.add("hidden");
130 treeOutline.element.classList.add("hidden"); 130 treeOutline.element.classList.add("hidden");
131 this._infoElement.classList.remove("hidden"); 131 this._infoElement.classList.remove("hidden");
132 return; 132 return;
133 } 133 }
134 this._computedNameElement.classList.remove("hidden"); 134 this._computedNameElement.classList.remove("hidden");
135 treeOutline.element.classList.remove("hidden"); 135 treeOutline.element.classList.remove("hidden");
136 this._infoElement.classList.add("hidden"); 136 this._infoElement.classList.add("hidden");
137 137
138 var target = this.parentView().parentView().node().target(); 138 var target = this.parentWidget().parentWidget().node().target();
139 139
140 this._computedNameElement.removeChildren(); 140 this._computedNameElement.removeChildren();
141 if (axNode.name && axNode.name.value) 141 if (axNode.name && axNode.name.value)
142 this._computedNameElement.textContent = axNode.name.value; 142 this._computedNameElement.textContent = axNode.name.value;
143 143
144 function addProperty(property) 144 function addProperty(property)
145 { 145 {
146 treeOutline.appendChild(new WebInspector.AXNodePropertyTreeElement(p roperty, target)); 146 treeOutline.appendChild(new WebInspector.AXNodePropertyTreeElement(p roperty, target));
147 } 147 }
148 148
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 WebInspector.AXNodePropertyTreeElement.TypeStyles = { 360 WebInspector.AXNodePropertyTreeElement.TypeStyles = {
361 boolean: "object-value-boolean", 361 boolean: "object-value-boolean",
362 booleanOrUndefined: "object-value-boolean", 362 booleanOrUndefined: "object-value-boolean",
363 tristate: "object-value-boolean", 363 tristate: "object-value-boolean",
364 number: "object-value-number", 364 number: "object-value-number",
365 integer: "object-value-number", 365 integer: "object-value-number",
366 string: "object-value-string", 366 string: "object-value-string",
367 role: "ax-role", 367 role: "ax-role",
368 internalRole: "ax-internal-role" 368 internalRole: "ax-internal-role"
369 }; 369 };
OLDNEW
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/front_end/audits/AuditsPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698