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

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

Issue 2430473003: Revert of Create AXAction and AXActionData as a way to simplify accessibility actions (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « ui/accessibility/ax_action_data.cc ('k') | no next file » | 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 three enums, also add to
11 // chrome/common/extensions/api/automation.idl. This is enforced 11 // chrome/common/extensions/api/automation.idl. This is enforced
12 // by a PRESUBMIT check. 12 // by a PRESUBMIT check.
13 // 13 //
14 // Explanation of the comments next to these events: 14 // Explanation of the comments next to these events:
15 // 15 //
16 // Web: this event is only used in web content. Unless a specific platform 16 // Web: this event is only used in web content. Unless a specific platform
17 // is specified, it fires a native event on multiple platforms. 17 // is specified, it fires a native event on multiple platforms.
18 // 18 //
19 // Native: this event is only used in native UI. 19 // Native: this event is only used in native UI.
20 // 20 //
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 protected, 221 protected,
222 read_only, 222 read_only,
223 required, 223 required,
224 richly_editable, 224 richly_editable,
225 selectable, 225 selectable,
226 selected, 226 selected,
227 vertical, 227 vertical,
228 visited 228 visited
229 }; 229 };
230 230
231 // An action to be taken on an accessibility node.
232 enum AXAction {
233 // Do the default action for an object, typically this means "click".
234 do_default,
235
236 // Given a point, find the object it corresponds to and fire a
237 // HOVER event on it in response.
238 hit_test,
239
240 // Scroll any scrollable containers to make the target object visible
241 // on the screen. Optionally pass a subfocus rect in
242 // AXActionData.target_rect.
243 scroll_to_make_visible,
244
245 // Scroll the given object to a specified point on the screen in
246 // global screen coordinates. Pass a point in AXActionData.target_point.
247 scroll_to_point,
248
249 set_accessibility_focus,
250 set_focus,
251 set_scroll_offset,
252 set_selection,
253 set_value,
254 show_context_menu
255 };
256
257 enum AXActionFlags {
258 request_images,
259 request_inline_text_boxes,
260 set_sequential_focus_navigation_point
261 };
262
263 // A change to the accessibility tree. 231 // A change to the accessibility tree.
264 enum AXMutation { 232 enum AXMutation {
265 node_created, 233 node_created,
266 subtree_created, 234 subtree_created,
267 node_changed, 235 node_changed,
268 node_removed 236 node_removed
269 }; 237 };
270 238
271 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute { 239 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute {
272 access_key, 240 access_key,
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 // First node is before the second one. 548 // First node is before the second one.
581 before, 549 before,
582 550
583 // Nodes are the same. 551 // Nodes are the same.
584 equal, 552 equal,
585 553
586 // First node is after the second one. 554 // First node is after the second one.
587 after 555 after
588 }; 556 };
589 }; 557 };
OLDNEW
« no previous file with comments | « ui/accessibility/ax_action_data.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698