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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.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, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 /** 106 /**
107 * @return {!Element} 107 * @return {!Element}
108 */ 108 */
109 _createStylesSidebarToolbar() { 109 _createStylesSidebarToolbar() {
110 var container = createElementWithClass('div', 'styles-sidebar-pane-toolbar-c ontainer'); 110 var container = createElementWithClass('div', 'styles-sidebar-pane-toolbar-c ontainer');
111 var hbox = container.createChild('div', 'hbox styles-sidebar-pane-toolbar'); 111 var hbox = container.createChild('div', 'hbox styles-sidebar-pane-toolbar');
112 var filterContainerElement = hbox.createChild('div', 'styles-sidebar-pane-fi lter-box'); 112 var filterContainerElement = hbox.createChild('div', 'styles-sidebar-pane-fi lter-box');
113 var filterInput = Elements.StylesSidebarPane.createPropertyFilterElement( 113 var filterInput = Elements.StylesSidebarPane.createPropertyFilterElement(
114 Common.UIString('Filter'), hbox, this._stylesWidget.onFilterChanged.bind (this._stylesWidget)); 114 Common.UIString('Filter'), hbox, this._stylesWidget.onFilterChanged.bind (this._stylesWidget));
115 UI.ARIAUtils.setAccessibleName(filterInput, Common.UIString('Filter Styles') );
115 filterContainerElement.appendChild(filterInput); 116 filterContainerElement.appendChild(filterInput);
116 var toolbar = new UI.Toolbar('styles-pane-toolbar', hbox); 117 var toolbar = new UI.Toolbar('styles-pane-toolbar', hbox);
117 toolbar.makeToggledGray(); 118 toolbar.makeToggledGray();
118 toolbar.appendLocationItems('styles-sidebarpane-toolbar'); 119 toolbar.appendLocationItems('styles-sidebarpane-toolbar');
119 var toolbarPaneContainer = container.createChild('div', 'styles-sidebar-tool bar-pane-container'); 120 var toolbarPaneContainer = container.createChild('div', 'styles-sidebar-tool bar-pane-container');
120 this._toolbarPaneElement = createElementWithClass('div', 'styles-sidebar-too lbar-pane'); 121 this._toolbarPaneElement = createElementWithClass('div', 'styles-sidebar-too lbar-pane');
121 toolbarPaneContainer.appendChild(this._toolbarPaneElement); 122 toolbarPaneContainer.appendChild(this._toolbarPaneElement);
122 return container; 123 return container;
123 } 124 }
124 125
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 * @param {!SDK.DOMNode} node 1059 * @param {!SDK.DOMNode} node
1059 * @return {?{title: string, color: string}} 1060 * @return {?{title: string, color: string}}
1060 */ 1061 */
1061 decorate(node) { 1062 decorate(node) {
1062 return { 1063 return {
1063 color: 'orange', 1064 color: 'orange',
1064 title: Common.UIString('Element state: %s', ':' + SDK.CSSModel.fromNode(no de).pseudoState(node).join(', :')) 1065 title: Common.UIString('Element state: %s', ':' + SDK.CSSModel.fromNode(no de).pseudoState(node).join(', :'))
1065 }; 1066 };
1066 } 1067 }
1067 }; 1068 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698