| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TREE_UPDATE_H_ | 5 #ifndef UI_ACCESSIBILITY_AX_TREE_UPDATE_H_ |
| 6 #define UI_ACCESSIBILITY_AX_TREE_UPDATE_H_ | 6 #define UI_ACCESSIBILITY_AX_TREE_UPDATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ui/accessibility/ax_node_data.h" | 10 #include "ui/accessibility/ax_node_data.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // The id of a node to clear, before applying any updates, | 43 // The id of a node to clear, before applying any updates, |
| 44 // or 0 if no nodes should be cleared. Clearing a node means deleting | 44 // or 0 if no nodes should be cleared. Clearing a node means deleting |
| 45 // all of its children and their descendants, but leaving that node in | 45 // all of its children and their descendants, but leaving that node in |
| 46 // the tree. It's an error to clear a node but not subsequently update it | 46 // the tree. It's an error to clear a node but not subsequently update it |
| 47 // as part of the tree update. | 47 // as part of the tree update. |
| 48 int node_id_to_clear; | 48 int node_id_to_clear; |
| 49 | 49 |
| 50 // A vector of nodes to update, according to the rules above. | 50 // A vector of nodes to update, according to the rules above. |
| 51 std::vector<AXNodeData> nodes; | 51 std::vector<AXNodeData> nodes; |
| 52 | 52 |
| 53 // Return a multi-line indented string representation, for logging. |
| 54 std::string ToString() const; |
| 55 |
| 53 // TODO(dmazzoni): location changes | 56 // TODO(dmazzoni): location changes |
| 54 }; | 57 }; |
| 55 | 58 |
| 56 } // namespace ui | 59 } // namespace ui |
| 57 | 60 |
| 58 #endif // UI_ACCESSIBILITY_AX_TREE_UPDATE_H_ | 61 #endif // UI_ACCESSIBILITY_AX_TREE_UPDATE_H_ |
| OLD | NEW |