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

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

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 years, 1 month 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
« no previous file with comments | « ui/accessibility/BUILD.gn ('k') | ui/accessibility/ax_node_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 232
233 // An action to be taken on an accessibility node. 233 // An action to be taken on an accessibility node.
234 enum AXAction { 234 enum AXAction {
235 // Do the default action for an object, typically this means "click". 235 // Do the default action for an object, typically this means "click".
236 do_default, 236 do_default,
237 237
238 // Given a point, find the object it corresponds to and fire a 238 // Given a point, find the object it corresponds to and fire a
239 // HOVER event on it in response. 239 // HOVER event on it in response.
240 hit_test, 240 hit_test,
241 241
242 // Delete any selected text in the control's text value and
243 // insert |AXActionData::value| in its place, like when typing or pasting.
244 replace_selected_text,
245
242 // Scroll any scrollable containers to make the target object visible 246 // Scroll any scrollable containers to make the target object visible
243 // on the screen. Optionally pass a subfocus rect in 247 // on the screen. Optionally pass a subfocus rect in
244 // AXActionData.target_rect. 248 // AXActionData.target_rect.
245 scroll_to_make_visible, 249 scroll_to_make_visible,
246 250
247 // Scroll the given object to a specified point on the screen in 251 // Scroll the given object to a specified point on the screen in
248 // global screen coordinates. Pass a point in AXActionData.target_point. 252 // global screen coordinates. Pass a point in AXActionData.target_point.
249 scroll_to_point, 253 scroll_to_point,
250 254
251 set_accessibility_focus, 255 set_accessibility_focus,
252 set_focus, 256 set_focus,
253 set_scroll_offset, 257 set_scroll_offset,
254 set_selection, 258 set_selection,
255 259
256 // Don't focus this node, but set it as the sequential focus navigation 260 // Don't focus this node, but set it as the sequential focus navigation
257 // starting point, so that pressing Tab moves to the next element 261 // starting point, so that pressing Tab moves to the next element
258 // following this one, for example. 262 // following this one, for example.
259 set_sequential_focus_navigation_starting_point, 263 set_sequential_focus_navigation_starting_point,
260 264
265 // Replace the value of the control with AXActionData::value and
266 // reset the selection, if applicable.
261 set_value, 267 set_value,
268
262 show_context_menu 269 show_context_menu
263 }; 270 };
264 271
265 enum AXActionFlags { 272 enum AXActionFlags {
266 request_images, 273 request_images,
267 request_inline_text_boxes 274 request_inline_text_boxes
268 }; 275 };
269 276
270 // A change to the accessibility tree. 277 // A change to the accessibility tree.
271 enum AXMutation { 278 enum AXMutation {
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 // First node is before the second one. 594 // First node is before the second one.
588 before, 595 before,
589 596
590 // Nodes are the same. 597 // Nodes are the same.
591 equal, 598 equal,
592 599
593 // First node is after the second one. 600 // First node is after the second one.
594 after 601 after
595 }; 602 };
596 }; 603 };
OLDNEW
« no previous file with comments | « ui/accessibility/BUILD.gn ('k') | ui/accessibility/ax_node_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698