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

Unified Diff: Source/devtools/front_end/accessibility/AccessibilityStrings.js

Issue 1156223002: Show human-readable names for accessibility properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: dmazzoni review comments 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/accessibility/AccessibilityStrings.js
diff --git a/Source/devtools/front_end/accessibility/AccessibilityStrings.js b/Source/devtools/front_end/accessibility/AccessibilityStrings.js
new file mode 100644
index 0000000000000000000000000000000000000000..0d18645e1bd660aa0c19c7e376ccf6d36b6997e7
--- /dev/null
+++ b/Source/devtools/front_end/accessibility/AccessibilityStrings.js
@@ -0,0 +1,161 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
pfeldman 2015/05/29 12:35:31 TIL: no (c) as per http://dev.chromium.org/develop
aboxhall 2015/05/29 15:33:42 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+WebInspector.AXAttributes = {
pfeldman 2015/05/29 12:35:31 Pleasr add a prefix matching the file name
aboxhall 2015/05/29 15:33:42 Done.
+ "disabled" : {
+ name : "Disabled",
+ description : "If true, this element currently cannot be interacted with.",
paulirish 2015/05/27 05:33:32 "Currently" always applies to these. The spec te
aboxhall 2015/05/27 18:22:33 I added "currently" to convey that it's a state ra
paulirish 2015/05/27 23:25:32 Yeah not a big deal. let's keep 'currently'
+ group : "AXGlobalStates"
+ },
+ "invalid" : {
+ name : "Invalid user entry",
+ description : "If true, this element's user-entered value does not conform to validation requirement.",
+ group : "AXGlobalStates"
+ },
+ "live" : {
+ name : "Live",
paulirish 2015/05/27 05:33:32 "Live region" since the rest are grouped under th
aboxhall 2015/05/27 18:22:33 Done.
+ description : "Whether and what type of live updates may be expected for this element.",
paulirish 2015/05/27 05:33:32 s/type/priority ? Whereas atomic is the flavor o
aboxhall 2015/05/27 18:22:33 Oh, good point. Done.
+ group : "AXLiveRegionAttributes"
+ },
+ "atomic" : {
+ name : "Atomic (Live Regions)",
+ description : "If this element may receive live updates, whether the entire live region should be presented to the user on changes.",
paulirish 2015/05/27 05:33:32 add to the end? "… or just the changed nodes."
aboxhall 2015/05/27 18:22:33 Done.
+ group : "AXLiveRegionAttributes"
+ },
+ "relevant" : {
+ name : "Relevant (Live Regions)",
+ description : "If this element may receive live updates, what type of updates should trigger a notification.",
paulirish 2015/05/27 05:33:32 Let's add the sort of updates? "…what type of upd
aboxhall 2015/05/27 18:22:33 Not sure about this. It will look something like:
paulirish 2015/05/27 23:25:32 Maybe, but as I'm personally quite new to this stu
aboxhall 2015/05/27 23:45:34 I really don't think this is the place to surface
paulirish 2015/05/27 23:51:55 ok
+ group : "AXLiveRegionAttributes"
+ },
+ "busy" : {
+ name : "Busy (Live Regions)",
+ description : "Whether this element or its subtree are currently being updated (and thus may be in an inconsistent state).",
+ group : "AXLiveRegionAttributes"
+ },
+ "root" : {
+ name : "Live region root",
+ description : "If this element may receive live updates, the root element of the containing live region.",
+ group : "AXLiveRegionAttributes"
+ },
+ "autocomplete" : {
+ name : "Has autocomplete",
+ description : "Whether and what type of autocomplete suggestions are currently provided by this element.",
+ group : "AXWidgetAttributes"
+ },
+ "haspopup" : {
+ name : "Has popup",
+ description : "Whether this element has caused some kind of pop-up (such as a menu) to appear.",
+ group : "AXWidgetAttributes"
+ },
+ "level" : {
+ name : "Level",
+ description : "The hierarchical level of this element.",
+ group : "AXWidgetAttributes"
+ },
+ "multiselectable" : {
+ name : "Multi-selectable",
+ description : "Whether a user may select more than one option from this widget.",
+ group : "AXWidgetAttributes"
+ },
+ "orientation" : {
+ name : "Orientation",
+ description : "Whether this linear element's orientation is horizontal or vertical.",
+ group : "AXWidgetAttributes"
+ },
+ "multiline" : {
+ name : "Multi-line",
+ description : "Whether this textbox may have more than one line.",
+ group : "AXWidgetAttributes"
+ },
+ "readonly" : {
+ name : "Read-only",
+ description : "If true, this element may be interacted with, but its value cannot be changed.",
+ group : "AXWidgetAttributes"
+ },
+ "required" : {
+ name : "Required",
+ description : "Whether this element is a required field in a form.",
paulirish 2015/05/27 05:33:32 "Whether an input value is required for this eleme
aboxhall 2015/05/27 18:22:33 I had something like that, and then I figured peop
paulirish 2015/05/27 23:25:32 I added this because I think developers are still
aboxhall 2015/05/27 23:45:34 They're not, though. This is just the semantic equ
paulirish 2015/05/27 23:51:55 You're telling me that we can end up with a comput
aboxhall 2015/05/27 23:55:43 Afraid so! Welcome to the wonderful world of seman
+ group : "AXWidgetAttributes"
+ },
+ "valuemin" : {
+ name : "Minimum value",
+ description : "For a range widget, the minimum possible value.",
paulirish 2015/05/27 05:33:32 for this and the next, s/possible/allowed/
aboxhall 2015/05/27 18:22:33 Done.
+ group : "AXWidgetAttributes"
+ },
+ "valuemax" : {
+ name : "Maximum value",
+ description : "For a range widget, the maximum possible value.",
+ group : "AXWidgetAttributes"
+ },
+ "valuetext" : {
+ name : "Value description",
+ description : "A human-readable version of the value of a range widget (where necessary).",
+ group : "AXWidgetAttributes"
+ },
+ "checked" : {
+ name : "Checked",
+ description : "Whether this checkbox, radio button or tree item is checked, unchecked, or mixed (e.g. has both checked and un-checked children).",
+ group : "AXWidgetStates"
+ },
+ "expanded" : {
+ name : "Expanded",
+ description : "Whether this element, or another grouping element it controls, is expanded.",
+ group : "AXWidgetStates"
+ },
+ "pressed" : {
+ name : "Pressed",
+ description : "Whether this toggle button is currently in a pressed state.",
+ group : "AXWidgetStates"
+ },
+ "selected" : {
+ name : "Selected",
+ description : "Whether the option represented by this element is currently selected.",
+ group : "AXWidgetStates"
+ },
+ "activedescendant" : {
+ name : "Active descendant",
+ description : "The descendant of this element which is active; i.e. the element to which focus should be delegated.",
+ group : "AXRelationshipAttributes"
+ },
+ "flowto" : {
+ name : "Flows to",
+ description : "Element to which the user may choose to navigate after this one, instead of the next element in the DOM order.",
+ group : "AXRelationshipAttributes"
+ },
+ "controls" : {
+ name : "Controls",
+ description : "Element or elements whose content or presence is/are controlled by this widget.",
+ group : "AXRelationshipAttributes"
+ },
+ "describedby" : {
+ name : "Described by",
+ description : "Element or elements which form the description of this element.",
+ group : "AXRelationshipAttributes"
+ },
+ "labelledby" : {
+ name : "Labeled by",
+ description : "Element or elements which may form the name of this element.",
+ group : "AXRelationshipAttributes"
+ },
+ "owns" : {
+ name : "Owns",
+ description : "Element or elements which should be considered descendants of this element, despite not being descendants in the DOM.",
+ group : "AXRelationshipAttributes"
+ },
+ "name": {
+ name : "Name",
+ description : "The computed name of this element.",
+ group : "Computed"
+ },
+ "role": {
+ name: "Role",
+ description: "The role of this element.",
paulirish 2015/05/27 05:33:32 Can we offer a tad more than this? My attempt: "T
aboxhall 2015/05/27 18:22:33 Yeah, I wrote these three in a hurry :) My attempt
paulirish 2015/05/27 23:25:32 Perfekt.
+ group: "Computed"
+ },
+ "value": {
+ name: "Value",
+ description: "The value of this element.",
paulirish 2015/05/27 05:33:32 "The value of this element, which may be a boolean
aboxhall 2015/05/27 18:22:33 Again, when its actual value is right next to the
paulirish 2015/05/27 23:25:31 Would rather see "developer" instead of "author".
aboxhall 2015/05/27 23:45:35 Totally agreed re: defining value (hence why I kin
+ group: "Computed"
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698