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

Unified Diff: ui/accessibility/ax_enums.idl

Issue 1130733006: Adds color, font size, text direction and text styles to the accessibility tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt at exposing style info to the native APIs. 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
« no previous file with comments | « content/shell/renderer/test_runner/web_ax_object_proxy.cc ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_enums.idl
diff --git a/ui/accessibility/ax_enums.idl b/ui/accessibility/ax_enums.idl
index 43c9e4b15cdab928817dc4d01bbbfd364788af2d..0e72810122337aea7315f0954c272f05763220c7 100644
--- a/ui/accessibility/ax_enums.idl
+++ b/ui/accessibility/ax_enums.idl
@@ -299,14 +299,6 @@
title_ui_element,
activedescendant_id,
- // Color value for AX_ROLE_COLOR_WELL, each component is 0..255
- color_value_red,
- color_value_green,
- color_value_blue,
-
- // Inline text attributes.
- text_direction,
-
// Uniquely identifies an AXTree.
tree_id,
@@ -317,9 +309,25 @@
set_size,
pos_in_set,
+ // In the case of AX_ROLE_COLOR_WELL, specifies the selected color.
+ color_value,
+
+
+ // Text attributes.
+
+ // Foreground and background color in RGBA.
+ background_color,
+ color,
+
// Indicates if a form control has invalid input or
// if an element has an aria-invalid attribute.
- invalid_state
+ invalid_state,
+
+ // Specifies the direction of the text, e.g., right-to-left.
+ text_direction,
+
+ // Bold, italic, underline, etc.
+ text_style
};
[cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute {
@@ -329,7 +337,11 @@
// Range attributes.
value_for_range,
min_value_for_range,
- max_value_for_range
+ max_value_for_range,
+
+ // Text attributes.
+ // Font size is in pixels.
+ font_size
};
[cpp_enum_prefix_override="ax_attr"] enum AXBoolAttribute {
@@ -409,10 +421,17 @@
};
[cpp_enum_prefix_override="ax"] enum AXTextDirection {
- text_direction_lr,
- text_direction_rl,
- text_direction_tb,
- text_direction_bt
+ text_direction_ltr,
+ text_direction_rtl,
+ text_direction_ttb,
+ text_direction_btt
+ };
+
+ [cpp_enum_prefix_override="ax"] enum AXTextStyle {
+ text_style_bold,
+ text_style_italic,
+ text_style_underline,
+ text_style_line_through
};
[cpp_enum_prefix_override="ax"] enum AXInvalidState {
« no previous file with comments | « content/shell/renderer/test_runner/web_ax_object_proxy.cc ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698