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

Side by Side Diff: ui/accessibility/ax_enums.idl

Issue 790003003: Exposed the invalid state of form controls to the accessibility APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed BrowserAccessibilityCocoa::AXInvalid. Created 6 years 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // Attributes that could apply to any node. 225 // Attributes that could apply to any node.
226 access_key, 226 access_key,
227 action, 227 action,
228 auto_complete, 228 auto_complete,
229 container_live_relevant, 229 container_live_relevant,
230 container_live_status, 230 container_live_status,
231 description, 231 description,
232 display, 232 display,
233 help, 233 help,
234 html_tag, 234 html_tag,
235 // Only used when invalid_state == invalid_state_other.
236 aria_invalid_value,
235 name, 237 name,
236 live_relevant, 238 live_relevant,
237 live_status, 239 live_status,
238 role, 240 role,
239 shortcut, 241 shortcut,
240 text_input_type, 242 text_input_type,
241 url, 243 url,
242 value 244 value
243 }; 245 };
244 246
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 color_value_green, 288 color_value_green,
287 color_value_blue, 289 color_value_blue,
288 290
289 // Inline text attributes. 291 // Inline text attributes.
290 text_direction, 292 text_direction,
291 293
292 // Uniquely identifies an AXTree. 294 // Uniquely identifies an AXTree.
293 tree_id, 295 tree_id,
294 296
295 // Identifies a child tree which this node hosts. 297 // Identifies a child tree which this node hosts.
296 child_tree_id 298 child_tree_id,
299
300 // Indicates if a form control has invalid input or
301 // if an element has an aria-invalid attribute.
302 invalid_state
297 }; 303 };
298 304
299 [cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute { 305 [cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute {
300 // Document attributes. 306 // Document attributes.
301 doc_loading_progress, 307 doc_loading_progress,
302 308
303 // Range attributes. 309 // Range attributes.
304 value_for_range, 310 value_for_range,
305 min_value_for_range, 311 min_value_for_range,
306 max_value_for_range 312 max_value_for_range
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 word_starts, 383 word_starts,
378 word_ends 384 word_ends
379 }; 385 };
380 386
381 [cpp_enum_prefix_override="ax"] enum AXTextDirection { 387 [cpp_enum_prefix_override="ax"] enum AXTextDirection {
382 text_direction_lr, 388 text_direction_lr,
383 text_direction_rl, 389 text_direction_rl,
384 text_direction_tb, 390 text_direction_tb,
385 text_direction_bt 391 text_direction_bt
386 }; 392 };
393
394 [cpp_enum_prefix_override="ax"] enum AXInvalidState {
395 invalid_state_false,
396 invalid_state_true,
397 invalid_state_spelling,
398 invalid_state_grammar,
399 invalid_state_other
400 };
401
387 }; 402 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698