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

Side by Side Diff: ui/accessibility/ax_action_data.h

Issue 2873373005: Add custom action support (Closed)
Patch Set: Migrate to DataObjectBuilder. Created 3 years, 6 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 | « third_party/closure_compiler/externs/automation.js ('k') | ui/accessibility/ax_action_data.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef UI_ACCESSIBILITY_AX_ACTION_DATA_H_ 5 #ifndef UI_ACCESSIBILITY_AX_ACTION_DATA_H_
6 #define UI_ACCESSIBILITY_AX_ACTION_DATA_H_ 6 #define UI_ACCESSIBILITY_AX_ACTION_DATA_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "ui/accessibility/ax_enums.h" 9 #include "ui/accessibility/ax_enums.h"
10 #include "ui/accessibility/ax_export.h" 10 #include "ui/accessibility/ax_export.h"
(...skipping 27 matching lines...) Expand all
38 int flags; 38 int flags;
39 39
40 // For an action that creates a selection, the selection anchor and focus 40 // For an action that creates a selection, the selection anchor and focus
41 // (see ax_tree_data.h for definitions). 41 // (see ax_tree_data.h for definitions).
42 int anchor_node_id; 42 int anchor_node_id;
43 int anchor_offset; 43 int anchor_offset;
44 44
45 int focus_node_id; 45 int focus_node_id;
46 int focus_offset; 46 int focus_offset;
47 47
48 // For custom action.
49 int custom_action_id;
50
48 // The target rect for the action. 51 // The target rect for the action.
49 gfx::Rect target_rect; 52 gfx::Rect target_rect;
50 53
51 // The target point for the action. 54 // The target point for the action.
52 gfx::Point target_point; 55 gfx::Point target_point;
53 56
54 // The new value for a node, for the SET_VALUE action. 57 // The new value for a node, for the SET_VALUE action.
55 base::string16 value; 58 base::string16 value;
56 59
57 // The event to fire in response to a HIT_TEST action. 60 // The event to fire in response to a HIT_TEST action.
58 AXEvent hit_test_event_to_fire; 61 AXEvent hit_test_event_to_fire;
59 }; 62 };
60 63
61 } // namespace ui 64 } // namespace ui
62 65
63 #endif // UI_ACCESSIBILITY_AX_ACTION_DATA_H_ 66 #endif // UI_ACCESSIBILITY_AX_ACTION_DATA_H_
OLDNEW
« no previous file with comments | « third_party/closure_compiler/externs/automation.js ('k') | ui/accessibility/ax_action_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698