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 #include "ui/accessibility/ax_tree.h" | 5 #include "ui/accessibility/ax_tree.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 auto intlist_callback = [this, node]( | 400 auto intlist_callback = [this, node]( |
401 AXIntListAttribute attr, | 401 AXIntListAttribute attr, |
402 const std::vector<int32_t>& old_intlist, | 402 const std::vector<int32_t>& old_intlist, |
403 const std::vector<int32_t>& new_intlist) { | 403 const std::vector<int32_t>& new_intlist) { |
404 delegate_->OnIntListAttributeChanged(this, node, attr, old_intlist, | 404 delegate_->OnIntListAttributeChanged(this, node, attr, old_intlist, |
405 new_intlist); | 405 new_intlist); |
406 }; | 406 }; |
407 CallIfAttributeValuesChanged(old_data.intlist_attributes, | 407 CallIfAttributeValuesChanged(old_data.intlist_attributes, |
408 new_data.intlist_attributes, | 408 new_data.intlist_attributes, |
409 std::vector<int32_t>(), intlist_callback); | 409 std::vector<int32_t>(), intlist_callback); |
| 410 |
| 411 // TODO(yawano): Add StringListAttribute |
410 } | 412 } |
411 | 413 |
412 void AXTree::DestroySubtree(AXNode* node, | 414 void AXTree::DestroySubtree(AXNode* node, |
413 AXTreeUpdateState* update_state) { | 415 AXTreeUpdateState* update_state) { |
414 DCHECK(update_state); | 416 DCHECK(update_state); |
415 if (delegate_) { | 417 if (delegate_) { |
416 if (!update_state->HasChangedNode(node)) | 418 if (!update_state->HasChangedNode(node)) |
417 delegate_->OnSubtreeWillBeDeleted(this, node); | 419 delegate_->OnSubtreeWillBeDeleted(this, node); |
418 else | 420 else |
419 delegate_->OnSubtreeWillBeReparented(this, node); | 421 delegate_->OnSubtreeWillBeReparented(this, node); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 update_state->pending_nodes.insert(child); | 495 update_state->pending_nodes.insert(child); |
494 update_state->new_nodes.insert(child); | 496 update_state->new_nodes.insert(child); |
495 } | 497 } |
496 new_children->push_back(child); | 498 new_children->push_back(child); |
497 } | 499 } |
498 | 500 |
499 return success; | 501 return success; |
500 } | 502 } |
501 | 503 |
502 } // namespace ui | 504 } // namespace ui |
OLD | NEW |