OLD | NEW |
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 // TODO(nektar): Migrate entire file to Mojoq. | 5 // TODO(nektar): Migrate entire file to Mojoq. |
6 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h | 6 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h |
7 // until the Chromium and Blink trees are merged. | 7 // until the Chromium and Blink trees are merged. |
8 [camel_case_enum_to_string=true] namespace ui { | 8 [camel_case_enum_to_string=true] namespace ui { |
9 | 9 |
10 // For new entries to the following four enums, also add to | 10 // For new entries to the following four enums, also add to |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 required, | 230 required, |
231 richly_editable, | 231 richly_editable, |
232 selectable, | 232 selectable, |
233 selected, | 233 selected, |
234 // Grows vertically, e.g. menu or combo box. | 234 // Grows vertically, e.g. menu or combo box. |
235 vertical, | 235 vertical, |
236 visited | 236 visited |
237 }; | 237 }; |
238 | 238 |
239 // An action to be taken on an accessibility node. | 239 // An action to be taken on an accessibility node. |
| 240 // In contrast to |AXSupportedAction|, these describe what happens to the |
| 241 // object, e.g. "FOCUS". |
240 enum AXAction { | 242 enum AXAction { |
241 blur, | 243 blur, |
242 | 244 |
243 // Decrement a slider or range control by one step value. | 245 // Decrement a slider or range control by one step value. |
244 decrement, | 246 decrement, |
245 | 247 |
246 // Do the default action for an object, typically this means "click". | 248 // Do the default action for an object, typically this means "click". |
247 do_default, | 249 do_default, |
248 | 250 |
249 focus, | 251 focus, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 set_value, | 287 set_value, |
286 | 288 |
287 show_context_menu | 289 show_context_menu |
288 }; | 290 }; |
289 | 291 |
290 enum AXActionFlags { | 292 enum AXActionFlags { |
291 request_images, | 293 request_images, |
292 request_inline_text_boxes | 294 request_inline_text_boxes |
293 }; | 295 }; |
294 | 296 |
| 297 // Lists the actions that can be performed on a given node. |
| 298 // In contrast to |AXAction|, these describe what the user can do on the |
| 299 // object, e.g. "PRESS", not what happens to the object as a result. |
| 300 // Only one action is supported for now. |
| 301 enum AXSupportedAction { |
| 302 activate, |
| 303 check, |
| 304 click, |
| 305 jump, |
| 306 open, |
| 307 press, |
| 308 select, |
| 309 uncheck |
| 310 }; |
| 311 |
295 // A change to the accessibility tree. | 312 // A change to the accessibility tree. |
296 enum AXMutation { | 313 enum AXMutation { |
297 node_created, | 314 node_created, |
298 subtree_created, | 315 subtree_created, |
299 node_changed, | 316 node_changed, |
300 node_removed | 317 node_removed |
301 }; | 318 }; |
302 | 319 |
303 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute { | 320 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute { |
304 access_key, | 321 access_key, |
305 action, | |
306 // Only used when invalid_state == invalid_state_other. | 322 // Only used when invalid_state == invalid_state_other. |
307 aria_invalid_value, | 323 aria_invalid_value, |
308 auto_complete, | 324 auto_complete, |
309 container_live_relevant, | 325 container_live_relevant, |
310 container_live_status, | 326 container_live_status, |
311 description, | 327 description, |
312 display, | 328 display, |
313 // Only present when different from parent. | 329 // Only present when different from parent. |
314 font_family, | 330 font_family, |
315 html_tag, | 331 html_tag, |
316 image_data_url, | 332 image_data_url, |
317 // Only present when different from parent. | 333 // Only present when different from parent. |
318 language, | 334 language, |
319 name, | 335 name, |
320 live_relevant, | 336 live_relevant, |
321 live_status, | 337 live_status, |
322 placeholder, | 338 placeholder, |
323 role, | 339 role, |
324 shortcut, | 340 shortcut, |
325 url, | 341 url, |
326 value | 342 value |
327 }; | 343 }; |
328 | 344 |
329 [cpp_enum_prefix_override="ax_attr"] enum AXIntAttribute { | 345 [cpp_enum_prefix_override="ax_attr"] enum AXIntAttribute { |
| 346 action, |
330 // Scrollable container attributes. | 347 // Scrollable container attributes. |
331 scroll_x, | 348 scroll_x, |
332 scroll_x_min, | 349 scroll_x_min, |
333 scroll_x_max, | 350 scroll_x_max, |
334 scroll_y, | 351 scroll_y, |
335 scroll_y_min, | 352 scroll_y_min, |
336 scroll_y_max, | 353 scroll_y_max, |
337 | 354 |
338 // Attributes for retrieving the endpoints of a selection. | 355 // Attributes for retrieving the endpoints of a selection. |
339 text_sel_start, | 356 text_sel_start, |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 // First node is before the second one. | 635 // First node is before the second one. |
619 before, | 636 before, |
620 | 637 |
621 // Nodes are the same. | 638 // Nodes are the same. |
622 equal, | 639 equal, |
623 | 640 |
624 // First node is after the second one. | 641 // First node is after the second one. |
625 after | 642 after |
626 }; | 643 }; |
627 }; | 644 }; |
OLD | NEW |