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

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

Issue 2474363002: MacViews/a11y: Accessibility actions use AXActionData in AXPlatformNodeDelegate. (Closed)
Patch Set: Review comments. 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 richly_editable, 225 richly_editable,
226 selectable, 226 selectable,
227 selected, 227 selected,
228 // Grows vertically, e.g. menu or combo box. 228 // Grows vertically, e.g. menu or combo box.
229 vertical, 229 vertical,
230 visited 230 visited
231 }; 231 };
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 blur,
236
235 // Decrement a slider or range control by one step value. 237 // Decrement a slider or range control by one step value.
236 decrement, 238 decrement,
237 239
238 // Do the default action for an object, typically this means "click". 240 // Do the default action for an object, typically this means "click".
239 do_default, 241 do_default,
240 242
243 focus,
244
241 // Given a point, find the object it corresponds to and fire a 245 // Given a point, find the object it corresponds to and fire a
242 // HOVER event on it in response. 246 // HOVER event on it in response.
243 hit_test, 247 hit_test,
244 248
245 // Increment a slider or range control by one step value. 249 // Increment a slider or range control by one step value.
246 increment, 250 increment,
247 251
248 // Delete any selected text in the control's text value and 252 // Delete any selected text in the control's text value and
249 // insert |AXActionData::value| in its place, like when typing or pasting. 253 // insert |AXActionData::value| in its place, like when typing or pasting.
250 replace_selected_text, 254 replace_selected_text,
251 255
252 // Scroll any scrollable containers to make the target object visible 256 // Scroll any scrollable containers to make the target object visible
253 // on the screen. Optionally pass a subfocus rect in 257 // on the screen. Optionally pass a subfocus rect in
254 // AXActionData.target_rect. 258 // AXActionData.target_rect.
255 scroll_to_make_visible, 259 scroll_to_make_visible,
256 260
257 // Scroll the given object to a specified point on the screen in 261 // Scroll the given object to a specified point on the screen in
258 // global screen coordinates. Pass a point in AXActionData.target_point. 262 // global screen coordinates. Pass a point in AXActionData.target_point.
259 scroll_to_point, 263 scroll_to_point,
260 264
261 set_accessibility_focus, 265 set_accessibility_focus,
262 set_focus,
263 set_scroll_offset, 266 set_scroll_offset,
264 set_selection, 267 set_selection,
265 268
266 // Don't focus this node, but set it as the sequential focus navigation 269 // Don't focus this node, but set it as the sequential focus navigation
267 // starting point, so that pressing Tab moves to the next element 270 // starting point, so that pressing Tab moves to the next element
268 // following this one, for example. 271 // following this one, for example.
269 set_sequential_focus_navigation_starting_point, 272 set_sequential_focus_navigation_starting_point,
270 273
271 // Replace the value of the control with AXActionData::value and 274 // Replace the value of the control with AXActionData::value and
272 // reset the selection, if applicable. 275 // reset the selection, if applicable.
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 // First node is before the second one. 603 // First node is before the second one.
601 before, 604 before,
602 605
603 // Nodes are the same. 606 // Nodes are the same.
604 equal, 607 equal,
605 608
606 // First node is after the second one. 609 // First node is after the second one.
607 after 610 after
608 }; 611 };
609 }; 612 };
OLDNEW
« no previous file with comments | « content/renderer/accessibility/render_accessibility_impl.cc ('k') | ui/accessibility/platform/ax_platform_node_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698