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

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

Issue 2863703003: A11y: Rename AXSupportedAction to AXDefaultActionVerb. (Closed)
Patch Set: Rebase. Created 3 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 // 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 required, 234 required,
235 richly_editable, 235 richly_editable,
236 selectable, 236 selectable,
237 selected, 237 selected,
238 // Grows vertically, e.g. menu or combo box. 238 // Grows vertically, e.g. menu or combo box.
239 vertical, 239 vertical,
240 visited 240 visited
241 }; 241 };
242 242
243 // An action to be taken on an accessibility node. 243 // An action to be taken on an accessibility node.
244 // In contrast to |AXSupportedAction|, these describe what happens to the 244 // In contrast to |AXDefaultActionVerb|, these describe what happens to the
245 // object, e.g. "FOCUS". 245 // object, e.g. "FOCUS".
246 enum AXAction { 246 enum AXAction {
247 blur, 247 blur,
248 248
249 // Decrement a slider or range control by one step value. 249 // Decrement a slider or range control by one step value.
250 decrement, 250 decrement,
251 251
252 // Do the default action for an object, typically this means "click". 252 // Do the default action for an object, typically this means "click".
253 do_default, 253 do_default,
254 254
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 set_value, 291 set_value,
292 292
293 show_context_menu 293 show_context_menu
294 }; 294 };
295 295
296 enum AXActionFlags { 296 enum AXActionFlags {
297 request_images, 297 request_images,
298 request_inline_text_boxes 298 request_inline_text_boxes
299 }; 299 };
300 300
301 // Lists the actions that can be performed on a given node. 301 // A list of valid values for the |AXIntAttribute| |default_action_verb|.
302 // These will describe the action that will be performed on a given node when
303 // executing the default action, which is a click.
302 // In contrast to |AXAction|, these describe what the user can do on the 304 // In contrast to |AXAction|, these describe what the user can do on the
303 // object, e.g. "PRESS", not what happens to the object as a result. 305 // object, e.g. "PRESS", not what happens to the object as a result.
304 // Only one action is supported for now. 306 // Only one verb can be used at a time to describe the default action.
305 enum AXSupportedAction { 307 enum AXDefaultActionVerb {
306 activate, 308 activate,
307 check, 309 check,
308 click, 310 click,
309 jump, 311 jump,
310 open, 312 open,
311 press, 313 press,
312 select, 314 select,
313 uncheck 315 uncheck
314 }; 316 };
315 317
(...skipping 28 matching lines...) Expand all
344 live_status, 346 live_status,
345 placeholder, 347 placeholder,
346 role, 348 role,
347 role_description, 349 role_description,
348 shortcut, 350 shortcut,
349 url, 351 url,
350 value 352 value
351 }; 353 };
352 354
353 [cpp_enum_prefix_override="ax_attr"] enum AXIntAttribute { 355 [cpp_enum_prefix_override="ax_attr"] enum AXIntAttribute {
354 action, 356 default_action_verb,
355 // Scrollable container attributes. 357 // Scrollable container attributes.
356 scroll_x, 358 scroll_x,
357 scroll_x_min, 359 scroll_x_min,
358 scroll_x_max, 360 scroll_x_max,
359 scroll_y, 361 scroll_y,
360 scroll_y_min, 362 scroll_y_min,
361 scroll_y_max, 363 scroll_y_max,
362 364
363 // Attributes for retrieving the endpoints of a selection. 365 // Attributes for retrieving the endpoints of a selection.
364 text_sel_start, 366 text_sel_start,
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 // First node is before the second one. 664 // First node is before the second one.
663 before, 665 before,
664 666
665 // Nodes are the same. 667 // Nodes are the same.
666 equal, 668 equal,
667 669
668 // First node is after the second one. 670 // First node is after the second one.
669 after 671 after
670 }; 672 };
671 }; 673 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698