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

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

Issue 2518183002: Moved action verbs out of Blink. (Closed)
Patch Set: Added activate action to text field. Created 4 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 // 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
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 obje ct, e.g. "FOCUS".
dmazzoni 2016/12/13 23:24:34 nit: wrap
240 enum AXAction { 241 enum AXAction {
241 blur, 242 blur,
242 243
243 // Decrement a slider or range control by one step value. 244 // Decrement a slider or range control by one step value.
244 decrement, 245 decrement,
245 246
246 // Do the default action for an object, typically this means "click". 247 // Do the default action for an object, typically this means "click".
247 do_default, 248 do_default,
248 249
249 focus, 250 focus,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 set_value, 286 set_value,
286 287
287 show_context_menu 288 show_context_menu
288 }; 289 };
289 290
290 enum AXActionFlags { 291 enum AXActionFlags {
291 request_images, 292 request_images,
292 request_inline_text_boxes 293 request_inline_text_boxes
293 }; 294 };
294 295
296 // Lists the actions that can be performed on a given node.
297 // In contrast to |AXAction|, these describe what the user can do on the objec t, e.g. "PRESS", not what happens to the object as a result.
dmazzoni 2016/12/13 23:24:34 nit: wrap
298 // Only one action is supported for now.
299 enum AXSupportedAction {
300 activate,
301 check,
302 click,
303 jump,
304 open,
305 press,
306 select,
307 uncheck
308 };
309
295 // A change to the accessibility tree. 310 // A change to the accessibility tree.
296 enum AXMutation { 311 enum AXMutation {
297 node_created, 312 node_created,
298 subtree_created, 313 subtree_created,
299 node_changed, 314 node_changed,
300 node_removed 315 node_removed
301 }; 316 };
302 317
303 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute { 318 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute {
304 access_key, 319 access_key,
305 action,
306 // Only used when invalid_state == invalid_state_other. 320 // Only used when invalid_state == invalid_state_other.
307 aria_invalid_value, 321 aria_invalid_value,
308 auto_complete, 322 auto_complete,
309 container_live_relevant, 323 container_live_relevant,
310 container_live_status, 324 container_live_status,
311 description, 325 description,
312 display, 326 display,
313 // Only present when different from parent. 327 // Only present when different from parent.
314 font_family, 328 font_family,
315 html_tag, 329 html_tag,
316 image_data_url, 330 image_data_url,
317 // Only present when different from parent. 331 // Only present when different from parent.
318 language, 332 language,
319 name, 333 name,
320 live_relevant, 334 live_relevant,
321 live_status, 335 live_status,
322 placeholder, 336 placeholder,
323 role, 337 role,
324 shortcut, 338 shortcut,
325 url, 339 url,
326 value 340 value
327 }; 341 };
328 342
329 [cpp_enum_prefix_override="ax_attr"] enum AXIntAttribute { 343 [cpp_enum_prefix_override="ax_attr"] enum AXIntAttribute {
344 action,
330 // Scrollable container attributes. 345 // Scrollable container attributes.
331 scroll_x, 346 scroll_x,
332 scroll_x_min, 347 scroll_x_min,
333 scroll_x_max, 348 scroll_x_max,
334 scroll_y, 349 scroll_y,
335 scroll_y_min, 350 scroll_y_min,
336 scroll_y_max, 351 scroll_y_max,
337 352
338 // Attributes for retrieving the endpoints of a selection. 353 // Attributes for retrieving the endpoints of a selection.
339 text_sel_start, 354 text_sel_start,
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 // First node is before the second one. 633 // First node is before the second one.
619 before, 634 before,
620 635
621 // Nodes are the same. 636 // Nodes are the same.
622 equal, 637 equal,
623 638
624 // First node is after the second one. 639 // First node is after the second one.
625 after 640 after
626 }; 641 };
627 }; 642 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698