| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/accessibility/browser_accessibility.h" | 5 #include "content/browser/accessibility/browser_accessibility.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 if (descendant_result) | 724 if (descendant_result) |
| 725 return descendant_result; | 725 return descendant_result; |
| 726 if (child_result) | 726 if (child_result) |
| 727 return child_result; | 727 return child_result; |
| 728 | 728 |
| 729 return this; | 729 return this; |
| 730 } | 730 } |
| 731 | 731 |
| 732 void BrowserAccessibility::Destroy() { | 732 void BrowserAccessibility::Destroy() { |
| 733 // Allow the object to fire a TextRemoved notification. | 733 // Allow the object to fire a TextRemoved notification. |
| 734 manager_->NotifyAccessibilityEvent(ui::AX_EVENT_HIDE, this); | 734 manager()->NotifyAccessibilityEvent( |
| 735 BrowserAccessibilityEvent::FromTreeChange, |
| 736 ui::AX_EVENT_HIDE, |
| 737 this); |
| 735 node_ = NULL; | 738 node_ = NULL; |
| 736 manager_ = NULL; | 739 manager_ = NULL; |
| 737 | 740 |
| 738 if (unique_id_) | 741 if (unique_id_) |
| 739 g_unique_id_map.Get().erase(unique_id_); | 742 g_unique_id_map.Get().erase(unique_id_); |
| 740 unique_id_ = 0; | 743 unique_id_ = 0; |
| 741 | 744 |
| 742 NativeReleaseReference(); | 745 NativeReleaseReference(); |
| 743 } | 746 } |
| 744 | 747 |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 break; | 1174 break; |
| 1172 | 1175 |
| 1173 manager = root->GetParent()->manager(); | 1176 manager = root->GetParent()->manager(); |
| 1174 root = manager->GetRoot(); | 1177 root = manager->GetRoot(); |
| 1175 } | 1178 } |
| 1176 | 1179 |
| 1177 return bounds; | 1180 return bounds; |
| 1178 } | 1181 } |
| 1179 | 1182 |
| 1180 } // namespace content | 1183 } // namespace content |
| OLD | NEW |