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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js

Issue 2655393003: DevTools: Introduce ARIAUtils (Closed)
Patch Set: setAccessibleName in InspectorView Created 3 years, 10 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 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 this._showInheritedComputedStylePropertiesSetting = 45 this._showInheritedComputedStylePropertiesSetting =
46 Common.settings.createSetting('showInheritedComputedStyleProperties', fa lse); 46 Common.settings.createSetting('showInheritedComputedStyleProperties', fa lse);
47 this._showInheritedComputedStylePropertiesSetting.addChangeListener( 47 this._showInheritedComputedStylePropertiesSetting.addChangeListener(
48 this._showInheritedComputedStyleChanged.bind(this)); 48 this._showInheritedComputedStyleChanged.bind(this));
49 49
50 var hbox = this.element.createChild('div', 'hbox styles-sidebar-pane-toolbar '); 50 var hbox = this.element.createChild('div', 'hbox styles-sidebar-pane-toolbar ');
51 var filterContainerElement = hbox.createChild('div', 'styles-sidebar-pane-fi lter-box'); 51 var filterContainerElement = hbox.createChild('div', 'styles-sidebar-pane-fi lter-box');
52 var filterInput = Elements.StylesSidebarPane.createPropertyFilterElement( 52 var filterInput = Elements.StylesSidebarPane.createPropertyFilterElement(
53 Common.UIString('Filter'), hbox, filterCallback.bind(this)); 53 Common.UIString('Filter'), hbox, filterCallback.bind(this));
54 UI.ARIAUtils.setAccessibleName(filterInput, Common.UIString('Filter Computed Styles'));
54 filterContainerElement.appendChild(filterInput); 55 filterContainerElement.appendChild(filterInput);
55 56
56 var toolbar = new UI.Toolbar('styles-pane-toolbar', hbox); 57 var toolbar = new UI.Toolbar('styles-pane-toolbar', hbox);
57 toolbar.appendToolbarItem(new UI.ToolbarCheckbox( 58 toolbar.appendToolbarItem(new UI.ToolbarCheckbox(
58 Common.UIString('Show all'), undefined, this._showInheritedComputedStyle PropertiesSetting)); 59 Common.UIString('Show all'), undefined, this._showInheritedComputedStyle PropertiesSetting));
59 60
60 this._propertiesOutline = new UI.TreeOutlineInShadow(); 61 this._propertiesOutline = new UI.TreeOutlineInShadow();
61 this._propertiesOutline.hideOverflow(); 62 this._propertiesOutline.hideOverflow();
62 this._propertiesOutline.registerRequiredCSS('elements/computedStyleSidebarPa ne.css'); 63 this._propertiesOutline.registerRequiredCSS('elements/computedStyleSidebarPa ne.css');
63 this._propertiesOutline.element.classList.add('monospace', 'computed-propert ies'); 64 this._propertiesOutline.element.classList.add('monospace', 'computed-propert ies');
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 var property = child[Elements.ComputedStyleWidget._propertySymbol]; 339 var property = child[Elements.ComputedStyleWidget._propertySymbol];
339 var matched = !regex || regex.test(property.name) || regex.test(property.v alue); 340 var matched = !regex || regex.test(property.name) || regex.test(property.v alue);
340 child.hidden = !matched; 341 child.hidden = !matched;
341 } 342 }
342 } 343 }
343 }; 344 };
344 345
345 Elements.ComputedStyleWidget._maxLinkLength = 30; 346 Elements.ComputedStyleWidget._maxLinkLength = 30;
346 347
347 Elements.ComputedStyleWidget._propertySymbol = Symbol('property'); 348 Elements.ComputedStyleWidget._propertySymbol = Symbol('property');
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/BUILD.gn ('k') | third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698