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

Side by Side 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: Fixed compilation error. 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h 5 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h
6 // until the Chromium and Blink trees are merged. 6 // until the Chromium and Blink trees are merged.
7 [camel_case_enum_to_string=true] namespace ui { 7 [camel_case_enum_to_string=true] namespace ui {
8 8
9 // For new entries to the following three enums, also add to 9 // For new entries to the following three enums, also add to
10 // chrome/common/extensions/api/automation.idl. 10 // chrome/common/extensions/api/automation.idl.
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 table_cell_row_span, 292 table_cell_row_span,
293 sort_direction, 293 sort_direction,
294 294
295 // Tree control attributes. 295 // Tree control attributes.
296 hierarchical_level, 296 hierarchical_level,
297 297
298 // Relationships between this element and other elements. 298 // Relationships between this element and other elements.
299 title_ui_element, 299 title_ui_element,
300 activedescendant_id, 300 activedescendant_id,
301 301
302 // Color value for AX_ROLE_COLOR_WELL, each component is 0..255
303 color_value_red,
304 color_value_green,
305 color_value_blue,
306
307 // Inline text attributes.
308 text_direction,
309
310 // Uniquely identifies an AXTree. 302 // Uniquely identifies an AXTree.
311 tree_id, 303 tree_id,
312 304
313 // Identifies a child tree which this node hosts. 305 // Identifies a child tree which this node hosts.
314 child_tree_id, 306 child_tree_id,
315 307
316 // Position or Number of items in current set of listitems or treeitems 308 // Position or Number of items in current set of listitems or treeitems
317 set_size, 309 set_size,
318 pos_in_set, 310 pos_in_set,
319 311
312 // In the case of AX_ROLE_COLOR_WELL, specifies the selected color.
313 color_value,
314
315
316 // Text attributes.
317
318 // Foreground and background color in RGBA.
319 background_color,
320 color,
321
320 // Indicates if a form control has invalid input or 322 // Indicates if a form control has invalid input or
321 // if an element has an aria-invalid attribute. 323 // if an element has an aria-invalid attribute.
322 invalid_state 324 invalid_state,
325
326 // Specifies the direction of the text, e.g., right-to-left.
327 text_direction,
328
329 // Bold, italic, underline, etc.
330 text_style
323 }; 331 };
324 332
325 [cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute { 333 [cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute {
326 // Document attributes. 334 // Document attributes.
327 doc_loading_progress, 335 doc_loading_progress,
328 336
329 // Range attributes. 337 // Range attributes.
330 value_for_range, 338 value_for_range,
331 min_value_for_range, 339 min_value_for_range,
332 max_value_for_range 340 max_value_for_range,
341
342 // Text attributes.
343 font_size // In pixels.
333 }; 344 };
334 345
335 [cpp_enum_prefix_override="ax_attr"] enum AXBoolAttribute { 346 [cpp_enum_prefix_override="ax_attr"] enum AXBoolAttribute {
336 // Document attributes. 347 // Document attributes.
337 doc_loaded, 348 doc_loaded,
338 349
339 // True if a checkbox or radio button is in the "mixed" state. 350 // True if a checkbox or radio button is in the "mixed" state.
340 button_mixed, 351 button_mixed,
341 352
342 // Live region attributes. 353 // Live region attributes.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 // of the second character, and so on. 413 // of the second character, and so on.
403 character_offsets, 414 character_offsets,
404 415
405 // For inline text. These int lists must be the same size; they represent 416 // For inline text. These int lists must be the same size; they represent
406 // the start and end character index of each word within this text. 417 // the start and end character index of each word within this text.
407 word_starts, 418 word_starts,
408 word_ends 419 word_ends
409 }; 420 };
410 421
411 [cpp_enum_prefix_override="ax"] enum AXTextDirection { 422 [cpp_enum_prefix_override="ax"] enum AXTextDirection {
412 text_direction_lr, 423 text_direction_ltr,
413 text_direction_rl, 424 text_direction_rtl,
414 text_direction_tb, 425 text_direction_ttb,
415 text_direction_bt 426 text_direction_btt
427 };
428
429 [cpp_enum_prefix_override="ax"] enum AXTextStyle {
430 text_style_bold,
431 text_style_italic,
432 text_style_underline,
433 text_style_line_through
416 }; 434 };
417 435
418 [cpp_enum_prefix_override="ax"] enum AXInvalidState { 436 [cpp_enum_prefix_override="ax"] enum AXInvalidState {
419 invalid_state_false, 437 invalid_state_false,
420 invalid_state_true, 438 invalid_state_true,
421 invalid_state_spelling, 439 invalid_state_spelling,
422 invalid_state_grammar, 440 invalid_state_grammar,
423 invalid_state_other 441 invalid_state_other
424 }; 442 };
425 443
426 [cpp_enum_prefix_override="ax"] enum AXSortDirection { 444 [cpp_enum_prefix_override="ax"] enum AXSortDirection {
427 sort_direction_unsorted, 445 sort_direction_unsorted,
428 sort_direction_ascending, 446 sort_direction_ascending,
429 sort_direction_descending, 447 sort_direction_descending,
430 sort_direction_other 448 sort_direction_other
431 }; 449 };
432 450
433 }; 451 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698