OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |